[Zope-CMF] Re: invokeFactory permissions - add perm not enough???

2005-06-29 Thread Petri Savolainen

Solved: needed to get new FactoryTool.py from svn (collector: 3688)

Petri Savolainen wrote:

Hello,

I wonder what permissions are needed to allow Anonymous to create content?

I've created an archetype component with a custom "Add Action Record
Content" permission. This is needed because content (action records) is 
created by Anonymous users. Their ability to add this content is 
restricted to particular locations, by assigning

the above permission to Anonymous on each such location (folder).

However, this seems not to be enough. Upon trying to call invokeFactory
to create action records (I have a custom form & object creation 
script), an exception is triggered:


Traceback (innermost last):
  Module ZPublisher.Publish, line 101, in publish
  Module ZPublisher.mapply, line 88, in mapply
  Module ZPublisher.Publish, line 39, in call_object
  Module Products.CMFPlone.FactoryTool, line 333, in __call__
  Module Products.CMFPlone.FactoryTool, line 141, in __getitem__
  Module Products.CMFPlone.PloneFolder, line 371, in invokeFactory
  Module Products.CMFCore.TypesTool, line 709, in constructContent
  Module Products.CMFCore.TypesTool, line 388, in constructInstance
  Module Products.CMFCore.TypesTool, line 341, in _getFactoryMethod
Unauthorized: You are not allowed to access 'addActionRecord' in this 
context


Same problem also occurs when a Member tries to create action record 
content.


I found out that giving the custom permission to Anonymous plone-wide, 
rather than locally, solves the problem. Sadly, that creates more 
problems so cannot be used as a solution.



Any help would be appreciated.

Thanks,

 Petri

___
Zope-CMF maillist  -  Zope-CMF@lists.zope.org
http://mail.zope.org/mailman/listinfo/zope-cmf

See http://collector.zope.org/CMF for bug reports and feature requests



___
Zope-CMF maillist  -  Zope-CMF@lists.zope.org
http://mail.zope.org/mailman/listinfo/zope-cmf

See http://collector.zope.org/CMF for bug reports and feature requests


[Zope-CMF] invokeFactory permissions - add perm not enough???

2005-06-29 Thread Petri Savolainen

Hello,

I wonder what permissions are needed to allow Anonymous to create content?

I've created an archetype component with a custom "Add Action Record
Content" permission. This is needed because content (action records) is 
created by Anonymous users. Their ability to add this content is 
restricted to particular locations, by assigning

the above permission to Anonymous on each such location (folder).

However, this seems not to be enough. Upon trying to call invokeFactory
to create action records (I have a custom form & object creation 
script), an exception is triggered:


Traceback (innermost last):
  Module ZPublisher.Publish, line 101, in publish
  Module ZPublisher.mapply, line 88, in mapply
  Module ZPublisher.Publish, line 39, in call_object
  Module Products.CMFPlone.FactoryTool, line 333, in __call__
  Module Products.CMFPlone.FactoryTool, line 141, in __getitem__
  Module Products.CMFPlone.PloneFolder, line 371, in invokeFactory
  Module Products.CMFCore.TypesTool, line 709, in constructContent
  Module Products.CMFCore.TypesTool, line 388, in constructInstance
  Module Products.CMFCore.TypesTool, line 341, in _getFactoryMethod
Unauthorized: You are not allowed to access 'addActionRecord' in this 
context


Same problem also occurs when a Member tries to create action record 
content.


I found out that giving the custom permission to Anonymous plone-wide, 
rather than locally, solves the problem. Sadly, that creates more 
problems so cannot be used as a solution.



Any help would be appreciated.

Thanks,

 Petri

___
Zope-CMF maillist  -  Zope-CMF@lists.zope.org
http://mail.zope.org/mailman/listinfo/zope-cmf

See http://collector.zope.org/CMF for bug reports and feature requests


[Zope-CMF] Use unicode or string (char encoding?) for CMF content?

2005-04-20 Thread Petri Savolainen
Hello,
I am programmatically creating batches of CMFDefault (Link) content from 
RSS feeds. The feeds use a wide variety of character sets, including for 
example arabic. The RSS parser then produces unicode data out of the RSS 
feeds.

The question becomes, does CMF 1.4.x / do its content types fully 
support using unicode? Or are there some limitations to this?

If strings are to be used in some places rather than unicode, does CMF 
1.4.x support using UTF-8 encoding everywhere?

What about CMF 1.5.x?
I would think these issues are of wide interest so I the information 
must exist somewhere already... any pointers would be highly appreciated.

Thanks!
 Petri
___
Zope-CMF maillist  -  Zope-CMF@lists.zope.org
http://mail.zope.org/mailman/listinfo/zope-cmf
See http://collector.zope.org/CMF for bug reports and feature requests