[Zope] Re: SESSION invalidate method

2005-04-03 Thread David H
Sune B. Woeller wrote: hi David, I had the same problem, see this thread with a workaround, and this bug report: http://www.zope.org/Collectors/Zope/1594 regards, Sune B. Woeller David H wrote: Hi List, I am curious about the SESSION.invalidate() method. This code sets a SESSION key and value and t

RE: [Zope] Dynamic Zope Style Sheets with HTML 4.01 Strict

2005-04-03 Thread Andy Yates
> I do exactly the same thing, except that I do it directly in the ZPT : > > > Pascal > AH, an elegant solution! Thanks!! > -Message d'origine- > De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] la part de > Andy Yates > Envoyé : jeudi 31 mars 2005 21:53 > À : zope@zope.org > Objet :

Re: [Zope] script or external method ?

2005-04-03 Thread Paul Winkler
On Mon, Apr 04, 2005 at 12:49:30AM +0200, [EMAIL PROTECTED] wrote: > The code i've writed imports date object from datetime > package: this makes it > doesn't work like a script (python), so i adapt code > as an external method; Maybe you could use Zope's own DateTime, which can be used in Scripts

[Zope] Re: SESSION invalidate method

2005-04-03 Thread Sune B. Woeller
hi David, I had the same problem, see this thread with a workaround, and this bug report: http://www.zope.org/Collectors/Zope/1594 regards, Sune B. Woeller David H wrote: Hi List, I am curious about the SESSION.invalidate() method. This code sets a SESSION key and value and then calls SESSION.inval

[Zope] script or external method ?

2005-04-03 Thread debugworld-linux
Hi all, i'm a new user of Zope; i'm studing it since two weeks and i think it's very interesting, 'cause has the same power of j2ee application server but it is much more easy to use! While i was developing my first Zope application i fell into this trouble: i would like to write a script that cre

[Zope] Does anyone care whether we deprecate ZClasses?

2005-04-03 Thread Phillip Hutchings
> We could choose to deprecate ZClasses. If we deprecated them in > Zope 2.8, they would still work in Zope 2.8 and Zope 2.9, but > their support would be removed in Zope 2.10. Would anyone be upset > if this happened? Another vote for depreciation. I've looked at ZClasses, got confused, and bui

Re: [Zope] getting all fields from dynamic checkboxes

2005-04-03 Thread David H
Dan E wrote: Hi, Has anyone found a way to get a list of boolean values from dynamically created checkboxes. I have created a bunch of checkboxes within a repeat loop like this: but when I access the cb_array from my python script, I only get the checked values (and I can no longer mat

Re: [Zope] getting all fields from dynamic checkboxes

2005-04-03 Thread Phillip Hutchings
On Apr 4, 2005 9:00 AM, Dan E <[EMAIL PROTECTED]> wrote: > Hi, > Has anyone found a way to get a list of boolean values from > dynamically created checkboxes. > I have created a bunch of checkboxes within a repeat loop like this: > > class="noborder" >

[Zope] getting all fields from dynamic checkboxes

2005-04-03 Thread Dan E
Hi, Has anyone found a way to get a list of boolean values from dynamically created checkboxes. I have created a bunch of checkboxes within a repeat loop like this: but when I access the cb_array from my python script, I only get the checked values (and I can no longer match the val

[Zope] SESSION invalidate method

2005-04-03 Thread David H
Hi List, I am curious about the SESSION.invalidate() method. This code sets a SESSION key and value and then calls SESSION.invalidate(): before invalidate after invalidate() Produces this output: before invalidate id: 11125588150079827980, token: 95966850A1xaz-gQYlU, contents: [('Dodgers',

Re: [Zope] question about manipulating zcatalog query results

2005-04-03 Thread Ira Sher
Dieter, I actually put the list in because one of the last suggestions in the archives to repair the problem had to do with enclosing the assignment in a list. The original code was essentially: if sorton == 'id': res=[(row.id.split().pop(), row) for row in results] res.sort() return res T

Re: [Zope] Re: login page problem

2005-04-03 Thread Dieter Maurer
prabuddha ray wrote at 2005-4-2 04:38 -0800: > ... >I've gone through the zopebook but dint find much help there. > >can u plz tell me where do i get to know about pythopn scripting done >in zope n ZPT examples. The Zope Book (2.7 edition, online) definitely gives help on python scripting -- retry

Re: [Zope] Get all user folder instances

2005-04-03 Thread Dieter Maurer
Garito wrote at 2005-4-3 17:36 +0200: >root >acl_users (user folder) >Folder1 > acl_users (Pluggable user folder) > Folder2 > acl_users (Another user folder) > Object1 > Object2 > >how could I retrive the list of user folders (in this case: /acl_users,

Re: [Zope] question about manipulating zcatalog query results

2005-04-03 Thread Dieter Maurer
Ira Sher wrote at 2005-4-1 14:29 -0700: >I scoured the archives, and found mention of this problem, and a note >by you, Dieter saying it was a problem with the 2.7 beta (this was >back in May of 2004) but I can't find any subsequent mention of the >issue Nobody mentioned it again -- until your rep

Re: [Zope] Get all user folder instances

2005-04-03 Thread Andreas Jung
--On Sonntag, 3. April 2005 17:36 Uhr +0200 Garito <[EMAIL PROTECTED]> wrote: It would be perfect something like: Object1.superValues('User Folder') You have to walk from the object up to the Zope root by following the objects 'aq_parent' attribute giving you the parent object. There you can ch

Re: [Zope] Does anyone care whether we deprecate ZClasses?

2005-04-03 Thread Jim Fulton
Jake wrote: My question, since it now seems like I am not the only one using ZClasses I doubt that that is the case. is, why not support them? You listed out the reasons why someone wouldn't want to use them going forward, but what are the reasons why not to support them as legacy into 3/2.10? Are

Re: [Zope] Does anyone care whether we deprecate ZClasses?

2005-04-03 Thread Dieter Maurer
Andreas Jung wrote at 2005-4-2 08:58 +0200: >--On Freitag, 1. April 2005 16:52 Uhr -0500 Jake <[EMAIL PROTECTED]> wrote: > >> want to use them going forward, but what are the reasons why not to >> support them as legacy into 3/2.10? > >To avoid that people use ZClasses in the future :-) ZClasses h

[Zope] Get all user folder instances

2005-04-03 Thread Garito
Hi I'm try to know the complet list of users in a Zope point with this structure: root acl_users (user folder) Folder1 acl_users (Pluggable user folder) Folder2 acl_users (Another user folder) Object1 Object2 how could I retrive the list of user folder

Re: [Zope] Does anyone care whether we deprecate ZClasses?

2005-04-03 Thread Andreas Jung
--On Sonntag, 3. April 2005 14:57 Uhr +0200 Garito <[EMAIL PROTECTED]> wrote: And +1 for DTML deprecation Deprecating DTML was never an issue. So stop the discussion about DTML. We're talking about ZClasses. -aj pgp0r7S8eJ6rx.pgp Description: PGP signature

Re: [Zope] Does anyone care whether we deprecate ZClasses?

2005-04-03 Thread Dennis Allison
On Sun, 3 Apr 2005, Garito wrote: > > > My +1 for ZClasses deprecation > And +1 for DTML deprecation > > Try to keep Zope simple -1 for DTML deprecation. It serves a different purpose that ZPT-- DTML is Logic+HTML ZPT is HTML+Logic. _

Re: [Zope] Does anyone care whether we deprecate ZClasses?

2005-04-03 Thread Garito
Jim Fulton escribió: ZClasses are a feature that support through-the-web development. Many people have found them useful in the past, but they have some significant deficiencies, including: - They can't be managed with file-system tools, especially revision control systems like CVS and subversion

Re: [Zope] Re: login page problem

2005-04-03 Thread Cliff Ford
I have been trying to think of ways of providing specific pointers, So, assuming you have a custom login page and a custom python script that processes that page: In the Python script you could set a cookie for the District: context.REQUEST.RESPONSE.setCookie('District', district) where district