[Zope] manage_minimize

2005-11-04 Thread Krzysztof Kubacki
 Hi, Zope-2-7-6 I would like to minimize cache of my ZODB mounteddatabaseby manage_minimize function from PythonScript placed inRoot Folder. Icreatedthemounted database called "mounted_database" in ZODB. When I do it this way

[Zope] LDAPUserFolder proplem

2005-10-28 Thread Krzysztof Kubacki
 I have LDAP database installed on Debian and 2 Zope-platforms: Zope 2.7.6, Plone 2.0.5 GRUF3 Zope 2.8.4, Plone 2.1 GRUF 3.4 GRUF stands for GroupUserFolder I have installed LDAPUserFolder on both Zope-platforms. I store user in LDAP insted of UserFolder everything works fine beside

Re: [Zope] REQUEST.form variables order

2005-10-26 Thread Krzysztof Kubacki
Krzysztof Kubacki schrieb: On 24 Oct 2005, at 14:03, Krzysztof Kubacki wrote: How to change it? I would like to have variables in the same order as I put them into internet form. You can't. REQUEST.form is a dictionary. They are, by definition, unordered. Why do you need them

[Zope] REQUEST.form variables order

2005-10-24 Thread Krzysztof Kubacki
 Hi my friends :) I've noticed the following situation. When I send internet form onto PythonScript the variables in the REQUEST.formare in the different order that they were asfieldsin theinternet form. I see when I send internet form by GET method that variables are placed in the right

Re: [Zope] REQUEST.form variables order

2005-10-24 Thread Krzysztof Kubacki
On 24 Oct 2005, at 14:03, Krzysztof Kubacki wrote: How to change it? I would like to have variables in the same order as I put them into internet form. You can't. REQUEST.form is a dictionary. They are, by definition, unordered. Why do you need them ordered? What is the use case

[Zope] access rule and authentication

2005-10-17 Thread Krzysztof Kubacki
Hi, Python Script which is set as "Access Rule" for some Folder is execute before authentication is done. This way the following code won't work if context.portal_membership.getAuthenticatedUser().getId() == "admin": return "dog" return "cat" I will always get "cat". So does somebody

[Zope-dev] getPassword() from PythonScript

2004-12-27 Thread Krzysztof Kubacki
Hi, Zope 2-7-0 Linux Ispossible to get user's passwordby getPassword()method using Python Script?Any proxes don't work. the code below:user = context.getMemberById(context,'koperski')return user.getPassword()returns:The object is marked as private. Access to 'getPassword' of (MemberData

[Zope-dev] i18n:translate - problem

2004-12-21 Thread Krzysztof Kubacki
pe chooses language based on web browser settings :(. When I'm setting "xml:lang" and"lang" attributtes it doesen't make effect. There is second way. I can do 2 .po files with different "Domain" and choose the one depends on variablebut I cant dynamicialyset &qu

[Zope-dev] FlashMovie

2004-12-13 Thread Krzysztof Kubacki
Hallo I have added new product named "FlashMovie". I'm adding new FlashMovie's object in Zope's folder and next I want to get it from ZTP: table tal:define="img python:getattr(here, 'FlashMovieObject', None)". After it ZPT is beingredirected to ZPT named "flashmovie_view". I can not find

[Zope-dev] Zope+PIL+ image resizing

2004-12-06 Thread Krzysztof Kubacki
Hallo.I have Zope 2-7-0 on Linux platform and the following problem :)I'm sending an image through form on the pythonScript. I want script toresize image and save on the zope folder in 3 different size. OK, I useExternalMethod which uses PIL library to resize these images.External

[Zope-dev] Fw: executing API functions and zope's security

2004-10-13 Thread Krzysztof Kubacki
Hi, I have a Xron productinstalled onto Zope 2-6-2. I would like to flush permanent and not referenced objects atgiven timefrom cache. To do it I have to use API function manage_minimize() (You can do it in ZMI as well: Control_panel-Database-Flush). I prepared a DTMLdocument with source as

[Zope-dev] portal_actions via listFilteredActionsFor

2004-09-01 Thread Krzysztof Kubacki
Hallo, I have the problem. Zope 2.7.0, Plone-2.0.3, Linux I list actions from portal_actions actions python: here.portal_actions.listFilteredActionsFor(here) I recive a list with actions. Depending on kind of logged user I recive that list in diffrent count.I mean that when I'm Manager