RE: [Zope] Setting the sort var in dtml-in ...sort=sortVar

2001-01-18 Thread Loren Stafford
See the concurrent thread "Variable sort ..." -- Loren -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Max M Sent: Wednesday, January 17, 2001 15:58 To: Zope@Zope. Org Subject: [Zope] Setting the sort var in dtml-in ...sort=sortVar Does anybody know

Re: [Zope-dev] mounting obj to more than one zodb location

2001-01-18 Thread Chris Withers
Shane Hathaway wrote: It depends on the product you use for mounting, but generally you'll get a shared database with independent connections. So it will work, but if you make conflicting changes, the transaction should fail. Oooo... was this thread about mounted databases? Sorry, I got

[Zope-dev] Implementing a URL path resolver

2001-01-18 Thread morten
Hi guys, I've been tinkling with a function that does what REQUEST.resolve_url does, except without it relying on having a REQUEST instance available. That is, just resolving the path itself, something like this: path ÿstring.split(relative_url, '/') path ÿfilter(None, path) new_path ÿ'%s' %

Re: [Zope-dev] Implementing a URL path resolver

2001-01-18 Thread Steve Alexander
[EMAIL PROTECTED] wrote: Hi guys, I've been tinkling with a function that does what REQUEST.resolve_url does, except without it relying on having a REQUEST instance available. Have you seen the methods restrictedTraverse and unrestrictedTraverse in lib/python/OFS/Traversable.py ? These

Re: [Zope-dev] Implementing a URL path resolver

2001-01-18 Thread Morten W. Petersen
[[EMAIL PROTECTED]] (Bug in the encoding of the message, MHA) | path = string.split(relative_url, '/') | path = filter(None, path) | new_path = '%s' % path[0] | path = path[1:] | | for element in path: | | new_path = new_path + "['%s']" % element | | return eval("self%s" % new_path)

Re: [Zope-dev] Implementing a URL path resolver

2001-01-18 Thread Morten W. Petersen
[Steve Alexander] | Have you seen the methods restrictedTraverse and unrestrictedTraverse in | lib/python/OFS/Traversable.py ? Exactly what I needed. Thank you. -Morten ___ Zope-Dev maillist - [EMAIL PROTECTED]

[Zope-dev] MountedFileStorage

2001-01-18 Thread Steve Alexander
I've just been trying out the MountedFileStorage product (by Anthony Baxter) with Zope 2.3. I've got it mostly working, by patching a couple of typos, and making the SubApplication class derive from Traversable before Application. I've *almost* got ZClasses defined in the root storage working

[Zope-dev] skinscript and URL traversal question

2001-01-18 Thread Aaron Payne
Hi all, I originally posted this to the zope list and, upon suggestion, I am reposting it to zope-dev. I'm using a zsql method in a skinscript with query ... compute ... and it mostly works. Retrieving the dataskin with getItem() works. For example, Cid is the id of the coupon dataskin.

[Zope-dev] Calling HTMLFiles

2001-01-18 Thread Morten W. Petersen
Hi, I'm having difficulties calling an HTML file from python.. Here's the code: [...] from events import conflicting_events calendar_event_add_redirect = HTMLFile('calendar_event_add_redirect', globals()) manage_add_calendar_event_form =

Re: [Zope-dev] MountedFileStorage

2001-01-18 Thread Shane Hathaway
Steve Alexander wrote: I've just been trying out the MountedFileStorage product (by Anthony Baxter) with Zope 2.3. I've got it mostly working, by patching a couple of typos, and making the SubApplication class derive from Traversable before Application. I've *almost* got ZClasses

[Zope-dev] Fw: PythonMethods and ZClass generation problem

2001-01-18 Thread Alexander Limi
Sorry if I'm overstepping any bounds here, but I tried posting this to the main list, but the answers I get do not help me. I figured maybe somebody on the PTK- or the Dev-list might be able to help. This is a bit of a crisis, since our site has been down for a week due to this problem. I also

Re: [Zope-dev] MountedFileStorage

2001-01-18 Thread Johan Carlsson
http://www.zope.org/Members/hathawsh/ExternalMount Sound interesting. Is it possible to mount a read-only database from several different Zope-clients? Regards, Johan ___ Zope-Dev maillist - [EMAIL PROTECTED]

Re: [Zope-dev] MountedFileStorage

2001-01-18 Thread Shane Hathaway
Johan Carlsson wrote: http://www.zope.org/Members/hathawsh/ExternalMount Sound interesting. Is it possible to mount a read-only database from several different Zope-clients? Yes. The database should be inside a ZEO storage server. ExternalMount can mount ZEO ClientStorages (that's

[Zope-dev] Q: how to retrieve transactions from a Data.fs fragment?

2001-01-18 Thread Shawn Murphy
Yes We experienced a nasty confluence of suprises: - CanOfRaid is imperfect, - reiserfsck is imperfect, - our backups were imperfect [We already knew we were imperfect.] The result is that all we have left of about 6 weeks of several peoples development effort is two Data.fs scraps

[Zope-dev] Re: [Zope-PTK] Fw: PythonMethods and ZClass generation problem

2001-01-18 Thread Alexander Limi
From: "Shane Hathaway" [EMAIL PROTECTED] You were *SO* close. :-) I think you want this: return self.artists.manage_addProduct['Artist'].Artist_add(_.None,_) to be like this: return self.artists.manage_addProduct['Artist'].Artist_add(_.None,_,REQUEST) Tried both of those already. When

[Zope-dev] Re: [Zope-PTK] Fw: PythonMethods and ZClass generation problem

2001-01-18 Thread Shane Hathaway
Alexander Limi wrote: From: "Shane Hathaway" [EMAIL PROTECTED] You were *SO* close. :-) I think you want this: return self.artists.manage_addProduct['Artist'].Artist_add(_.None,_) to be like this: return

<    1   2