Re: [Zope-dev] umount/remount
Florent Guillaume wrote at 2003-3-7 17:16 +0100: Is there any way to unmount then remount a mounted storage from a running Zope? Sure. Mounting is done at runtime, when the mount point is traversed for the first time. Unmounting is done automatically, when the mount point is flushed from the ZODB cache. The mount is reestablished when the mount point is traversed the next time. All you need to do, it to take explicit control over the mounting/unmounting. Dieter ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Re: [Vote] PEP308 voting began
Lennart Regebro wrote at 2003-3-7 15:57 +0100: 1. Python is kept as is. 2. To support one-line if-else in attributes in ZPT, the python expressions used in ZPT imports an extra method. This method can be called whetever people want it toi be called, but for claritys sake lets call it 'if_else' if_else(expression, true_result, false_result) We have this function. It is called test (and more flexible than your proposal). It causes occasional questions on the mailing lists because it does not behave as one expects of an if-then-else. The main problem: if existence_of_some_object then: expression_depending_on_this_object else: alternative_expression cannot be expressed with test (or whatever function, unless Python changes function call semantics). *Provided*, expression_depending_on_this_object does not evaluate to a Python false value, existence_of_some_object and expression_depending_on_this_object or alternative_expression can be used. However, this is less clear (than an explicit if-then-else expression) and error prone (due to the *provided* condition). Dieter ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] implementing structured text alternative w/in Zope
Toby Bologna wrote at 2003-3-7 07:42 -0800: I'm a programmer but new to Zope. I'm developing a text markup language like Structured Text that better suits my needs outside the Zope/Python world. Would I be able to incorporate it within Zope, i.e., so I could edit the new format in the edit window and have it displayed as HTML by the server, handled as a Zope object, etc.? Sure, you would define your own content class. Have a look at ZWiki. It supports several dozens of text formats. It would be easy to add new ones ;-) Dieter ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] Authenticating with acl_users
Ive been looking through AccessControl/User.py to understand the validate() methods paramteres. Im not sure what to put inside the request, and how to do it. I have been testing around, but I can only manage to do authenticate(), but this only tells if the user is valid and has the right password. The thing is, I also want to set AUTHENTICATED_USER, but not sure how to to this, but I have the idea validate() does all this for you, if you pass the right parameters. I have been searching at zope.org and google.com for a long time now, but cant find very much useful. The only parameters I have put in the REQUEST are __ac_user and __ac_password, but I know I also need object value and physical container of the object, but dont know how to find this. /Sondre ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Authenticating with acl_users
what exactly is it you are trying to achieve? maybe someone can help if you let us know what the real motivation is. jens On Saturday, Mar 8, 2003, at 11:42 US/Eastern, Sondre Rønjom wrote: Ive been looking through AccessControl/User.py to understand the validate() methods paramteres. Im not sure what to put inside the request, and how to do it. I have been testing around, but I can only manage to do authenticate(), but this only tells if the user is valid and has the right password. The thing is, I also want to set AUTHENTICATED_USER, but not sure how to to this, but I have the idea validate() does all this for you, if you pass the right parameters. I have been searching at zope.org and google.com for a long time now, but cant find very much useful. The only parameters I have put in the REQUEST are __ac_user and __ac_password, but I know I also need object value and physical container of the object, but dont know how to find this. /Sondre ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Authenticating with acl_users
I'm creating a python product - which needs to be authenticated; and I dont want to use any products that does not come with a clean Zope install - so I user Simple User Folder and define two roles admin user and ordinary user. I just want a user to login via login form, check username and password with the acl_users user list and set the user to AUTHENTICATED_USER if username and password is correct. Actually I just want to access the methods which the pop-up authenticator use when one does /manage. To me it looks like validate() from AccessControl/User.py does this for you, but Im not sure how to use the method. /sondre On Sat, 8 Mar 2003, Jens Vagelpohl wrote: what exactly is it you are trying to achieve? maybe someone can help if you let us know what the real motivation is. jens On Saturday, Mar 8, 2003, at 11:42 US/Eastern, Sondre Rønjom wrote: Ive been looking through AccessControl/User.py to understand the validate() methods paramteres. Im not sure what to put inside the request, and how to do it. I have been testing around, but I can only manage to do authenticate(), but this only tells if the user is valid and has the right password. The thing is, I also want to set AUTHENTICATED_USER, but not sure how to to this, but I have the idea validate() does all this for you, if you pass the right parameters. I have been searching at zope.org and google.com for a long time now, but cant find very much useful. The only parameters I have put in the REQUEST are __ac_user and __ac_password, but I know I also need object value and physical container of the object, but dont know how to find this. /Sondre ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Authenticating with acl_users (fwd)
I'm creating a python product - which needs to be authenticated; and I dont want to use any products that does not come with a clean Zope install - so I user Simple User Folder and define two roles admin user and ordinary user. I just want a user to login via login form, check username and password with the acl_users user list and set the user to AUTHENTICATED_USER if username and password is correct. Actually I just want to access the methods which the pop-up authenticator use when one does /manage. To me it looks like validate() from AccessControl/User.py does this for you, but Im not sure how to use the method. /sondre On Sat, 8 Mar 2003, Jens Vagelpohl wrote: what exactly is it you are trying to achieve? maybe someone can help if you let us know what the real motivation is. jens On Saturday, Mar 8, 2003, at 11:42 US/Eastern, Sondre Rønjom wrote: Ive been looking through AccessControl/User.py to understand the validate() methods paramteres. Im not sure what to put inside the request, and how to do it. I have been testing around, but I can only manage to do authenticate(), but this only tells if the user is valid and has the right password. The thing is, I also want to set AUTHENTICATED_USER, but not sure how to to this, but I have the idea validate() does all this for you, if you pass the right parameters. I have been searching at zope.org and google.com for a long time now, but cant find very much useful. The only parameters I have put in the REQUEST are __ac_user and __ac_password, but I know I also need object value and physical container of the object, but dont know how to find this. /Sondre ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )