Paolo Tramontani | 24 Jan 17:39
Picon
Favicon
Gravatar

R: R: Error in MultiSelectionWidget (kssValidationField)

I'm using version 4.04 of Plone

I think that something goes wrong in kss call for kssValidateField:

When I Click on check boxes a call to kssValidateField starts (via Ajax I
suppose, due to kss declarations).
I tried to debug this call and all goes well for a while...
Self.request contains 'fieldname' and 'value' parameters and this is ok.

Sometimes clicking on check boxes for the third of fourth time the
http://.../kssValidateField call fails.
I supposed that some parameter have not been correctly filled (fieldname or
value). But I can't find the function on the browser that starts the ajax
call...

_______________________________________

Ing. Paolo Tramontani - Softone s.r.l.
email: ptramontani@...
          ptramontani@...
phone: +39 338 9253741
______________________________________

-----Messaggio originale-----
Da: Gauthier Bastien [mailto:g.bastien@...] 
Inviato: martedì 24 gennaio 2012 16:53
A: Paolo Tramontani
Oggetto: Re: R: [Archetypes-users] Error in MultiSelectionWidget
(kssValidationField)

(Continue reading)

Paolo Tramontani | 24 Jan 14:54
Picon
Favicon
Gravatar

Error in MultiSelectionWidget (kssValidationField)

Hi all,

 

In my archetype content object I have a MultiSelectionWidget field with check boxes

Selecting or deselecting I got this error:

 

ERROR Zope.SiteErrorLog 1327400166.910.530848180741 http://…/portal_factory/Estimate Request/estimate_request.2012-01-24.1593198955/kssValidateField

Traceback (innermost last):

Module ZPublisher.Publish, line 126, in publish

Module ZPublisher.mapply, line 77, in mapply

Module Products.PDBDebugMode.runcall, line 70, in pdb_runcall

Module ZPublisher.Publish, line 47, in call_object

Module Products.CMFPlone.FactoryTool, line 446, in __call__

Module ZPublisher.mapply, line 72, in mapply

Module ZPublisher.Publish, line 52, in missing_name

Module ZPublisher.HTTPResponse, line 705, in badRequestError

BadRequest: <h2>Site Error</h2>

 

Note kssValidateField!

 

Searching the web I found this::

http://plone.org/products/archgenxml/issues/211

 

What about this error?

 

Somone can help me?

 

Thanks,

 

Paolo

 

 

 

_______________________________________

 

Ing. Paolo Tramontani - Softone s.r.l.
email: ptramontani-olN24JIW1n8L5bzFcGmneg@public.gmane.org
          ptramontani-8U1w6YccWeuonA0d6jMUrA@public.gmane.org
phone: +39 338 9253741
______________________________________

 

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Archetypes-users mailing list
Archetypes-users@...
https://lists.sourceforge.net/lists/listinfo/archetypes-users

Get access to my pictures and more

   
     
 

Christian Ledermann
male - 48 years old



1   friend
    Hi!

I have created a Netlog profile and would like to give you (archetypes-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org) access to my latest pictures and more.

  Connect with Christian  

Cheers,
Christian
 
       
   
  Is the button above not displayed well?
Click here or paste the link below in the address bar of your browser.
http://en.netlog.com/go/mailurl/-bT0yNjc5MDQ3MTA0Jmw9MSZnbT0xMiZ1PSUyRmdvJTJGcmVnaXN0ZXIlMkZpZCUzRC1ZWEpqYUdWMGVYQmxjeTExYzJWeWMwQnNhWE4wY3k1emIzVnlZMlZtYjNKblpTNXVaWFFfJTI2dWlkJTNEMTgwMzA2NTA4






Don't want to receive invitations from your friends anymore? Click here . Massive Media NV - E. Braunplein 18. B-9000 Gent. Belgium.
BE0859635972 - abuse-en-OrzGVW1Z1xXQT0dZR+AlfA@public.gmane.org
 
   
------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
Archetypes-users mailing list
Archetypes-users@...
https://lists.sourceforge.net/lists/listinfo/archetypes-users
Jardar Maatje | 7 Oct 15:40
Favicon

Trouble with .docx files in uploads

When I upload files with QuickUpload my docx files looses their extension and I get no icon for them. When I select the file I get an error and is unable to view or download the file. (The Traceback can be found below). I just want to be able to download the file. It seems that error comes from a bug described here: http://dev.plone.org/plone/ticket/12061

 

I also looked at the mime types in ZOPE manager interface : http://myhost.mydomain/nortek/mimetypes_registry/manage_main. I got an entry for extension: docx as follows:

Name : application/vnd.openxmlformats-officedocument.wordprocessingml.document

Icon path : application.png

Binary : yes

Mime-types: application/vnd.openxmlformats-officedocument.wordprocessingml.document

Extensions: docx

Globx :

 

So my question. What can I do to solve this problem?

 

Jardar

 

 

Traceback (innermost last):

Module ZPublisher.Publish, line 127, in publish

Module ZPublisher.mapply, line 77, in mapply

Module ZPublisher.Publish, line 47, in call_object

Module Shared.DC.Scripts.Bindings, line 324, in __call__

Module Shared.DC.Scripts.Bindings, line 361, in _bindAndExec

Module Products.CMFCore.FSPageTemplate, line 240, in _exec

Module Products.CMFCore.FSPageTemplate, line 180, in pt_render

Module Products.PageTemplates.PageTemplate, line 80, in pt_render

Module zope.pagetemplate.pagetemplate, line 113, in pt_render

Module zope.tal.talinterpreter, line 271, in __call__

Module zope.tal.talinterpreter, line 343, in interpret

Module zope.tal.talinterpreter, line 888, in do_useMacro

Module zope.tal.talinterpreter, line 343, in interpret

Module zope.tal.talinterpreter, line 533, in do_optTag_tal

Module zope.tal.talinterpreter, line 518, in do_optTag

Module zope.tal.talinterpreter, line 513, in no_tag

Module zope.tal.talinterpreter, line 343, in interpret

Module zope.tal.talinterpreter, line 954, in do_defineSlot

Module zope.tal.talinterpreter, line 343, in interpret

Module zope.tal.talinterpreter, line 533, in do_optTag_tal

Module zope.tal.talinterpreter, line 518, in do_optTag

Module zope.tal.talinterpreter, line 513, in no_tag

Module zope.tal.talinterpreter, line 343, in interpret

Module zope.tal.talinterpreter, line 858, in do_defineMacro

Module zope.tal.talinterpreter, line 343, in interpret

Module zope.tal.talinterpreter, line 954, in do_defineSlot

Module zope.tal.talinterpreter, line 343, in interpret

Module zope.tal.talinterpreter, line 533, in do_optTag_tal

Module zope.tal.talinterpreter, line 518, in do_optTag

Module zope.tal.talinterpreter, line 513, in no_tag

Module zope.tal.talinterpreter, line 343, in interpret

Module zope.tal.talinterpreter, line 954, in do_defineSlot

Module zope.tal.talinterpreter, line 343, in interpret

Module zope.tal.talinterpreter, line 533, in do_optTag_tal

Module zope.tal.talinterpreter, line 518, in do_optTag

Module zope.tal.talinterpreter, line 513, in no_tag

Module zope.tal.talinterpreter, line 343, in interpret

Module zope.tal.talinterpreter, line 946, in do_defineSlot

Module zope.tal.talinterpreter, line 343, in interpret

Module zope.tal.talinterpreter, line 533, in do_optTag_tal

Module zope.tal.talinterpreter, line 518, in do_optTag

Module zope.tal.talinterpreter, line 513, in no_tag

Module zope.tal.talinterpreter, line 343, in interpret

Module zope.tal.talinterpreter, line 858, in do_defineMacro

Module zope.tal.talinterpreter, line 343, in interpret

Module zope.tal.talinterpreter, line 533, in do_optTag_tal

Module zope.tal.talinterpreter, line 518, in do_optTag

Module zope.tal.talinterpreter, line 513, in no_tag

Module zope.tal.talinterpreter, line 343, in interpret

Module zope.tal.talinterpreter, line 888, in do_useMacro

Module zope.tal.talinterpreter, line 343, in interpret

Module zope.tal.talinterpreter, line 533, in do_optTag_tal

Module zope.tal.talinterpreter, line 518, in do_optTag

Module zope.tal.talinterpreter, line 513, in no_tag

Module zope.tal.talinterpreter, line 343, in interpret

Module zope.tal.talinterpreter, line 888, in do_useMacro

Module zope.tal.talinterpreter, line 343, in interpret

Module zope.tal.talinterpreter, line 533, in do_optTag_tal

Module zope.tal.talinterpreter, line 518, in do_optTag

Module zope.tal.talinterpreter, line 513, in no_tag

Module zope.tal.talinterpreter, line 343, in interpret

Module zope.tal.talinterpreter, line 583, in do_setLocal_tal

Module zope.tales.tales, line 696, in evaluate
URL: file:c:\plone\eggs\products.archetypes-1.6.5-py2.6.egg\Products\Archetypes\skins\archetypes\widgets\file.pt
Line 17, Column 8
Expression: <PathExpr standard:u'unit/getBestIcon | nothing'>
Names:

{'container': <PloneSite at /nortek>,

 'context': <ATFile at /nortek/innhold/transfer/finished-change-orders/changeorderct.2011-09-27.8194493135/old-ss-screens.docx>,

 'default': <object object at 0x00481748>,

 'here': <ATFile at /nortek/innhold/transfer/finished-change-orders/changeorderct.2011-09-27.8194493135/old-ss-screens.docx>,

 'loop': {},

 'nothing': None,

 'options': {'args': ()},

 'repeat': <Products.PageTemplates.Expressions.SafeMapping object at 0x07CF2030>,

 'request': <HTTPRequest, URL=http://wiki.nortek.no:8080/nortek/innhold/transfer/finished-change-orders/changeorderct.2011-09-27.8194493135/old-ss-screens.docx/file_view>,

 'root': <Application at >,

 'template': <FSPageTemplate at /nortek/file_view used for /nortek/innhold/transfer/finished-change-orders/changeorderct.2011-09-27.8194493135/old-ss-screens.docx>,

 'traverse_subpath': [],

'user': <PloneUser 'jardarm'>}

Module zope.tales.expressions, line 217, in __call__

Module Products.PageTemplates.Expressions, line 157, in _eval

Module Products.PageTemplates.Expressions, line 107, in render

Module Products.PageTemplates.ZRPythonExpr, line 81, in call_with_ns

Module Products.CMFCore.FSPythonScript, line 125, in __render_with_namespace__

Module Shared.DC.Scripts.Bindings, line 338, in __render_with_namespace__

Module Shared.DC.Scripts.Bindings, line 361, in _bindAndExec

Module Products.PythonScripts.PythonScript, line 344, in _exec

Module script, line 7, in getBestIcon
<FSPythonScript at /nortek/getBestIcon used for /nortek/innhold/transfer/finished-change-orders/changeorderct.2011-09-27.8194493135/old-ss-screens.docx>
Line 7

Module Products.MimetypesRegistry.MimeTypesRegistry, line 220, in lookup
__traceback_info__: ("'None'", 'None')

Module Products.MimetypesRegistry.MimeTypesRegistry, line 457, in split

MimeTypeException: Malformed MIME type (None)

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2dcopy2
_______________________________________________
Archetypes-users mailing list
Archetypes-users@...
https://lists.sourceforge.net/lists/listinfo/archetypes-users
Picon

Invitation to connect on LinkedIn

 
 
 
 
 
From Alisson Negrisolo de Godoi
 
IT Sales Specialist, Maximo at IBM
São Paulo Area, Brazil
 
 
 

I'd like to add you to my professional network on LinkedIn.

- Alisson

 
 
 
ble>
 
 
 
You are receiving Invitation to Connect emails. Unsubscribe
© 2011, LinkedIn Corporation. 2029 Stierlin Ct. Mountain View, CA 94043, USA
 
------------------------------------------------------------------------------
Doing More with Less: The Next Generation Virtual Desktop 
What are the key obstacles that have prevented many mid-market businesses
from deploying virtual desktops?   How do next-generation virtual desktops
provide companies an easier-to-deploy, easier-to-manage and more affordable
virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/
_______________________________________________
Archetypes-users mailing list
Archetypes-users@...
https://lists.sourceforge.net/lists/listinfo/archetypes-users
peyu | 31 Aug 18:45
Picon

How to modify user properties and how to add an user as an attribute to a class

Hi everybody, I don't know if the subject is very clear so I will try to
explain...

I'm doing an UML model with argouml, to set up some king of intranet in
plone.
Right now, every class is working ok, archgenxml doesn't claim any errors
and I can install and use the package produced by AGX in plone.

I need some help for 2 points:
 - We have a class called "project", which has an attribute called "project
manager", which a user of the intranet. I have look in the forum, the
documentation and google but I haven't found anything...
 How can I create this attribute ? does I need to add an attribute with a
type like "user", or to create an aggregation to the user class?

- I want to create also some kind of yellow pages, so we want to add
properties to user, like for examples biography, skills, languages spoken,
etc. How can I do it ? Cand I add directly user attributes, do I need to
create a new UserProfiles class, is there already something done for this ?

Any help will be greatly appreciated.

François

--
View this message in context: http://plone.293351.n2.nabble.com/How-to-modify-user-properties-and-how-to-add-an-user-as-an-attribute-to-a-class-tp6747299p6747299.html
Sent from the Archetypes mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
_______________________________________________
Archetypes-users mailing list
Archetypes-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/archetypes-users

ArgoUML and archetypes.schemaextender

Hi
I'm trying to extend atdocument (adding a ImageField)
So, I've read this : http://plone.org/documentation/manual/developer-manual/using-archgenxml/3rdparty/archetypes.schemaextender

Created the stub class, the interface, etc...
And when generating :
INFO          Generating class 'DocumentImage'.
Traceback (most recent call last):
  File "/root/archgenxml/bin/archgenxml", line 38, in ?
    archgenxml.ArchGenXML.main()
  File "/root/archgenxml/eggs/archgenxml-2.6-py2.4.egg/archgenxml/ArchGenXML.py", line 114, in main
    gen.parseAndGenerate()
  File "/root/archgenxml/eggs/archgenxml-2.6-py2.4.egg/archgenxml/ArchetypesGenerator.py", line 4084, in parseAndGenerate
    self.generateProduct(root)
  File "/root/archgenxml/eggs/archgenxml-2.6-py2.4.egg/archgenxml/ArchetypesGenerator.py", line 4018, in generateProduct
    self.generatePackage(root)
  File "/root/archgenxml/eggs/archgenxml-2.6-py2.4.egg/archgenxml/ArchetypesGenerator.py", line 3654, in generatePackage
    self.generatePackage(p,recursive=1)
  File "/root/archgenxml/eggs/archgenxml-2.6-py2.4.egg/archgenxml/ArchetypesGenerator.py", line 3605, in generatePackage
    buf += self.dispatchXMIClass(element)
  File "/root/archgenxml/eggs/archgenxml-2.6-py2.4.egg/archgenxml/BaseGenerator.py", line 350, in dispatchXMIClass
    return generator(element, template=template)
  File "/root/archgenxml/eggs/archgenxml-2.6-py2.4.egg/archgenxml/ArchetypesGenerator.py", line 1865, in generateArchetypesClass
    wrt('class Extended'+fieldType+'(ExtensionField, '+fieldType+'):\n')
TypeError: cannot concatenate 'str' and 'NoneType' objects

So, fieldType is None.

Is it a bug from me or from ArchGenXML ?
--

Jean-Sébastien Mansart - Développeur Web
Email : jean-sebastien.mansart-WVG1LGuJuVy7W+FGuQ2g6tBPR1lH4CV8@public.gmane.org
Tel : 04 79 26 28 29

Bayard Service Edition
Savoie Technolac - House Boat
BP308 - 73377 Le Bourget du Lac Cedex
www.bayardserviceweb.com

------------------------------------------------------------------------------
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its 
next-generation tools to help Windows* and Linux* C/C++ and Fortran 
developers boost performance applications - including clusters. 
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Archetypes-users mailing list
Archetypes-users@...
https://lists.sourceforge.net/lists/listinfo/archetypes-users
Picon

Developing New archetypes product

I am attempting to teach myself Plone4. I am a long time user, but I have
never developed a project on the file system. I have many Plone books, but
they are of ancient date and now largely useless. 

I decided to make a product that would store and process potential new site
users. I am sure there are probably already dozens of products out there
that do this, but I figured I would make my own as a way of learning (and to
get exactly what I want). 

So far I have two archetype objects:

1. A collection that holds only new user requests, called something like
PotentialNewUsersFolder.
2. An archetype that holds data containing a new user request, called
PotentialNewUser.

The workflow would be something like this:

1. Anonymous user requests permission to use plone site when they edit and
add a PotentialNewUser archetype to the collection PotentialNewUsersFolder. 
Upon submission/addition of the PotentialNewUser object,  the object goes
straight to review status, and is now only readable by site users with the
manager role. At this time an email is sent to the potential new user
notifying them that their request is being reviewed. Another email is sent
to all site managers to let them know a potential new user wants to join the
site. 

2. Any manager can see and review the request (The PotentialNewUser type
contains a text field where the user lists reasons why they want to join the
site and the manager can review this information and make a decision). The
manager can choose to add the user to the site by Publishing the archetypes
object. Publishing the object registers the user with the site and then
deletes the object (since it is no longer needed). An email is sent to the
new user to tell them that they may now login. 

3. To deny the request the manager just deletes it. I think this sends an
email, but I am not sure.

My Questions:

So I have most of the above working in some fashion. My main question is
about permissions: 

1. Even when I go into the ZMI and turn every security setting to anonymous,
I cannot get my dev site to allow an unauthenticated user to add an
archetype object. Do I need to create a custom work flow to do this? Setting
custom permissions does not seem to work in the product or the ZMI. I have
googled this and searched on Plone and found some of the recommendations on
how to allow anonymous content, but the recommendations do not work in Plone
4 (at least as presented). Everything works as a regular site user, however.

Another question is about generic setup:
2. How do I use generic setup to manage the public/private rights of a
collection on install? I can get the collection installed (using structure),
but I cannot figure out how to make the collection public. Nor can I figure
out how to hide it from the default navigation. Removing the product also
leaves the collection behind, and I would like to uninstall it upon removal
as well. 

And finally, I have a question about rerouting the view:
I would like the view the anonymous user sees after adding the object to
redirect to a nice "thank you" screen, since the anonymous user can not view
their request after adding it. I would like the view the manager sees after
publishing the object to redirect to the object container view, as the
object itself is deleted when published and cannot be viewed. 

Many thanks in advance for any assistance or tips,

Paul H

--
View this message in context: http://plone.293351.n2.nabble.com/Developing-New-archetypes-product-tp6199440p6199440.html
Sent from the Archetypes mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
Vincent Fretin | 5 Mar 12:17
Picon

ArchGenXML should maybe stop using import_steps.xml

Hi,

There is a discussion on the
"[Zope-CMF] GenericSetup import and export step registries" thread
https://mail.zope.org/pipermail/zope-cmf/2011-March/thread.html
about removing local steps registries from Products.GenericSetup, this means removing the support of import_steps.xml.

ArchGenXML still generates this old file instead of registring the import steps from a zcml file.
Maybe it's time to generate zcml import steps.

Vincent Fretin
Ecreall

------------------------------------------------------------------------------
What You Don't Know About Data Connectivity CAN Hurt You
This paper provides an overview of data connectivity, details
its effect on application quality, and explores various alternative
solutions. http://p.sf.net/sfu/progress-d2d
_______________________________________________
Archetypes-users mailing list
Archetypes-users@...
https://lists.sourceforge.net/lists/listinfo/archetypes-users

i18ndude making a UnicodeDecodeError

Hi,

I'm working with argouml and archgenxml to generate my product.
When I'm trying to rebuilt the pot file like this :
I18NDOMAIN="BSWConcoursPhoto"
/root/i18ndude-3.2.2/bin/i18ndude rebuild-pot --pot i18n/generated.pot \
    --create ${I18NDOMAIN} \
    --merge locales/${I18NDOMAIN}.pot \
   .

I've got this error :
Traceback (most recent call last):
  File "/root/i18ndude-3.2.2/bin/i18ndude", line 32, in <module>
    i18ndude.script.main()
  File "/root/i18ndude-3.2.2/src/i18ndude/script.py", line 473, in main
    fun()
  File "/root/i18ndude-3.2.2/src/i18ndude/script.py", line 214, in rebuild_pot
    pyresult = pyreader.read()
  File "/root/i18ndude-3.2.2/src/i18ndude/catalog.py", line 676, in read
    exclude=self.exclude+('tests', ))
  File "/root/i18ndude-3.2.2/src/i18ndude/extract.py", line 445, in py_strings
    tokenize.tokenize(fp.readline, eater)
  File "/zope/z_nature_images_awards/Python-2.6/lib/python2.6/tokenize.py", line 169, in tokenize
    tokenize_loop(readline, tokeneater)
  File "/zope/z_nature_images_awards/Python-2.6/lib/python2.6/tokenize.py", line 175, in tokenize_loop
    for token_info in generate_tokens(readline):
  File "/zope/z_nature_images_awards/Python-2.6/lib/python2.6/tokenize.py", line 288, in generate_tokens
    line = readline()
  File "/zope/z_nature_images_awards/Python-2.6/lib/python2.6/codecs.py", line 675, in readline
    return self.reader.readline(size)
  File "/zope/z_nature_images_awards/Python-2.6/lib/python2.6/codecs.py", line 530, in readline
    data = self.read(readsize, firstline=True)
  File "/zope/z_nature_images_awards/Python-2.6/lib/python2.6/codecs.py", line 477, in read
    newchars, decodedbytes = self.decode(data, self.errors)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xb0 in position 37: invalid start byte


Thanks for helping !
--

Jean-Sébastien Mansart - Développeur Web
Email : jean-sebastien.mansart-WVG1LGuJuVy7W+FGuQ2g6tBPR1lH4CV8@public.gmane.org
Tel : 04 79 26 28 29

Bayard Service Edition
Savoie Technolac - House Boat
BP308 - 73377 Le Bourget du Lac Cedex
www.bayardserviceweb.com

------------------------------------------------------------------------------
What You Don't Know About Data Connectivity CAN Hurt You
This paper provides an overview of data connectivity, details
its effect on application quality, and explores various alternative
solutions. http://p.sf.net/sfu/progress-d2d
_______________________________________________
Archetypes-users mailing list
Archetypes-users@...
https://lists.sourceforge.net/lists/listinfo/archetypes-users

Gmane