Re: [Zope-dev] ZCatalog scalability

2001-01-23 Thread Erik Enge
[Michael Bernstein] | We seem to have disposed of the wildcard issue [snipped out | below], and I'm looking forward to Eric's results, but does | anyone else have any information about whether there is a | practical upper limit on how many objects can be indexed and | searched in a ZCatalog? I

Re: [Zope-dev] sql methods and the namespace stack

2001-01-23 Thread Chris Withers
Tim McLaughlin wrote: Does anybody know why sql methods only search the request object instead of traversing the dtml namespace stack? Nope, other than it's been like that for donkey's years... I guess the idea was that it didn't accidentally get parameters from elsewhere, which can be an

Re: [Zope-dev] dtml-in batching

2001-01-23 Thread Tres Seaver
[EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: The dtml-in batching mechanisms are quite difficult to debug - the DTML documentation I have has examples which break it and there's no indication of why. It turns out the DT_In renderwb() code gobbles all exceptions from the rendering

Re: [Zope-dev] ZCatalog scalability

2001-01-23 Thread Erik Enge
[Chris Withers] | ...and is that specifically for BTree folders, or Zope BTree's in general? I don't believe that B-Tree folders have those kinds of limitations by general design. I'm more conserned that somewhere along the lines, doing operations on a huge BTree Folder (Yes, in Zope) will be

Re: [Zope-dev] DTML block parsing

2001-01-23 Thread Steve Alexander
Casey Duncan wrote: If not, I will make a patch for DT_String to support this. The beneficial side affect would be that dtml-comment could be "fixed" so that its contents need not be parsable anymore, just like every other language I know of. With your patch applied, will nested

Re: [Zope-dev] Local roles and security of ZClass instances in Specialists

2001-01-23 Thread Steve Spicklemire
Hi Itai, I'm sure there's something clever you could do here with an attribute provider for you user object that supplied __roles__ dynamically somehow, but I'd need to think about that more... one easy way to limit who can see different stuff is to use a wrapper around your access methods

Re: [Zope-dev] Local roles and security of ZClass instances in Specialists

2001-01-23 Thread Steve Alexander
Steve Spicklemire wrote: WITH [ QUERY ] LookupAttributesAndCheckForPermission(REQUEST) COMPUTE foo, bar, baz where LookupAttributesAndCheckForPermission get's everything it needs out of the REQUEST. You could use WITH CheckForPermission(REQUEST) and makeQuery() COMPUTE foo, bar, baz

RE: [Zope-dev] Membership and the 2.3 beta2 ... bug in the latter!

2001-01-23 Thread Brian Lloyd
Not sur ecompletely why yet, but in 2.3b2, I can't move or copy a ZCatalog. There is one in the Membership interface, so as a result, no workie there. After deleteing int from teh membership interface folder, I get a traceback complaining about too many arguments in checkRoles (3

Re: [Zope-dev] DTML block parsing

2001-01-23 Thread Casey Duncan
Steve Alexander wrote: With your patch applied, will nested dtml-comment tags still work? dtml-comment Some code commented out dtml-comment Documentation in a comment /dtml-comment Rest of code commented out /dtml-comment -- Steve Alexander Software Engineer

Re: [Zope-dev] ZCatalog scalability

2001-01-23 Thread Michael Bernstein
Erik Enge wrote: [Chris Withers] | ...and is that specifically for BTree folders, or Zope BTree's in general? I don't believe that B-Tree folders have those kinds of limitations by general design. I'm more conserned that somewhere along the lines, doing operations on a huge BTree

Re: [Zope-dev] ZCatalog scalability

2001-01-23 Thread Erik Enge
[Michael Bernstein] | Erik Enge wrote: | | I don't believe that B-Tree folders have those kinds of limitations by | general design. I'm more conserned that somewhere along the lines, | doing operations on a huge BTree Folder (Yes, in Zope) will be slow. | | What sort of 'operations' do

Re: [Zope-dev] DTML block parsing

2001-01-23 Thread Casey Duncan
Casey Duncan wrote: Steve Alexander wrote: With your patch applied, will nested dtml-comment tags still work? dtml-comment Some code commented out dtml-comment Documentation in a comment /dtml-comment Rest of code commented out /dtml-comment --

Re: [Zope-dev] dtml-in batching

2001-01-23 Thread richard
Tres Seaver wrote: [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: The dtml-in batching mechanisms are quite difficult to debug - the DTML documentation I have has examples which break it and there's no indication of why. It turns out the DT_In renderwb() code gobbles all

[Zope-dev] Problem using External Method

2001-01-23 Thread Espen Sorbye Frederiksen
The module below works using the python compiler class Testclass: def setdata(self,val1,val2,val3): self.data = [val1,val2,val3] def updatedata(self, index): self.data[index] = self.data[index]+1 def display(self): print self.data x = Testclass() def

Re: [Zope-dev] dtml-in batching

2001-01-23 Thread Tres Seaver
On Wed, 24 Jan 2001 [EMAIL PROTECTED] wrote: Tres Seaver wrote: Please post this as a "Bug w/ patch" to the Collector: http://classic.zope.org:8080/Collector That way we don't lose your fix in the list traffic (losing it along with our marbles is another problem :) Someone

Re: [Zope-dev] Problem using External Method

2001-01-23 Thread Chris McDonough
Espen, The files that external methods actually live in are not Python modules, like normal Python modules. Though I haven't tried your example, it's likely that your reference to __main__ is confusing the external method machinery. Additionally, the output of "print" doesn't go to the remote

Re: [Zope-dev] Problem using External Method

2001-01-23 Thread Chris McDonough
Ooops, replace "print self.data" with "return self.data" in the display method of my Testclass. - Original Message - From: "Chris McDonough" [EMAIL PROTECTED] To: "Espen Sorbye Frederiksen" [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, January 23, 2001 6:46 PM Subject: Re:

Re: [Zope-dev] CSS file serving

2001-01-23 Thread Dieter Maurer
[EMAIL PROTECTED] writes: That (or rather Image.File) was where I started. I decided to go with HTMLFile as a basis so we could have some DTML in the CSS file - but overrode it so we weren't forced to have the .dtml extension (much happier web designers that way :) Thus, the only thing,

Re: [Zope-dev] dtml-in batching

2001-01-23 Thread Brad Clements
On 24 Jan 2001, at 9:43, [EMAIL PROTECTED] wrote: Tres Seaver wrote: Please post this as a "Bug w/ patch" to the Collector: http://classic.zope.org:8080/Collector That way we don't lose your fix in the list traffic (losing it along with our marbles is another problem :)

Re: [Zope-dev] dtml-in batching

2001-01-23 Thread richard
Brad Clements wrote: On 24 Jan 2001, at 9:43, [EMAIL PROTECTED] wrote: Tres Seaver wrote: Please post this as a "Bug w/ patch" to the Collector: http://classic.zope.org:8080/Collector That way we don't lose your fix in the list traffic (losing it along with our marbles is

Re: [Zope-dev] CSS file serving

2001-01-23 Thread richard
Dieter Maurer wrote: [EMAIL PROTECTED] writes: That (or rather Image.File) was where I started. I decided to go with HTMLFile as a basis so we could have some DTML in the CSS file - but overrode it so we weren't forced to have the .dtml extension (much happier web designers that

Re: [Zope-dev] dtml-in batching

2001-01-23 Thread Brad Clements
On 24 Jan 2001, at 11:15, [EMAIL PROTECTED] wrote: Brad Clements wrote: I posted this same bug AND a patch as bug # 1566 on Aug 28th, 2000. http://classic.zope.org:8080/Collector/1566/view Sad to see its *still* pending Well that's odd - I searched the collector for "dtml-in"

[Zope-dev] Old to new registerClass

2001-01-23 Thread Andy McKay
Im hacking around IEMethod and it uses an old style of class initialisation in the __init__.py along the lines of: misc_ = { 'imagef':'foo','imageg':'goo', } lang_= { 'en':'lang_en','sv':'lang_sv', } I want to put this into a modern style product initialisation (context.registerClass).

Re: [Zope-dev] DTML block parsing

2001-01-23 Thread Steve Alexander
Casey Duncan wrote: OK, I have developed a new patch that almost completely fixes this issue. In fact I am happier with it in general than my first patch. There is only one flaw, although you can nest comments inside of one another, and you can have any manner of broken dtml inside, if you

[Zope] Buffer overflow in MySQL 3.23.31

2001-01-23 Thread Ragnar Beer
Howdy! Just for us MySQL users I'm forwarding this from bugtraq. Ragnar Hi, all versions of MySQL 3.23.31 have a buffer-overflow which crashs the server and which seems to be exploitable (ie. 4141414 in eip) Problem : An attacker could gain mysqld privileges (gaining access to all the

RE: [Zope] Zope 2.3.0b2 bug #2

2001-01-23 Thread Oleg Broytmann
On Mon, 22 Jan 2001, Dieter Maurer wrote: Oleg Broytmann writes: Hm, will you fix my browser, too? I am using Netscape for Linux, don't know how well it plays with Unicode. I suppose it plays bad :( We use Netscape (4.5, 4.7; Linux, Windows) with "charset=utf-8" and it handles it

[Zope] Python Products and ZODB Transactions

2001-01-23 Thread Stephan Richter
Hello everyone, wow, I haven't posted here for a while now, but now I came to a bigger problem and I hope someone of you will have some suggestions: I built a Python Product that saves and gets data from a RDB. Whenever a method is called from my Python Product, the ZODB saves the

Re: [Zope] ZPyGresQL Connection Add Error

2001-01-23 Thread Oleg Broytmann
On Mon, 22 Jan 2001, Craig wrote: Error Type: IOError Error Value: [Errno 2] No such file or directory: '/usr/lib/zope/lib/python/Shared/DC/ZRDB/connectionAdd.dtml' Also check all permissions starting from the root. Oleg. Oleg Broytmann http://www.zope.org/Members/phd/

[Zope] Opensource DBMS for WIN?

2001-01-23 Thread Paul Zwarts
Greetings, Was wondering if there was an open source dbms to use with Zope on a Win2k machine...? I found references of using cygwin to run PGSQL (which we have on our unixbox) but would prefer something that doesnt run over an extender-shell... TIA, Paz

Re: [Zope] Opensource DBMS for WIN?

2001-01-23 Thread Phil Harris
Try: http://www.mysql.com http://firebird.sourceforge.net (was Borland Interbase, Firebird is the open-source version). hth Phil - Original Message - From: "Paul Zwarts" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 23, 2001 9:35 AM Subject: [Zope] Opensource DBMS for

Re: [Zope] LocalFS and PathHandler

2001-01-23 Thread Chris Withers
Ulrich Wisser wrote: Hello, I try to access LocalFS from my own DTML method. (Exactly from my PathHandler method.) I got all directory information in one array like this path_to_handle = ['sub1', 'sub2', 'sub3'] How can a get a directory listining with LocalFS for path

Re: [Zope] Python Products and ZODB Transactions

2001-01-23 Thread Toby Dickenson
On Tue, 23 Jan 2001 03:28:34 -0600, Stephan Richter [EMAIL PROTECTED] wrote: Hello everyone, wow, I haven't posted here for a while now, but now I came to a bigger problem and I hope someone of you will have some suggestions: I built a Python Product that saves and gets data from a RDB.

[Zope] Getting access to python methods of some product

2001-01-23 Thread Ivan Somov
How I can use method, stored in a ".py" file of some product, and send some parameters to that method? I want to create an instance of ExtImage product programmatically, but have a troubles doing it.. ___ Zope maillist - [EMAIL PROTECTED]

[Zope] [voipiri: Re: [Zope] Opensource DBMS for WIN?]

2001-01-23 Thread Riku Voipio
too fast typing - ment this to the list... -- Riku Voipio [EMAIL PROTECTED] 09-862 60764 On Tue, Jan 23, 2001 at 10:35:11AM +0100, Paul Zwarts wrote: Greetings, Was wondering if there was an open source dbms to use with Zope on a Win2k machine...? I found references of using cygwin to

Re: [Zope] ActiveState on Zope.org

2001-01-23 Thread Tres Seaver
"Andy McKay" [EMAIL PROTECTED] wrote hi, I'm kind of surprised that Active State has such a big promo on Zope.org's site considering they use IIS; and considering the blurb talks about how much they do for Open Source. We use IIS for many reasons, it's fast and we use some of

[Zope] exchanging ids in a single transaction

2001-01-23 Thread Jerome Alet
Hi, I'm currently thinking about a project in which I'd want to be able to exchange 2 objects ids. My plan is to save the first one's id then rename the first one with the second's id then rename the second with the first's id which is very classical. I've got no code yet, but I want to know

Re: [Zope] Getting access to python methods of some product

2001-01-23 Thread Oleg Broytmann
Hi! On Tue, 23 Jan 2001, Ivan Somov wrote: How I can use method, stored in a ".py" file of some product, and send some parameters to that method? I think, you can just acquire the method (if it is in the ZODB and is acquirable). I want to create an instance of ExtImage product

[Zope] Getting an object from it's id

2001-01-23 Thread Gale
Hi, This is obviously a newbie question. I have several places in my dtml code where in order to obtain an object I loop through objects of that kind and make a test to determine if each objects id matches the id I picked up from a form. This is the only way I could get it to work; but I feel

Re: [Zope] Getting an object from it's id

2001-01-23 Thread Erik Enge
[[EMAIL PROTECTED]] | Is there a Zope API method that will allow me to get an object from | it's id, or can I write a simple Python method to do it, or am I | missing something even more obvious? Well, sometimes objectItems or objectValues can be the right ones to use. Other times, (in Python

RE: [Zope] Python Products and ZODB Transactions

2001-01-23 Thread Toby Dickenson
If your method changes data then it will always get saved. The only way is to make sure your method never modifies a persistent object. -Original Message- From: Stephan Richter [mailto:[EMAIL PROTECTED]] Sent: 23 January 2001 11:11 To: [EMAIL PROTECTED] Subject: Re: [Zope] Python

Re: [Zope] Getting an object from it's id

2001-01-23 Thread Oleg Broytmann
On Tue, 23 Jan 2001, Gale wrote: dtml-in expr="objectValues('Folder')" dtml-if "myId==id" You don't need to "get" the object, as the object is already on top of the namespace stack (dtml-in put the object there on every iteration). Just use the object's attributes (id, after all, is just

[zope] : Postgre installation problem

2001-01-23 Thread K H Subrahmanyan
I have installed postgre SQL in my linux server. I have installed ZpopyDA to my zope installation. but when I run the server I get the following error. help me. what else I have to do. kindly give the necessary links. thanks in advance. ZPoPyDA Import Traceback Traceback (innermost last):

[Zope] Dynamic ordering of DTML-IN?

2001-01-23 Thread Andy Gates
Another one from the "my brain don't work" side of the tracks: I have a staff list that I want to be orderable by first or last name. So I have buttons for each that link thus: a href="staff?orderby=firstname" etc The idea is that that feeds over to the DTML-IN tag thus: dtml-in

Re: [zope] : Postgre installation problem

2001-01-23 Thread Jerome Alet
On Tue, 23 Jan 2001, K H Subrahmanyan wrote: I have installed postgre SQL in my linux server. I have installed ZpopyDA to my zope installation. but when I run the server I get the following error. ZPoPyDA Import Traceback raise "The PoPy module is not installed" The PoPy module is

Re: [Zope] Opensource DBMS for WIN?

2001-01-23 Thread Petru Paler
On Tue, Jan 23, 2001 at 10:35:11AM +0100, Paul Zwarts wrote: Was wondering if there was an open source dbms to use with Zope on a Win2k machine...? I found references of using cygwin to run PGSQL (which we have on our unixbox) but would prefer something that doesnt run over an

Re: [Zope] Dynamic ordering of DTML-IN?

2001-01-23 Thread Diego Rodrigo Neufert
You can use something like: dtml-if "orderby=='firstname'" dtml-in "sql_search(search='foo')" sort=firstname dtml-elif "orderby=='lastname'" dtml-in "sql_search(search='foo')" sort=lastname /dtml-if On Tuesday 23 January 2001 10:39 am, you wrote: Another one from the "my brain

Re: [Zope] Getting an object from it's id

2001-01-23 Thread Geoff Armstrong
on 1/23/01 12:34 PM, Oleg Broytmann at [EMAIL PROTECTED] wrote: On Tue, 23 Jan 2001, Gale wrote: dtml-in expr="objectValues('Folder')" dtml-if "myId==id" What I'm trying to do here is avoid using dtml-in, since in order for it to put the object in the namespace it has to iterate over all of

Re: [Zope] Dynamic ordering of DTML-IN?

2001-01-23 Thread Andrew Kenneth Milton
+---[ Andy Gates ]-- | Another one from the "my brain don't work" side of the tracks: | | I have a staff list that I want to be orderable by first or last name. | So I have buttons for each that link thus: | | a href="staff?orderby=firstname" etc | | The idea is that

Re: [Zope] Getting an object from it's id

2001-01-23 Thread Andrew Kenneth Milton
+---[ Geoff Armstrong ]-- | on 1/23/01 12:34 PM, Oleg Broytmann at [EMAIL PROTECTED] wrote: | | In DTML there doesn't seem to be a way of saying, "I have this string with | the name of an object, now fetch me the object." if objectname is actually a variable with the

Re: [Zope] LocalFS and PathHandler

2001-01-23 Thread Ulrich Wisser
Hello, At 19:54 22.01.2001 +0100, Dieter Maurer wrote: Ulrich Wisser writes: How can a get a directory listining with LocalFS for path "/sub1/sub2/sub3/"? I know I need something like "lfs['sub1']['sub2']['sub3'].fileids". But what if there are more (or less) elements in

Re: [Zope] Zope, database field formats, output format of queries

2001-01-23 Thread Michael Schmidt
On Mon, Jan 22, 2001 at 07:50:45PM +0100, Dieter Maurer wrote: Michael Schmidt writes: Can you create fields in a zope based database where you force the fields to accept e.g. only letters "M" or "W" or any other other combination of your choice? What do you mean with a Zope based

Re: [Zope] Dynamic ordering of DTML-IN?

2001-01-23 Thread Andy Gates
Message-ID: [EMAIL PROTECTED] Priority: NORMAL X-Mailer: Execmail for Win32 5.1 Build (9) MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" You can use something like: dtml-if "orderby=='firstname'" dtml-in "sql_search(search='foo')" sort=firstname dtml-elif

[Zope] Trivial challenge ?

2001-01-23 Thread Olivier Deckmyn
Hi all, I have a problem that looks simple (if not trivial) : I would like to "render" a DTML Document using a DTML Method. The DTMLDoc is "mydoc", has a title (="My Document") and a content (="I am the doc content") The DTMLMethod is "render" and its code is : """ I am rendering the dtml-var

Re: [Zope] Getting an object from it's id

2001-01-23 Thread Ivan Cornell
Geoff Armstrong wrote: What I'm trying to do here is avoid using dtml-in, since in order for it to put the object in the namespace it has to iterate over all of them (there could be any number). All I have at the beginning is the name of the object in the REQUEST part of the namespace as

Re: [Zope] Trivial challenge ?

2001-01-23 Thread Andrew Kenneth Milton
+---[ Olivier Deckmyn ]-- | Hi all, | """ | dtml-with mydoc | dtml-var render | /dtml-with Why don't you just do dtml-var mydoc ? you can also do dtml-var "mydoc.render(_.None,_)" I suppose -- Totally Holistic Enterprises Internet| P:+61 7 3870 0066 | Andrew

RE: [Zope] Getting an object from it's id

2001-01-23 Thread Max Møller Rasmussen
From: Geoff Armstrong [mailto:[EMAIL PROTECTED]] In DTML there doesn't seem to be a way of saying, "I have this string with the name of an object, now fetch me the object." Shure there is: dtml-var "some_container_object[remote_id].title" As far as I remember. regards Max M A snippet I use

Re: [Zope] Trivial challenge ?

2001-01-23 Thread Olivier Deckmyn
I tried dtml-var "mydoc.render(_.None,_)" The same result : does'nt work...(exactly like with the dtml-with tag) - Original Message - From: "Andrew Kenneth Milton" [EMAIL PROTECTED] To: "Olivier Deckmyn" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, January 23, 2001

Re: [Zope] Getting an object from it's id

2001-01-23 Thread Geoff Armstrong
on 1/23/01 1:12 PM, Erik Enge at [EMAIL PROTECTED] wrote: Thanks; but being new to this could you help me a bit more by providing an example of how to use 'getOb' within dtml code. I tried testing in; but couldn't get it work. Geoff [[EMAIL PROTECTED]] | Is there a Zope API method that

Re: [Zope] Trivial challenge ?

2001-01-23 Thread Andrew Kenneth Milton
+---[ Olivier Deckmyn ]-- | I tried dtml-var "mydoc.render(_.None,_)" | | The same result : does'nt work...(exactly like with the dtml-with tag) and dtml-var mydoc ? -- Totally Holistic Enterprises Internet| P:+61 7 3870 0066 | Andrew Milton The Internet

[Zope] _.getitem() was:Getting an object from it's id

2001-01-23 Thread Tim Cook
Speaking of getitem... if objectname is actually a variable with the name... dtml-with "_.getitem(objectname,0)" Can someone explain this from the ZQR? getitem(name,flag) Lookup a name in the namespace. If the value is callable and the flag is true, then the result of calling the value is

Re: [Zope] Getting an object from it's id

2001-01-23 Thread Geoff Armstrong
on 1/23/01 1:20 PM, Ivan Cornell at [EMAIL PROTECTED] wrote: Hi Ivan, Thanks. The "_.getitem(myId)" works well. I've made a note of the "hasattr" trick as well for future reference. Geoff Geoff Armstrong wrote: What I'm trying to do here is avoid using dtml-in, since in order for it to

Re: [Zope] Trivial challenge ?

2001-01-23 Thread Chris Withers
Olivier Deckmyn wrote: this is not what I need !!! Yes : dtml-var mydoc displays the content of the document... But I don't need this. The example I gave is a simplified pb of my __real_world__ problem ... Just to show the interessting point ! My __real_world__ document has several

Re: [Zope] Trivial challenge ?

2001-01-23 Thread Olivier Deckmyn
this is not what I need !!! Yes : dtml-var mydoc displays the content of the document... But I don't need this. The example I gave is a simplified pb of my __real_world__ problem ... Just to show the interessting point ! My __real_world__ document has several properties, etc... and a I have a

Re: [Zope] _.getitem() was:Getting an object from it's id

2001-01-23 Thread Chris Withers
Tim Cook wrote: I use getitem() quite alot and never set the flag (therefore it's false). It works and does what I want, but the ZQR entry doesn't seem to support that and I have seen it given as an example with the flag set true with what appears to me to be the same results. ...it can

Re: [Zope] _.getitem() was:Getting an object from it's id

2001-01-23 Thread Tim Cook
Chris Withers wrote: Tim Cook wrote: I use getitem() quite alot and never set the flag (therefore it's false). It works and does what I want, but the ZQR entry doesn't seem to support that and I have seen it given as an example with the flag set true with what appears to me to be the

[Zope] Re: Trivial challenge ?

2001-01-23 Thread Olivier Deckmyn
I got it : dtml-with "mydoc" dtml-var render /dtml-with rather than : dtml-with mydoc dtml-var render /dtml-with after all, this is quite logical ;) ps : The idea came to me after playing with : dtml-var "mydoc.title_or_id()" - Original Message - From: "Olivier Deckmyn"

Re: [Zope] Getting an object from it's id

2001-01-23 Thread Geoff Armstrong
on 1/23/01 1:39 PM, Max Mller Rasmussen at [EMAIL PROTECTED] wrote: Thanks. That's great; but you do need to know the objects immediate container right? I have one situation where the container could be one of many. Geoff From: Geoff Armstrong [mailto:[EMAIL PROTECTED]] In DTML there

RE: [Zope] Opensource DBMS for WIN?

2001-01-23 Thread Farrell, Troy
PostgreSQL compiles on Win32, but only under RedHat's(formerly Cygnus') Cygwin Unix Compatibility Layer. http://www.postgresql.org http://people.freebsd.org/~kevlo/postgres/portNT.html MySQL, the newly GPL'd version, was declared stable yesterday. http://www.mysql.com SapDB is to be open-sourced

Re: [Zope] Dynamic ordering of DTML-IN?

2001-01-23 Thread Oliver Bleutgen
Then change your Z SQL Method to look like; select * from Customers where foofield=dtml-sqlvar search type=string dtml-if orderby ORDER BY dtml-var orderby /dtml-if Hmm, I wouldn't do that, you're trusting the client here, imagine someone going to

Re: [Zope] Dynamic ordering of DTML-IN?

2001-01-23 Thread Andrew Kenneth Milton
+---[ Oliver Bleutgen ]-- | Then change your Z SQL Method to look like; | | select * from Customers where | foofield=dtml-sqlvar search type=string | dtml-if orderby | ORDER BY dtml-var orderby | /dtml-if | | Hmm, I wouldn't do that, you're trusting the client

[Zope] EMail with uploaded attachments

2001-01-23 Thread Klaus Herrmann
Hi Folks! I have another problem: I wrote a nice web interface for email feedback etc., but i want to add an option for attaching files to the emails. how can i do this? i can't get it to work. i have this: form action="send_email" method=post enctype="multipart/form-data" .. input type=file

Re: [Zope] Trivial challenge ?

2001-01-23 Thread Tim Cook
Olivier Deckmyn wrote: this is not what I need !!! Yes : dtml-var mydoc displays the content of the document... But I don't need this. The example I gave is a simplified pb of my __real_world__ problem ... Just to show the interessting point ! My __real_world__ document has several

Re: [Zope] ZPoPyDa doesnt find the PoPy-Module

2001-01-23 Thread jpenny
On Tue, Jan 23, 2001 at 07:41:45AM +0100, Axel Missbach wrote: [EMAIL PROTECTED] wrote: On Sun, Jan 21, 2001 at 11:27:30AM +0100, Axel Missbach wrote: Hey to all, having installed the PoPy-Modul-2.01. The ZPoPyDa-1.01-pre2 doesnt find it. calling "import PoPy" in the

Re: [Zope] EMail with uploaded attachments

2001-01-23 Thread Erik Enge
[Klaus Herrmann] | but the only result is that the attachments contains: | ZPublisher.HTTPRequest.FileUpload instance at 88b4df0 I might be wrong, but what if you used this instead: dtml-var "_[attached_file]" Would that work? ___ Zope

Re: [Zope] Opensource DBMS for WIN?

2001-01-23 Thread Marcin Kasperski
PostgreSQL compiles on Win32, but only under RedHat's(formerly Cygnus') Cygwin Unix Compatibility Layer. http://www.postgresql.org http://people.freebsd.org/~kevlo/postgres/portNT.html MySQL, the newly GPL'd version, was declared stable yesterday. http://www.mysql.com SapDB is to be

[Zope] Problem instantiating ZClass

2001-01-23 Thread Åsmund Hjulstad
There appears to be something wrong... My config: Zope from CVS (2001-01-23, 16:15GMT) Python 2.0 (yes, I know it is not supported) I did the following: In Control Panel, generate new product. In the new product, Added new class (filled in the blanks). In the root folder: Add, select

RE: [Zope] Python Products and ZODB Transactions

2001-01-23 Thread Stephan Richter
At 12:27 PM 1/23/01 +, Toby Dickenson wrote: If your method changes data then it will always get saved. The only way is to make sure your method never modifies a persistent object. Mmmhh, so my answer is not to derive my classes from Persistent. Will it then actually store the object in the

Re: [Zope] form question

2001-01-23 Thread jpenny
On Mon, Jan 22, 2001 at 07:55:28PM +0100, Dieter Maurer wrote: Oliver Vecernik writes: I'm designing an application gathering data with forms. Navigation should be done with Prev and Next buttons. As long as I'm not leaving the form data should be entered, processed and the *same* or

Re: [Zope] Dynamic ordering of DTML-IN?

2001-01-23 Thread Adam Karpierz
You can use something like: dtml-if "orderby=='firstname'" dtml-in "sql_search(search='foo')" sort=firstname dtml-elif "orderby=='lastname'" dtml-in "sql_search(search='foo')" sort=lastname /dtml-if For Zope.2.3.0+ you can use: dtml-in "sql_search(search='foo')" sort_expr="orderby" --

Re: [Zope] Opensource DBMS for WIN?

2001-01-23 Thread Adam Karpierz
Greetings, Was wondering if there was an open source dbms to use with Zope on a Win2k machine...? I found references of using cygwin to run PGSQL (which we have on our unixbox) but would prefer something that doesnt run over an extender-shell... TIA, Paz InterBase From versiom 6.0 it is

Re: [Zope] Opensource DBMS for WIN?

2001-01-23 Thread Hannu Krosing
Paul Zwarts wrote: Greetings, Was wondering if there was an open source dbms to use with Zope on a Win2k machine...? I found references of using cygwin to run PGSQL (which we have on our unixbox) but would prefer something that doesnt run over an extender-shell... For smaller tasks you

Re: [Zope] Zope 2.3.0b2 bug #2

2001-01-23 Thread Hannu Krosing
Oleg Broytmann wrote: On Mon, 22 Jan 2001, Dieter Maurer wrote: Oleg Broytmann writes: Hm, will you fix my browser, too? I am using Netscape for Linux, don't know how well it plays with Unicode. I suppose it plays bad :( We use Netscape (4.5, 4.7; Linux, Windows) with

Re: [Zope] Trivial challenge ?

2001-01-23 Thread Wolfgang Strobl
On 23 Jan 2001, at 14:17, Chris Withers wrote: Olivier Deckmyn wrote: this is not what I need !!! Yes : dtml-var mydoc displays the content of the document... But I don't need this. The example I gave is a simplified pb of my __real_world__ problem ... Just to show the

[Zope] Re: ZClasses and title property

2001-01-23 Thread Aaron Louie
I think the problem goes deeper than that. Zope 2.3x no longer allows the setting or creation of any property called "title" for new ZClasses. Period (At least, not in the same way it used to). Try it for yourself. If you follow the steps in the "ZClass Properties" How-to

RE: [Zope] Re: ZClasses and title property

2001-01-23 Thread Brian Lloyd
I think the problem goes deeper than that. Zope 2.3x no longer allows the setting or creation of any property called "title" for new ZClasses. Period (At least, not in the same way it used to). Try it for yourself. If you follow the steps in the "ZClass Properties" How-to

[Zope] ZClasses date properties

2001-01-23 Thread Tim Moore
OK, now that I've settled my title property conundrum by just calling the property "name" instead :-\ I go to add a "date" property to my ZClass and find that it doesn't like that either. Specifically, it won't let me add a property of type date with no value, giving me an "Invalid Date-Time

[Zope] Fw: [Zope] ZClasses date properties

2001-01-23 Thread Andy McKay
Empty date fields are not allowed, this has been a feature for a while. I set mine to 1970/01/01 for the hell of it. -- Andy McKay. - Original Message - From: "Tim Moore" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 23, 2001 11:24 AM Subject: [Zope]

Re: [Zope] LocalFS and PathHandler

2001-01-23 Thread Jonothan Farr
Now I should have a reference to the object in mylfs. How can I detect if mylfs is a file or a directory? dtml-if "mylfs.meta_type=='Local Directory' --jfarr ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope **

[Zope] Property sheet feature request

2001-01-23 Thread Tim Moore
It would be nice to be able to reorder properties in a sheet, maybe using something like the "First" button in the views screen. I'd submit a patch myself, but I'm still figuring all this out so it would hopefully be quicker for someone else more familiar with the code to add that. thanks! --

[Zope] Help - Python

2001-01-23 Thread Paula Mangas
Hi, I'm a newbie and i would like to know how can i create a DTMLDocument from a Python method. Thanks, Paula Mangas ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! **

[Zope] PythonScript bug?

2001-01-23 Thread Tim Moore
I have a small python script method which works fine unless I bind the Namspace to a variable (even if I don't actually use the variable), which causes a MemoryError that appears to be due to deep (infinite?) recursion in the __render_with_namespace__ method (Bindings.py, line 355). Zope 2.3b2

[Zope] Zope is not getting MySQL SELECT results ...

2001-01-23 Thread Gerald Gutierrez
Hi all. I have set up, in a clean Zope installation, a MySQL database adapter. My connection string is "test test test", indicating a user test with password test connection to the test database. The adapter indicates that it can connect to the database, and I can send queries to the

[Zope] Some help required but no sarcastic comments this time please

2001-01-23 Thread alankirk
Hi there, i sent an email the other week regarding problems i've been experiencing with zope and MySQL. I've set up a database connection for zope and mysql and it sort of works. I can send queries to add data to my database ok but when i send a query to get data from my database i get one

Re: [Zope] Adding users with a PythonMethod

2001-01-23 Thread Dieter Maurer
Curtis Maloney writes: I'm trying to add a users from within a PythonMethod. I have searched this list and found examples of how to add via DTML, but they all seem to require REQUEST. ... So, what I'm left to conclude is it's easier to add a new user from DTML than it is

Re: [Zope] LocalFS and PathHandler

2001-01-23 Thread Dieter Maurer
Ulrich Wisser writes: How can I detect if mylfs is a file or a directory? I fear that is a difficult question. For unknown reasons, the builtin Python function "type" is considered unsafe (and would not help anyway). Thus, you cannot test for types. In PythonScript you have the

Re: [Zope] Upload file and :int with :required and

2001-01-23 Thread Dieter Maurer
Hi Diego, Diego Rodrigo Neufert writes: When I use dtml-unless "attach_file.filename" I got a NameError This must be "NameError 'attach_file'", right? Do you know a solution to this? because when I dont specify anything in a field zope just dont know about it... Apparently,

Re: [Zope] EMail with uploaded attachments

2001-01-23 Thread Dieter Maurer
Klaus Herrmann writes: ... Email with file attachment ... dtml-sendmail mailhost=fox To: ... From: ... Subject: ... dtml-mime type=text/plain encode=7bit plain text dtml-boundary type=application/octet-stream disposition=attachment encode=base64 dtml-var

Re: [Zope] Limited folderish objects

2001-01-23 Thread Dieter Maurer
Nolan Darilek writes: The Folder class offers quite a bit of the functionality which I need for a current project. However, what I'm attempting to create isn't a traditional folder for DTML objects, methods, etc. Instead, I'm creating a folder which contains subfolders which are intended

Re: [Zope] Zope, database field formats, output format of queries

2001-01-23 Thread Dieter Maurer
Michael Schmidt writes: On Mon, Jan 22, 2001 at 07:50:45PM +0100, Dieter Maurer wrote: What do you mean with a Zope based database? If you mean an external database, look for the datatypes and restrictions, they support for column values. SQL 3 may give you some of what you

Re: [Zope] dtml-tree causing authorization errors

2001-01-23 Thread Dieter Maurer
[EMAIL PROTECTED] writes: I've stumbled upon a strange problem with dtml-tree in version 2.2.5 (the problems occurs in the same way in any of the 2.2.x version), but didn't exhibit itself in 2.1.6: You should read Brian's excellent "Upgrade to 2.2.x" document. It will explain you the

  1   2   >