Re: [Zope] DELETE Objects

2006-04-18 Thread Alexis Roda
Erik Billing escribió: Ok. Thanx. But why is it like this? I imagine that deleting an object in a folder where I do not have permission to delete every object, or the folder itself, is a quite common task. Using the manage_delObjects and a proxy really feels like I'm fighting the zope securit

Re: [Zope] Is it possible to render a TAL expression from a Page Template?

2006-06-21 Thread Alexis Roda
En/na [EMAIL PROTECTED] ha escrit: Suppose I have a variable foo that has value "request/name|nothing". Is it possible from a Python Script to have this evaluated as a TAL expression? AFAIK TALES machinery ($ZOPE_HOME/lib/python/Products/PageTemplates) can't be accessed from restricted code.

Re: [Zope] ZWiki with Zope 2.7, OS X Server 10.4.x

2006-06-22 Thread Alexis Roda
En/na baiewola ha escrit: I didn't find anything on zwiki.org about this issue, and I tried Googling with no success. If you have experienced this issue, would you please tell me how you fixed it? http://zwiki.org/1269AddingA054ZwikiThroughTheZMIFailsBecauseOfACaseMismatch HTH _

Re: [Zope] accessing object from a list constructed in __init__.py

2006-07-22 Thread Alexis Roda
En/na kevin7kal ha escrit: I'm doing some work with Five and have an aquisition related issue. first, zope is zope 2.9.3 The trouble is with accessing the attributes of objects stored in the number property in class2. class2 must inherit from ExtensionClass.Base (or some subclass, like Acquisi

Re: [Zope] accessing object from a list constructed in __init__.py

2006-07-22 Thread Alexis Roda
En/na kevin7kal ha escrit: Ok, thank you for that. I can create the list of objects from the __of__(self) attribute without the wrapper error now, but I still cannot access that attribute through zope. Your description is vague. A traceback could be useful. Maybe the problem is security rela

Re: [Zope] accessing object from a list constructed in __init__.py

2006-07-23 Thread Alexis Roda
En/na kevin7kal ha escrit: Ok, thank you for that. I can create the list of objects from the __of__(self) attribute without the wrapper error now, but I still cannot access that attribute through zope. Here is my code again, along with my zope content. Another thing I've missed, class1 isn't

Re: [Zope] accessing object from a list constructed in __init__.py

2006-07-23 Thread Alexis Roda
En/na kevin7kal ha escrit: I've changed my code a bit, adding the docstring, Persistent to all classes and __allow_access_to_unprotected_attributes__ = 1 to all classes. Still, I recieve the same error. Sorry, my fault, should be __allow_access_to_unprotected_subobjects__. If it does work th

Re: [Zope] DB in Zope

2006-07-24 Thread Alexis Roda
En/na Alan ha escrit: Hi! I need a very simple DB in Zope, a table with 5 columns, less than 100 entries, to write, read and update, nothing else. Is Gadfly a serious option? Do l loose my database if Zope is restarted? Which other option, easy to use? A tutorial? Take a look at PropertyTools:

Re: [Zope] Can't nest dtml-in using prefix ...

2006-07-28 Thread Alexis Roda
En/na Jesper Steen Steffensen ha escrit: This won't work: Roles are matching I get an error that says key error - outer_role doesn't exist. It doesn't matter if I prefix the inner dtml-in as well. (I've read it isn't necessary though) Why won't the prefix work fo

Re: [Zope] Newbie: Missing a Variable (TAL/METAL Question)

2006-07-28 Thread Alexis Roda
En/na beno - ha escrit: Here is the error it throws as reported through the TTW: Site Error An error was encountered while publishing this resource. *KeyError* Sorry, a site error occurred. Traceback (innermost last): number is defined *only* in the block where you define it and enclosed

Re: [Zope] DTML Call Fails

2006-10-24 Thread Alexis Roda
En/na [EMAIL PROTECTED] ha escrit: A little bit of legacy DTML fun here... Zope 2.9.3 On save of a DTML Method, why would this dtml-call fail: AR - DA - 08 ^ octal literal HTH ___ Zope maillist - Zope@zope.org http://mail.zope.

Re: [Zope] tal loop to render table

2006-11-29 Thread Alexis Roda
En/na Dennis Schulz ha escrit: I would like to build a tal loop that renders a list of elements (widgets in my case) in a table. (for example I have a list of 9 items, then it renders a table: five rows with 2,2,2,2,1 items) the table has 2 columns, so i would need to open and close the table ro

Re: [Zope] IOError: [Errno 11] Resource temporarily unavailable for ./zopectl adduser...?

2007-04-03 Thread Alexis Roda
En/na michael nt milne ha escrit: Traceback (most recent call last): File "", line 1, in ? File "/opt/Plone-2.5/lib/python/Zope2/__init__.py", line 51, in app ... File "/opt/Plone-2.5/lib/python/ZODB/lock_file.py", line 42, in lock_file fcntl.flock(file.fileno(), _flags) IOError: [Er

Re: [Zope] Sharing global data between threads / locking a method

2005-06-27 Thread SER.RI-TIC-Alexis Roda
k. HTH -- (@ @) oOO(_)OOo-- <> Ojo por ojo y el mundo acabara ciego /\ Alexis Roda - Universitat Rovira i Virgili - Reus,

Re: [Zope] import error

2006-01-11 Thread SER.RI-TIC-Alexis Roda
xception, 'Invalid file name %s' % escape(file) HTH -- (@ @) oOO(_)OOo------ <> Ojo por ojo y el mundo acabara ciego