Re: [Zope] WebDav or Calendar.

2005-06-02 Thread Lennart Regebro
On 6/2/05, Fernando Lujan <[EMAIL PROTECTED]> wrote: > I need a Calendar or WebDav product wich runs with Zope, allow me to > share my calendar with others users using mozilla Calendar, Sunbird. > evolution, outlook and so on...Something like OpenGroupware. Do > someone have a good suggestion? :)

[Zope] MySQL timestamp issue

2005-06-02 Thread Hugo Ramos
Yellow, Could anyone explain me why this works in Zope 2.7.0 final and doesn't work in Zope 2.7.6 final and/or 2.8.0b1 ?? also when I try this: Zope hangs!!! ps: timestampvar is a timestamp var comming from MySQL 4.0.24 tia -- Hugo Ramos - [EMAIL PROTECTED] __

[Zope] [ANN] TextIndexNG 3.0.2 released

2005-06-02 Thread Andreas Jung
F I am pleased to announce the release of TextIndexNG V 3.0.2. TextIndexNG V 3 is a complete new implementation based on Zope 3 technologies and can be used both in Zope 2.8 or 2.7 (with Five) or in Zope 3. What's new? - multi-field indexing and query support - multi-lingual support - conf

[Zope] Creating a Product

2005-06-02 Thread Varun Parange
hi,   i have add a new directory in my "Products" directory..   however, when i try to add the __init__.py file , it giver me an error..   Error Type: BadRequestError Value: The id "__init__" is invalid because it begins with an underscore. how do i add this file? regards, varun Yahoo! Mail Sta

Re: [Zope] Creating a Product

2005-06-02 Thread Lennart Regebro
On 6/2/05, Varun Parange <[EMAIL PROTECTED]> wrote: > i have add a new directory in my "Products" directory.. > > however, when i try to add the __init__.py file , it giver me an error.. > > > > Error Type: BadRequest > Error Value: The id "__init__" is invalid because it begins with an

Re: [Zope] Creating a Product

2005-06-02 Thread Tino Wildenhain
Am Donnerstag, den 02.06.2005, 09:41 -0700 schrieb Varun Parange: > hi, > > i have add a new directory in my "Products" directory.. > > however, when i try to add the __init__.py file , it giver me an > error.. > > > Error Type: BadRequest > Error Value: The id "__init__" is invalid because

[Zope] importing encode_base64

2005-06-02 Thread Varun Parange
hi,   i am having problems importing encode_base64   i have created a product in which i have specified: ''' from AccessControl import allow_module, allow_class, allow_typefrom AccessControl import ModuleSecurityInfo, ClassSecurityInfo from email.Encoders import encode_base64 allow_class(encode_bas

Re: [Zope] importing encode_base64

2005-06-02 Thread Andreas Jung
--On 2. Juni 2005 10:34:20 -0700 Varun Parange <[EMAIL PROTECTED]> wrote: hi, i am having problems importing encode_base64 i have created a product in which i have specified: ''' from AccessControl import allow_module, allow_class, allow_type from AccessControl import ModuleSecurityInfo, C

[Zope] Property id clashes with object id?

2005-06-02 Thread Rob Boyd
I just observed something which I really wouldn't have expected. If I set a property on an object, via a PropertySheet, I then cannot add an object of the same id at the same level (and vice-versa). Say I have a folder, to which I add a property named 'draft'. Then I try to add any object (Page Te

Re: [Zope] Property id clashes with object id?

2005-06-02 Thread Paul Winkler
On Thu, Jun 02, 2005 at 12:05:00PM -0700, Rob Boyd wrote: > I just observed something which I really wouldn't have expected. If I > set a property on an object, via a PropertySheet, I then cannot add an > object of the same id at the same level (and vice-versa). Yes. PropertyManager just stores pr

Re: [Zope] Property id clashes with object id?

2005-06-02 Thread Rob Boyd
--- Paul Winkler <[EMAIL PROTECTED]> wrote: > On Thu, Jun 02, 2005 at 12:05:00PM -0700, Rob Boyd wrote: > > I just observed something which I really wouldn't have expected. If > I > > set a property on an object, via a PropertySheet, I then cannot add > an > > object of the same id at the same l

[Zope] Silly question

2005-06-02 Thread Dan Pozmanter
Wouldn't it be cool if instead of checking explicitly for a leading '_' during traversal, you ran a method "isTraversable" (On SimpleItem for instance), which by default just checks for a leading '_', but could be overridden in a particular class?   Dan _

Re: [Zope] Silly question

2005-06-02 Thread Chris McDonough
The DWIM of not disallowing traversal of underscore names is useful (because it makes it easy to conventionally mark attrs as private) but it can definitely be a drag if you really do want to publish something that begins with an underscore; this happens a lot when you need to deal with allowing up

RE: [Zope] Silly question

2005-06-02 Thread Dan Pozmanter
The name could change easily enough. How about __bobo_always_allow__ Which can either be: None A List of traversable items A method that takes the path, and returns whether or not it is traversable. So for a path p: if p[0] == '_': if p_object.__bobo_always_allow__: if type(p_ob

RE: [Zope] Silly question

2005-06-02 Thread Chris McDonough
Yup. FWIW, the actual bit of code that would need to change is around line 299 of ZPublisher/BaseRequest.py: if entry_name[:1]=='_': if debug_mode: return response.debugError( "Object name begins with an undersc