[Zope-dev] LM 0.8.6 w/CurrentCVS failure
"Phillip J. Eby" wrote: [...] LM 0.8.6 also works with Zope 2.2 as far as being able to be added, although I'm not sure it interoperates properly with the new security API. It will still be backward compatible with Zope 2.1.6 either way, though. Hmmm ... just tried it on a fresh (Thursday) CVS dump, and get a no-go: Error Type: KeyError Error Value: _owner Traceback (innermost last): File /home/web/ActiveBoise/Games/lib/python/ZPublisher/Publish.py, line 224, in publish_module File /home/web/ActiveBoise/Games/lib/python/ZPublisher/Publish.py, line 189, in publish File /home/web/ActiveBoise/Games/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook File /home/web/ActiveBoise/Games/lib/python/ZPublisher/Publish.py, line 175, in publish File /home/web/ActiveBoise/Games/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: manage_addLoginManager) File /home/web/ActiveBoise/Games/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: manage_addLoginManager) File /home/web/ActiveBoise/Gaming/lib/python/Products/LoginManager/LoginManager.py, line 230, in manage_addLoginManager File /home/web/ActiveBoise/Games/lib/python/OFS/ObjectManager.py, line 249, in _setObject (Object: ElementWithAttributes) File /home/web/ActiveBoise/Games/lib/python/AccessControl/Owned.py, line 267, in manage_fixupOwnershipAfterAdd (Object: SheetProviderContainer) File /home/web/ActiveBoise/Games/lib/python/AccessControl/Owned.py, line 174, in changeOwnership (Object: SheetProviderContainer) KeyError: (see above) -- ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] Repeating a piece of HTML code
Hello, it's the first time I write here and I'm a newbie at Zope, so maybe I'm asking a stupid question... Case is I retrieve from my movie database the value of the movie from 1 to 5 stars. I would like to repeat that n times the code img SRC="star.gif" height=15 width=15 so the number of stars would appear: 1 - * 2 - ** 3 - *** 4 - 5 - * Is there any way to do so in Zope? Does the dtml-in tag anything to do with it? Thank you! = Saludos!! _-/Txapulin\-_ [EMAIL PROTECTED] O \ / ---\ / O http://www.geocities.com/txapulin \/ | \/ / |XAP\ || || __ Do You Yahoo!? Yahoo! Photos -- now, 100 FREE prints! http://photos.yahoo.com ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] newbie / dtml-tree and external methods
Hi all, I'm newbie both in python and in zope (in English too!), and here is a problem I realy can't sort out. I would to display the tree structure of a repository disk. Therefore I wrote a recursive class MyFolder, with the following attributes (code is at the bottom of the message): class MyFolder: fname : name of the base folder subfolders : a list of MyFolder objects, made after the subfolders of my folder MyFiles : a list of the files of my folder (actually a list of object whose only attribute is the name of the file) I call this class with the following external method: def ZMyWalk(self,dir): #=None): """ returns ...""" # MyRepTest is the default value #if not dir : dir=MyRepTest return MyFolder(dir) And I try to publish it with the following DTML-method: dtml-with "ZMyWalk('saigon\\d\\divers\\wlk')" dtml-tree branches_expr=subfolders dtml-var FolderName dtml-in MyFiles dtml-var namebr /dtml-in /dtml-tree /dtml-with It displays the first level fine. But when I try to expand the tree by clicking on the small + sign, it acts randomly (doesn't do anything, or expand another branch, sometimes it even does the right thing, ..). Any guess? I'm totally lost :-( . I'm not sure I does this the right way. The SomeFile class I 've made seem rather artificial. I run Zope 2.1.6 with Python 1.5.2 under NT4.0 and I got the TreeTag.py pach. PS : here are the classes I use. class MyFolder: """fait une recursion dans un repertoire""" def __init__(self,dir): self.path=dir self.FolderName=os.path.basename(dir) self.subfolders=[] self.MyFiles=[] for f in os.listdir(dir): pathname='%s\\%s' % (dir, f) if os.path.isdir(pathname): self.subfolders.append(MyFolder(pathname)) elif os.path.isfile(pathname): self.MyFiles.append(SomeFile(f)) else: pass class SomeFile: """ ... """ def __init__(self,name): self.name=name ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Repeating a piece of HTML code
Alex Mendez wrote: Hello, it's the first time I write here and I'm a newbie at Zope, so maybe I'm asking a stupid question... Case is I retrieve from my movie database the value of the movie from 1 to 5 stars. I would like to repeat that n times the code img SRC="star.gif" height=15 width=15 so the number of stars would appear: 1 - * 2 - ** 3 - *** 4 - 5 - * Is there any way to do so in Zope? Does the dtml-in tag anything to do with it? dtml-in expr="_.range(0, movie_rating)" img SRC="star.gif" height=15 width=15 /dtml-in Replace movie_rating with the variable that represents the movie rating. Shane ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Repeating a piece of HTML code
Shane Hathaway wrote: Alex Mendez wrote: Hello, it's the first time I write here and I'm a newbie at Zope, so maybe I'm asking a stupid question... Case is I retrieve from my movie database the value of the movie from 1 to 5 stars. I would like to repeat that n times the code img SRC="star.gif" height=15 width=15 so the number of stars would appear: 1 - * 2 - ** 3 - *** 4 - 5 - * Is there any way to do so in Zope? Does the dtml-in tag anything to do with it? dtml-in expr="_.range(0, movie_rating)" img SRC="star.gif" height=15 width=15 /dtml-in Replace movie_rating with the variable that represents the movie rating. What about dtml-var "'*' * movie_rating" ? -- Steve Alexander Software Engineer Cat-Box limited ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Repeating a piece of HTML code
Steve Alexander wrote: Shane Hathaway wrote: dtml-in expr="_.range(0, movie_rating)" img SRC="star.gif" height=15 width=15 /dtml-in Replace movie_rating with the variable that represents the movie rating. What about dtml-var "'*' * movie_rating" ? Or rather: dtml-var "'img SRC=star.gif height=15 width=15' * movie_rating" -- Steve Alexander Software Engineer Cat-Box limited ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Repeating a piece of HTML code
if number_of_stars is 5 then dtml-var " '*' * number_of_stars " will give you * (Multiplication works on strings in python and thus Zope!) Jim Sanford - Original Message - From: "Alex Mendez" [EMAIL PROTECTED] To: "Lista Zope" [EMAIL PROTECTED] Sent: Friday, June 02, 2000 5:28 AM Subject: [Zope-dev] Repeating a piece of HTML code Hello, it's the first time I write here and I'm a newbie at Zope, so maybe I'm asking a stupid question... Case is I retrieve from my movie database the value of the movie from 1 to 5 stars. I would like to repeat that n times the code img SRC="star.gif" height=15 width=15 so the number of stars would appear: 1 - * 2 - ** 3 - *** 4 - 5 - * Is there any way to do so in Zope? Does the dtml-in tag anything to do with it? Thank you! = Saludos!! _-/Txapulin\-_ [EMAIL PROTECTED] O \ / ---\ / O http://www.geocities.com/txapulin \/ | \/ / |XAP\ || || __ Do You Yahoo!? Yahoo! Photos -- now, 100 FREE prints! http://photos.yahoo.com ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Repeating a piece of HTML code
dtml-in expr="_.range(0, movie_rating)" img SRC="star.gif" height=15 width=15 /dtml-in Replace movie_rating with the variable that represents the movie rating. What about dtml-var "'*' * movie_rating" ? Fine, except that he wants the img tag repeated the appropriate number of times. Try putting the tag into the dtml-var statement and you get something along the lines of (untested): dtml-var "('img src=%sstart.gif%s height=15 width=15' % (_.chr(34), _.chr(34))) * movie_rating" at which point the dtml-in starts to look more appealing. Of course if you rename star.gif as star_gif you could try: dtml-var "start_gif.tag() * movie_rating" which has a certain neatness. -- Duncan Booth [EMAIL PROTECTED] int month(char *p){return(124864/((p[0]+p[1]-p[2]0x1f)+1)%12)["\5\x8\3" "\6\7\xb\1\x9\xa\2\0\4"];} // Who said my code was obscure? http://dales.rmplc.co.uk/Duncan ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Using string idiom in dtml
Another slightly different idiom is: dtml-var """'img src="foo.gif"' * 12""" It isn't very SGML-like though. Jim Sanford wrote: You've got my vote. Being able to use """ would solve alot of my dtml coding headaches. Jim Sanford - Original Message - From: "Steve Alexander" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, June 02, 2000 8:06 AM Subject: [Zope-dev] Using """string""" idiom in dtml How easy would it be to allow """python strings""" inside DTML tag attributes? I'm thinking particularly of situations like: dtml-var "'''img src="foo.gif"''' * 12" Currently, you need to mess about with _.chr(34) and string concatenation. The triple-quote idiom looks clearer to my eyes. -- Steve Alexander Software Engineer Cat-Box limited ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] The future of Zope with XML
Hello, Thanks for getting this document going. It's good to see where XML is going in Zope. I do have a question, though. For me, the main value in XML has been in its usefulness as a flexible interchange format. Right now, I can store data as objects (either straight Python or ZClasses) in Zope and transform those into XML if I need to share it with the outside world (eg RSS). Similarly, though I haven't done this, I believe I can take XML from the outside world, parse it and store it in objects in the database. Are there advantages to storing the data in Zope as XML vs. storing my data as objects? Thanks, Kevin - Original Message - From: Glenn Gasmen To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, June 01, 2000 11:05 PM Subject: [Zope-dev] The future of Zope with XML http://www.zope.org/Wikis/zope-xml/Unified%20Vision ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] Re: ZPatterns complexity?
At 01:40 PM 6/2/00 +0800, Mike wrote: As I'm reading ZPatterns source code more and more I'm finding there are good things just hidden in unclean or bad defined interfaces. Just a suggestion: define interfaces as abstract classes first, then implement them (as AbstractRack, DefaultRack and GenericRack for example). I might back interfaces out later. But while the whole thing is still a prototype it doesn't make a lot of sense to keep two going. Originally, Rack itself was a base class, but the way things are shaping up it will only need subclassing if you want a custom way of mapping from a mountable's "id" to the persistent data stored by the Rack. told 'mess' I meant I spent a lot of time to realize the Rack do not store RackMountables but just manages them. That was the whole point of Rack; this has been mostly addressed on the mailing list, in my talk/slides at the Python conference, and in the ZPatterns wiki. The second thing confusing me is property sheets. They come from problem domain isn't it? I guess attribute providers are sufficient to do all the work. What that sheets needed for? Two things. 1) WebDAV support requires the ability to add arbitrary property sheets containing arbitrary data. 2) Propertysheets (especially when used with XML namespace URL's) give a way of standardizing an interface to common properties, without polluting an object's "main" namespace. This way, one can take an object that wasn't designed for a certain purpose, and attach a propertysheet that serves as an adapter to give it a different interface to its data. Consider the scenario of a scheduling application that creates calendars, or manages resource contention. But you would like to use it with say, a "room" object that was not written as part of the scheduling application. If the scheduling application can just add a scheduling propertysheet to the room object, or you can configure the room objects' datamanager or rack to add a propertysheet that makes it usable with the scheduling application, then you get to benefit from two unrelated frameworks (room management and scheduling). This is a core intent of ZPatterns: making it easy to blend frameworks that cover different behavioral aspects and problem domains. Because real world objects have a funny way of being part of more than one "problem domain" from a software development point of view. :) And one more thing I would to say. I agree the RackMountable should not be acquisition-aware because Attribute providers have full responsibility on its (acquired) attributes. But I do not like default Specialist.__bobo_traverse__ behavior. It is trying to make __of__ on thing which is not an Acquisition.Implicit by definition! Good point. __of__, however, is not limited only to acquisition. In any case, I have moved the __of__ call to the Specialist.getItem() method in 0.4.0. In 0.4.0 DataSkins (the replacement for RackMountables) include an __of__ method in their base class, as this is where they figure out their controlling DataManager (when retrieved from something other than a Rack). Thus, with 0.4.0 it is not necessary to include Acquisition.Implicit in a RackMountable's base classes. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] The future of Zope with XML( what does ZDOM do for us? )
Hi Kevin, What FourThought/DC are currently doing with Zope will allow for fast transformations to memory-resident structured data( ZDOM or whatever ) to exportable XML documents( which are simply strings of characters ). This introduces( to the Zope world ) cutting edge metaphors in web-application design. All data to be served to a client is some form of XML: including HTML ( a better term: structured data ). The internal structure, or representation( or "deep structure" if you are into Chomsky ), is the data/knowledge as the web site managers see it- and most likely the most accurate and flexible when dealing with the particular information-domain( this is what theyre paid for :) ). Each user has custom needs- and wants to see this information the way they( or the applications working on thier behalf ) are accustomed to. So, architectually speaking, we need a way to easily and quickly construct XML documents from some meta-type( our internal structure ). This is what ZDOM is accomplishing for us. Parsing is a expensive endeavor. It is not practical to parse character streams every time we want to get at our data. So the solution is to represent the data as something more computationally digestible. Again : this is what ZDOM is accomplishing for us. Does this answer your question? have a good weekend, Josh Zeidner -"zippa-dee-doo-da" , uncle remus Hello, Thanks for getting this document going. It's good to see where XML is going in Zope. I do have a question, though. For me, the main value in XML has been in its usefulness as a flexible interchange format. Right now, I can store data as objects (either straight Python or ZClasses) in Zope and transform those into XML if I need to share it with the outside world (eg RSS). Similarly, though I haven't done this, I believe I can take XML from the outside world, parse it and store it in objects in the database. Are there advantages to storing the data in Zope as XML vs. storing my data as objects? Thanks, Kevin - Original Message - From: Glenn Gasmen To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, June 01, 2000 11:05 PM Subject: [Zope-dev] The future of Zope with XML http://www.zope.org/Wikis/zope-xml/Unified%20Vision ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] LM 0.8.6 w/CurrentCVS failure
At 01:51 AM 6/2/00 -0600, Bill Anderson wrote: "Phillip J. Eby" wrote: [...] LM 0.8.6 also works with Zope 2.2 as far as being able to be added, although I'm not sure it interoperates properly with the new security API. It will still be backward compatible with Zope 2.1.6 either way, though. Hmmm ... just tried it on a fresh (Thursday) CVS dump, and get a no-go: Error Type: KeyError Error Value: _owner Thanks for the heads-up, but it worked with the current CVS as of the release of 0.8.6. It's going to be a little while before we can take a whack at it again. 2.1.6 is our primary development platform for both ZPatterns and LoginManager. When we do releases, we check them against the latest CVS of Zope for compatibility, but it's something of a pain as we have to do a certain amount of conditional coding to deal with the presence or absence of 2.2 API's. This is more a problem with LoginManager, although ZPatterns is about to have some conditional code added to work with Jim's new __get/set/delattr__ support (which, if it works, would mean the DynPersist module would not be required for 2.2). ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] Adding files to a request feature
Hi, I have created a very simple Search and Replace tab and added it to my Zope´s management interface. I would like to contribute this to the Zope distribution if possible. What process do I need to follow for you guys to check it out. I found the collector and I imagine I could add a request for a feature. But is there a way to include new files with that? Thanks for your help. Carlos de la Guardia ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] The future of Zope with XML( what does ZDOM do for us? )
Hi, Josh Thanks for the insight! I also just noticed that there is a whole lot of good information already up there in the Wiki. This does look like great stuff. I see how it complements Zope's current data storage capabilities. It provides good ways to move XML data in and out of the ZODB via XSLT and to store and manipulate XML data efficiently using XML Documents. These are excellent capabilities indeed. Have a great weekend! Kevin - Original Message - From: "Josh Zeidner" [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, June 02, 2000 10:54 AM Subject: Re: [Zope-dev] The future of Zope with XML( what does ZDOM do for us? ) Hi Kevin, What FourThought/DC are currently doing with Zope will allow for fast transformations to memory-resident structured data( ZDOM or whatever ) to exportable XML documents( which are simply strings of characters ). This introduces( to the Zope world ) cutting edge metaphors in web-application design. All data to be served to a client is some form of XML: including HTML ( a better term: structured data ). The internal structure, or representation( or "deep structure" if you are into Chomsky ), is the data/knowledge as the web site managers see it- and most likely the most accurate and flexible when dealing with the particular ormation-domain( this is what theyre paid for :) ). Each user has custom needs- and wants to see this information the way they( or the applications working on thier behalf ) are accustomed to. So, architectually speaking, we need a way to easily and quickly construct XML documents from some meta-type( our internal structure ). This is what ZDOM is accomplishing for us. Parsing is a expensive endeavor. It is not practical to parse character streams every time we want to get at our data. So the solution is to represent the data as something more computationally digestible. Again : this is what ZDOM is accomplishing for us. Does this answer your question? have a good weekend, Josh Zeidner -"zippa-dee-doo-da" , uncle remus Hello, Thanks for getting this document going. It's good to see where XML is going in Zope. I do have a question, though. For me, the main value in XML has been in its usefulness as a flexible interchange format. Right now, I can store data as objects (either straight Python or ZClasses) in Zope and transform those into XML if I need to share it with the outside world (eg RSS). Similarly, though I haven't done this, I believe I can take XML from the outside world, parse it and store it in objects in the database. Are there advantages to storing the data in Zope as XML vs. storing my data as objects? Thanks, Kevin - Original Message - From: Glenn Gasmen To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, June 01, 2000 11:05 PM Subject: [Zope-dev] The future of Zope with XML http://www.zope.org/Wikis/zope-xml/Unified%20Vision ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] The future of Zope with XML( XSLT revisited )
Hi, It is great stuff! ( similar idea to Apache Cocoon )... now all we need is someone to put in an XSLT( 4XSLT ) processor into the core Zope code- are there any immediate plans for this? note: i realize this has been discussed before :) . -thanks, Josh Z Hi, Josh Thanks for the insight! I also just noticed that there is a whole lot of good information already up there in the Wiki. This does look like great stuff. I see how it complements Zope's current data storage capabilities. It provides good ways to move XML data in and out of the ZODB via XSLT and to store and manipulate XML data efficiently using XML Documents. These are excellent capabilities indeed. Have a great weekend! Kevin - Original Message - From: "Josh Zeidner" [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, June 02, 2000 10:54 AM Subject: Re: [Zope-dev] The future of Zope with XML( what does ZDOM do for us? ) Hi Kevin, What FourThought/DC are currently doing with Zope will allow for fast transformations to memory-resident structured data( ZDOM or whatever ) to exportable XML documents( which are simply strings of characters ). This introduces( to the Zope world ) cutting edge metaphors in web-application design. All data to be served to a client is some form of XML: including HTML ( a better term: structured data ). The internal structure, or representation( or "deep structure" if you are into Chomsky ), is the data/knowledge as the web site managers see it- and most likely the most accurate and flexible when dealing with the particular ormation-domain( this is what theyre paid for :) ). Each user has custom needs- and wants to see this information the way they( or the applications working on thier behalf ) are accustomed to. So, architectually speaking, we need a way to easily and quickly construct XML documents from some meta-type( our internal structure ). This is what ZDOM is accomplishing for us. Parsing is a expensive endeavor. It is not practical to parse character streams every time we want to get at our data. So the solution is to represent the data as something more computationally digestible. Again : this is what ZDOM is accomplishing for us. Does this answer your question? have a good weekend, Josh Zeidner -"zippa-dee-doo-da" , uncle remus Hello, Thanks for getting this document going. It's good to see where XML is going in Zope. I do have a question, though. For me, the main value in XML has been in its usefulness as a flexible interchange format. Right now, I can store data as objects (either straight Python or ZClasses) in Zope and transform those into XML if I need to share it with the outside world (eg RSS). Similarly, though I haven't done this, I believe I can take XML from the outside world, parse it and store it in objects in the database. Are there advantages to storing the data in Zope as XML vs. storing my data as objects? Thanks, Kevin - Original Message - From: Glenn Gasmen To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, June 01, 2000 11:05 PM Subject: [Zope-dev] The future of Zope with XML http://www.zope.org/Wikis/zope-xml/Unified%20Vision ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] XPath and Aquisition Incompatible?
hi, I was just looking over the Wiki on Zope XML, and came across the current notes on XPath. I tend to think that XPath( which is a relative discripition of a tree traversal ), and Aquisition( which implies quite a bit based on where it gets executed )- may not be exactly compatible. Has there been any discussion on this? -Josh Z Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] XPath and Aquisition Incompatible?
Josh Zeidner wrote: hi, I was just looking over the Wiki on Zope XML, and came across the current notes on XPath. I tend to think that XPath( which is a relative discripition of a tree traversal ), and Aquisition( which implies quite a bit based on where it gets executed )- may not be exactly compatible. Has there been any discussion on this? No, but there should be and I'll put it as a section under Martin's DevelopmentStrategy page -Josh Z Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) -- Chimezie Thomas-Ogbuji Consultant Fourthought Inc. (303) 583 9900 ext 104 [EMAIL PROTECTED] ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] The future of Zope with XML
Kevin Dangoor wrote: Thanks for getting this document going. It's good to see where XML is going in Zope. [note that the zope-xml list may be a better list to discuss these things; I've cc-ed to there but we might want to move the thread there completely] I do have a question, though. For me, the main value in XML has been in its usefulness as a flexible interchange format. Right now, I can store data as objects (either straight Python or ZClasses) in Zope and transform those into XML if I need to share it with the outside world (eg RSS). Right, this is definitely an advantage of XML. Similarly, though I haven't done this, I believe I can take XML from the outside world, parse it and store it in objects in the database. Right -- XMLDocument does this. It parses the XML into a DOM-like tree, storing the XML nodes as objects in the database. You still get an XML view on it, but it's actually all objects. Are there advantages to storing the data in Zope as XML vs. storing my data as objects? It can be the same thing. :) You can use XML to seperate content from layout in a clean fashion, by storing document contents in an XML format, and providing a translator of this format into HTML. Pull in the other layout components with ordinary DTML and you have a web page. I've done this with the original XMLDocument version. You can write the translator using DTML, using XMLWidgets. The new XMLDocument will support DTML (and I'll work on XMLWidgets support), and also XSLT which is a standard to transform one XML document into another (and into HTML). If you already decided to use XML for whatever reason, the advantages of the ZODB come into play. Huge XML documents don't need to be loaded into memory all at once. You can also edit smaller parts of an XML document without disrupting the rest, making for faster editing. *and* you can manipulate the XML document using DOM and XSLT. Since there are many XML formats already with new ones being developed all the time, this can potentially be a very powerful use of the ZODB. So, if you are already using XML, Zope can be a source of power. If you're not using XML, you might want to consider using it to store document-style contents so you can seperate it from layout, and so that you can leverage DOM, XPath and XSLT. It may be less useful to use XML to store other kinds of data; that will vary on a case by case basis. Then there are a number of vague possible future payoffs like being able to use various XML standard to query the ZODB, provide unique paths into it, provide pointers and linking facilities, etc. Regards, Martijn ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] XML in Zope
Kevin, I agree with you, the performance will be better and more powerful. The thing missing in zope (dtml) now is that we can not store multiple instance of the same name which is allow with xml: authorabc/authorauthorcde/author. I hope the xml implementation will have this. Rgs, Kent Sin - kentsin.weblogs.com kentsin.imeme.net ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] ZPHP [was Re: [Zope] CHAT]
On Thu, 1 Jun 2000, [iso-8859-1] Gonçalo Gomes wrote: Silver_Surfer: how do you see the future of Zope fighting against PHP space on the web? Jim: I don't know much (enough) about PHP, but from what I vaguely know, PHP methods seem like a logical step. Hmm... I'm having to setup a PHP web environment for the students next semester, and have elected to run it as a CGI application (tie into existing suid security arcitecture). I'm told there won't be any functionality loss except, just a bit of performance (?). If we didn't care about persistance of the PHP engine, it would be a trivial task to create a PHP method object - just a small python stub using the CGI libraries to call PHP. Or even more trivial - I could hack my existing Logger product to create a dtml-php tag, so you would be able to preprocess your PHP code with DTML tags or embed PHP output in DTML for standard_html_header etc. (Is that my foot bleeding?). The standard response to a dtml-python tag is that it would make it too PHP like, so dtml-php seems very appropriate :-) And then the next step is to import IMP and other PHP apps into Zope land... -- Stuart Bishop Work: [EMAIL PROTECTED] Senior Systems Alchemist Play: [EMAIL PROTECTED] Computer Science, RMIT University ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] ZPHP [was Re: [Zope] CHAT]
You do lose some functionality using PHP as CGI rather than module: Persistent DB Connections, :( - Original Message - From: "Stuart 'Zen' Bishop" [EMAIL PROTECTED] To: "Gonçalo Gomes" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: 03 June 2000 00:24 Subject: [Zope-dev] ZPHP [was Re: [Zope] CHAT] On Thu, 1 Jun 2000, [iso-8859-1] Gonçalo Gomes wrote: Silver_Surfer: how do you see the future of Zope fighting against PHP space on the web? Jim: I don't know much (enough) about PHP, but from what I vaguely know, PHP methods seem like a logical step. Hmm... I'm having to setup a PHP web environment for the students next semester, and have elected to run it as a CGI application (tie into existing suid security arcitecture). I'm told there won't be any functionality loss except, just a bit of performance (?). If we didn't care about persistance of the PHP engine, it would be a trivial task to create a PHP method object - just a small python stub using the CGI libraries to call PHP. Or even more trivial - I could hack my existing Logger product to create a dtml-php tag, so you would be able to preprocess your PHP code with DTML tags or embed PHP output in DTML for standard_html_header etc. (Is that my foot bleeding?). The standard response to a dtml-python tag is that it would make it too PHP like, so dtml-php seems very appropriate :-) And then the next step is to import IMP and other PHP apps into Zope land... -- Stuart Bishop Work: [EMAIL PROTECTED] Senior Systems Alchemist Play: [EMAIL PROTECTED] Computer Science, RMIT University ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] Basic LoginManager HowTo
Has anyone out there actually sarted _using_ LoginManager with ZODB storage? IOW, one that is not dependant on LDAP/SQL/etc., but that is functioning in place of a non-PTK acl_users folder? I am starting to play with it (so many toys, so little time...), and would like to see (if it exists) a basic walkthrough of how to go from: Folder with no userfolder, LM installed -to- Folder with LM-acl_users folder, and ZODB member storage. So, what about it? Anyone got one, or at least could write down the steps/requirements? Much Appreciated, Bill ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Basic LoginManager HowTo
On Fri, Jun 02, 2000 at 07:29:18PM -0600, Bill Anderson wrote: Has anyone out there actually sarted _using_ LoginManager with ZODB storage? IOW, one that is not dependant on LDAP/SQL/etc., but that is functioning in place of a non-PTK acl_users folder? I tried. It's quite easy, except that you have to store the user's password in a property, and access control is somewhat broken WRT passwords, so anyone can read anyone's passwords if they can write DTML. Now I don't plan to just let anyone write DTML, but I don't want to leave this hole open because I know I will forget it sooner or later and open up an exploit. []s, |alo + -- Hack and Roll ( http://www.hackandroll.org ) News for, uh, whatever it is that we are. http://zope.gf.com.br/lalo mailto:[EMAIL PROTECTED] pgp key: http://zope.gf.com.br/lalo/pessoal/pgp Brazil of Darkness (RPG)--- http://zope.gf.com.br/BroDar ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope] MS SQL server and Zope
linux for Intel, redhat 6.2. -- Paul Beard / 206 728 4282 x138 Fizzylab / 2025 First Ave, Suite 1150 Seattle WA 98121 On Fri, 2 Jun 2000, Andrew Kenneth Milton wrote: +[ paul beard ]- | anyone have any insight on accessing a SQL server store thru Zope? I have | an app that's backed by SQL server and rather than buy r/w licenses for | it, I'd be happy to use Zope to access it readonly. What platform are you running Zope under? -- Totally Holistic Enterprises Internet| P:+61 7 3870 0066 | Andrew Milton The Internet (Aust) Pty Ltd | F:+61 7 3870 4477 | ACN: 082 081 472 | M:+61 416 022 411 | Carpe Daemon PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Simple function nightmare
Hi Zopistas, Hope you can help me .. (I'm hating DTML right now ) Take this dtml document with name: dontWork_dtml dtml-return "a+'-'+b+'-'+c" I want de document act like a function that concatenates a,b and c but if at other document i do something like let a="'1'" b="'2'" c="'3" d=dontWork_dtml dtml-call "REQUEST.set('a','2')" dtml-var d /dtml-let guess what: it renders 2-2-3 That is d is not a string but an expression. The question is How the Fck. can i implement the concatenation of 3 arguments ? Gracias por vuestra paciencia. -- __ Felipe Alvarez Harnecker. QlSoftware. Tel. 09.874.60.17 e-mail: [EMAIL PROTECTED] Potenciado por Ql/Linux http://www.qlsoft.cl/ __ ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] Zope on Windows NT
One method that works is to change the port in z2.py. cb = Original Message From Luis Cortes [EMAIL PROTECTED] = Hello, Does anybody know how to change the Port that Zope uses on Windows NT when it is installed as a Service??? I know how to change it when it is installed as standalone - but that doesn't work when I run it as a service. Thanks for your help, Luis. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] images in access database
I would like to be able to have gifs/jpgs stored in an MS access database and then pull the out using zope and display them in rendered documents. I am completely new to access. I have successfully installed the ODBCDA into zope, and are able to connect to an access database and pull ordinary text data out of tables. I have created a table in access with a column of type 'OLE object' and put a gif image in as data. This is the only way I know how to get an image into the table. The problem I think with this is that it is a link to the gif on the HDD, and doesn't actually have the data in the table? Anyway, when I pull the data out of the table from zope, access puts a header and footer around the gif binary data, and hence a simple dtml-var blah wont work to display the image. Has anyone else every pulled images from an access database. Will I have to write a method to strip the header and footer from the returned data before displaying the gif? Um, in general you'd have to have very strong reasons to put large objects like images in a database (especially in Access). This has a negative effect on the performance of your application as it adds to the overhead (putting another layer between your webserver and your image retrieval). I don't see what the gains would be. If you consider putting image descriptions in your database, do so and no more. Put the images on a filesystem somewhere and make your database records point to them. This is much easier and much faster. If the number of images is large you may have to do some thinking about the directory structure. hth Rik ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: Fwd: [Zope] postgres DA
Scavenging the mail folder uncovered Paolo Comitini's letter: what's the current status of ZPygreSQLDA and ZPoPyDA? if i were to choose, which should i use? and the reasons for using it? i understand that ZPoPyDA is level 2 thread safety, and not quite sure what ZPygreSQLDA thread safety is. I can only say that we started writing PoPy and ZPoPyDA because pygresql (and the adapter based on it) are *not* thread safe. we were experimenting deadlocks in zope when you mix db access from sql methods and external methods in the same page. on the other hand PoPy is pretty new and, before using it in production, needs more testing. i think it will stabilize pretty soon, because we will use it to build the web sites for our customers really soon now and that will apport a lot of testing/debugging. make your choice and be happy, federico -- Federico Di Gregorio MIXAD LIVE System Programmer [EMAIL PROTECTED] Debian GNU/Linux Developer Italian Press Contact[EMAIL PROTECTED] The reverse side also has a reverse side. -- Japanese proverb ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Thread-safe PostgreSQL adaptor?
On Fri, 2 Jun 2000, Daryl Tester wrote: No - just using the GPL'd adapter do not require you to distribute Zope under GPL. The adapter is just a "plugin"; there was an explanation from RMS that GPL'd plugins does not require to GPL the main program and vice versa; there probably will be newer version of GPL (don't know how soon) which will explain the plugin thingie in details. In short - only linking with GPL code "infects" your code with GPL. This is unclear, and sounds like hair splitting to me. What's the difference between linking and using a plugin? What happens when the plugin is a dynamically linked shared library? I haven't seen PoPy, but if it's a C library interface under Python (like Pygresql) the chances are good. These are perfect questions, and I knew RMS spent time thinking on it. I am not authorized to answer; when (and if) new version of GPL will be published I hope things will be clearer. Oleg.(All opinions are mine and not of my employer) Oleg Broytmann Foundation for Effective Policies [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] Using sql to search in zope
Where's the 'LIKE' ? Such as SELECT * FROM table1 WHERE table1_id LIKE %field1_value% -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of [EMAIL PROTECTED] Sent: 02 June 2000 09:10 To: [EMAIL PROTECTED] Subject: [Zope] Using sql to search in zope Hi All, I tried to build a search feature using sql in zope, this is what I normal do in sql to do a range search : select * from table1 where table1_id = %field1_value% But when I try it with zope, it will become select * from table1 where table1_id = %'value'% Which return an error : [ODBC Microsoft Access 97 Driver] Syntax error in query expression 'table1_id alike %'field1_value'%'.") Any idea or work around ?? Please help Cheers Wai ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: Fwd: [Zope] postgres DA
I can only say that we started writing PoPy and ZPoPyDA because pygresql (and the adapter based on it) are *not* thread safe. we were experimenting deadlocks in zope when you mix db access from sql methods and external methods in the same page. quoting DAroadmap at http://www.zope.org/Members/petrilli/DARoadmap """ Level 2 Level 2 database adapters must be safe to use in a multi-threaded Zope instance. This can take multiple behaviour paterns: Internal locking/mutexes for single DA access Global locking through the transaction manager if appropriate While a sub-optimal solution, it should be usable on any application that has minimal, or infrequent, database access. This means that all access paterns will be serialized. In addition, all DAs at this level must release the Python global interpreter lock. """ i assume ZPoPyDA conform to the above statement. will you make ZPoPyDa into level 3 anytime soon? on the other hand PoPy is pretty new and, before using it in production, needs more testing. i think it will stabilize pretty soon, because we will use it to build the web sites for our customers really soon now and that will apport a lot of testing/debugging. i will try ZPoPyDA on my personal site, and will inform you of any misbehaviour. BTW, what symptoms should i look out for if ZPoPyDa misbehave? Zope locking/not responding? make your choice and be happy, made mine already, thanks, and """ I'll be back! """ federico -- Federico Di Gregorio MIXAD LIVE System Programmer [EMAIL PROTECTED] Debian GNU/Linux Developer Italian Press Contact[EMAIL PROTECTED] The reverse side also has a reverse side. -- Japanese proverb -- -- http://www.kedai.com.my/kk Am I Evil? ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Using sql to search in zope
In article [EMAIL PROTECTED], [EMAIL PROTECTED] writes Hi All, I tried to build a search feature using sql in zope, this is what I normal do in sql to do a range search : select * from table1 where table1_id = %field1_value% where table1_id = dtml-sqlvar "'%'+ field1_value + '%'" type=string -- Regards, Graham Chiu gchiuatcompkarori.co.nz http://www.compkarori.co.nz/index.php Powered by Interbase and Zope ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Aquisition questions
Some time back I had an exchange with Mike Pelletier regarding SQL methods and aquisition. We talked about a URL structure : mysite.com/Users/Fred/Flavor/Cherry/test Users is a SQL method which takes a single parameter (value = Fred here). Flavor is another method which takes a single parameters (value = Cherry here). test is a dhtml method which returns values pulled from the SQL methods. I set this test up and it works fine. One of the effects of aquisition is that the URLs : mysite.com/Users/Fred/Flavor/Cherry/test mysite.com/Flavor/Cherry/Users/Fred/test are functionally identical in my simple DHTML test method but they might not be, for instance if both SQLMethods provided a result column "RowID" then dtml-var RowID would contain the ID of whichever SQL method was run last. Suddenly I'm getting a Users RowID when I expected a Flavor RowID. Potentially disasterous. Is there a way to enforce URL's be traversed in a set way? Thus making : mysite.com/Users/Fred/Flavor/Cherry/test valid while mysite.com/Flavor/Cherry/Users/Fred/test becomes invalid. Also, assuming that both SQLMethods provide a "RowID", how do I specify explicitly which one I want, in OO terms : Users.RowID or Flavor.RowID All help appreciated. - Ian Sparks. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Two in one?
Fun for all the family. I'm trying to produce a page that draws from two databases following one friendly search. The first chunk of data is from the search itself and returns, among others, an ID which I want to pass into the second chunk to search it. Kinda like this: Search page: blah Report page: loop thru hits on "blah" in db1, any of 6 fields (name, desc) show id show name show desc... loop thru hits in id db2 show users show friendlynames /loop /loop The problem I have is passing parameters to the db2 search. Even if I set the SQL method to use a parameter with the same name as the var returned by the first search, I get a Zope error telling me I'm not passing enouh parameters to it. Testing the methods independently they work fine. So, (as usual) what's the no-brain bozo error I'm making? Is is possible to programmatically pass variables around like this (surely it is,this would be trivial in ASP/JSP)? -- Andy Gates, Learning and Research Technology [EMAIL PROTECTED] - ICQ#74362415 ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Two in one?
+[ Andy Gates ]- | Fun for all the family. I'm trying to produce a page that draws from | two databases following one friendly search. The first chunk of data | is from the search itself and returns, among others, an ID which I want | to pass into the second chunk to search it. Kinda like this: | | Search page: blah | | Report page: loop thru hits on "blah" in db1, any of 6 fields (name, | desc) | show id | show name | show desc... | loop thru hits in id db2 | show users | show friendlynames | /loop | /loop dtml-in "secondQuery(id=id, name=name)" -- Totally Holistic Enterprises Internet| P:+61 7 3870 0066 | Andrew Milton The Internet (Aust) Pty Ltd | F:+61 7 3870 4477 | ACN: 082 081 472 | M:+61 416 022 411 | Carpe Daemon PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Two in one?
dtml-in "secondQuery(id=id, name=name)" Ahh... quotes. Parentheses. Works a treat. Ta. AndyG ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Virtual host admin under Apache+ZServer+SiteAccess
On Fri, Jun 02, 2000 at 09:02:11AM +0100, Phil Harris wrote: Try going to http://localhost:8080/__no_before_traverse__/manage Oops, I should have re-read SiteAccess docs... Thanks. After a few tests it seems to work normally except for one feature: When managing through http://localhost:8080/manage I can see the full list of transactions with "Undo", but when managing through http://localhost:8080/__no_before_traverse__/manage, "Undo" only shows me the list of transactions made while operating that way (with __no_before_traverse__). Usually not a problem... unless there are nasty side effects I am unaware of. J Esteves (still a newbie in most Zopish matters...) -- jmce: +351 919838775 ~ http://artenumerica.com/ ~ http://artenumerica.org/ ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] DTML newbie question on summation
try dtml-let total="_.int(SUNDAY) + _.int( ... _.int() method tells zope you want (integer) numbers. hth peter. On Fri, 2 Jun 2000, Coleman, Bryan wrote: :I can't seem to add variables using let. I just get a concatination of the :integers. I am using ... : :dtml-let total="SUNDAY + MONDAY + TUESDAY + WEDNESDAY + THURSDAY + FRIDAY + :SATURDAY" : :The days represent hours but are stored as integers in the database. : :- Bryan Patrick Coleman : Questcon Technologies : (336)273-2428 : [EMAIL PROTECTED] : : :___ :Zope maillist - [EMAIL PROTECTED] :http://lists.zope.org/mailman/listinfo/zope :** No cross posts or HTML encoding! ** :(Related lists - : http://lists.zope.org/mailman/listinfo/zope-announce : http://lists.zope.org/mailman/listinfo/zope-dev ) : -- _ peter sabaini, mailto: [EMAIL PROTECTED] - ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Python and Zope Question
If object1 has a unique name in your acquisition path, you can get to it simply through self.object1.object2.object3 Otherwise, you can use PARENTS. I *think* you can get to the PARENTS list via the REQUEST variable (so make sure you have REQUEST as a parameter in your method). REQUEST['PARENTS'][-1].object1.object2.object3 Kevin - Original Message - From: "Scott Burton" [EMAIL PROTECTED] To: "Kevin Dangoor" [EMAIL PROTECTED] Sent: Friday, June 02, 2000 12:21 AM Subject: Re: [Zope] Python and Zope Question Thanks for the quick responses Kevin and R. David Murray! That did the trick. Now here is another quick one. How would I access an object from the root-level? As in root.object1.object2.object3? ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Using FTP to connect to Zope server from (g)VIM
Hi all, My intellect was piqued recently by a discussion on the list about editors for Zope etc. I remember some people saynig that VIM was good, to which my response was, 'Yeah but there's no FTP built in'. Someone then responded with a few scripts to do it. Well I thought they were a bit cumbersome, so I wrote my own. ftpopen.py and ftpsave.py. If you have a VIM executable with Python support built in then these run from within VIM and allow you to open/save file from/to Zope seamlessly. (I have them on a menu in GVIM for instance) I'll put the files up on my Zope Members bit (http://www.zope.org/Members/philh) along with a few instructions. If anybody can think of any enhancements then please let me know and I'll see if I can work them in. I hope these will be useful to someone. See ya Phil [EMAIL PROTECTED] ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Aquisition questions
Shane, your idea about extending the URL and putting in an extra folder in the path will work but its a bit of a fix rather than a solution. Right now this isn't a RealLife(TM) problem for me, just part of my trying to get to grips with Zope and its potential pitfalls. Isn't there a way to cause the SQLMethods to provide "UserRowID" and "FlavorRowID" instead? That would be the most logical solution. Again, this is a good idea but it doesn't solve the fundamental problem which is that URL's are meant to be traversed in a particular way, if the "clever" user traverses them in a different way than intended you *could* end up in a mess. - Ian. - Original Message - From: "Shane Hathaway" [EMAIL PROTECTED] To: "Ian Sparks" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, June 02, 2000 3:40 PM Subject: Re: [Zope] Aquisition questions Ian Sparks wrote: Is there a way to enforce URL's be traversed in a set way? Thus making : mysite.com/Users/Fred/Flavor/Cherry/test valid while mysite.com/Flavor/Cherry/Users/Fred/test becomes invalid. You could set up an object called "Users" that would be found only if the user goes through "Flavor" first. Your example will have to be modified to get it to work. should work: mysite.com/Users/Fred/FlavorFolder/Flavor/Cherry/test should not work: mysite.com/FlavorFolder/Flavor/Cherry/Users/Fred/test FlavorFolder is a folder at the same level as Users. It contains an SQL query called Flavor and an object called Users. The Users object in this folder raises an exception, telling the clever user to back off. Just a possibility. Also, assuming that both SQLMethods provide a "RowID", how do I specify explicitly which one I want, in OO terms : Users.RowID or Flavor.RowID Isn't there a way to cause the SQLMethods to provide "UserRowID" and "FlavorRowID" instead? That would be the most logical solution. Shane ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Using sql to search in zope
dtml-sqlvar " '%' + _.string.strip(field1_value) + '%'" type=string - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, June 02, 2000 3:10 AM Subject: [Zope] Using sql to search in zope Hi All, I tried to build a search feature using sql in zope, this is what I normal do in sql to do a range search : select * from table1 where table1_id = %field1_value% But when I try it with zope, it will become select * from table1 where table1_id = %'value'% Which return an error : [ODBC Microsoft Access 97 Driver] Syntax error in query expression 'table1_id alike %'field1_value'%'.") Any idea or work around ?? Please help Cheers Wai ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Two issues for Z2.2: XHTML malicious tags
Zopistas, I have two issues that I think should be rectified before the 2.2 release. I am not very up to date on the goings-on in the list, but a quick search gave me little information on the following: 1. The HTML that Zope outputs is not very standards-compliant (XHTML 1.0) at the moment. Tags like img / are rendered as IMG etc. I would like to contribute to the cleanup work, but I am a relative newcomer to CVS. How can I participate? Do I just check out the relevant files, modify them and then get somebody that is authorized to review the files and put them back in the CVS? I am not a guru when it comes to Python, but I know enough to not mess up things along the way :) And just to clarify: I'm not talking about a rewrite of the Zope management console here, that will work fine until the Mozilla version comes along - I merely want to make sure that tags are lowercase and terminated, so pages produced by Zope stand a chance when passing through the W3C validator. I always write compliant code when I have the chance, but when using Zope this is impossible, as the tags that are inserted invalidate the page anyway. So, who do I bribe to have a shot at the CVS? :) 2. Malicious HTML tags - is anything being done here? Filtering of these is one of the features Zope 2.2 really shouldn't go without. Most Zope sites have user interaction in some way, and the concept of a post containing a stray /html, or even worse - script-tags, destroying a page is totally unacceptable IMHO. I'd just like to query what the status is on this, as I think it is one of the most overlooked areas that are lacking in Zope. I know Evan Simpson (malicious tags) and Christopher Petrilli (HTML quality of zope) have been talking about this earlier, any comments? I'm really looking forward to Zope 2.2, the alpha release looks good so far. You guys rock :) Regards, Alexander Limi. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Two issues for Z2.2: XHTML malicious tags
On Fri, Jun 02, 2000 at 06:50:46PM +0200, Alexander Limi wrote: 1. The HTML that Zope outputs is not very standards-compliant (XHTML 1.0) at the moment. Tags like img / are rendered as IMG etc. I would like to Perhaps support for XHTML-compliance in Zope should be optional. I wrote a few pages in XHTML some time ago, had no problems with Netscape 4.xx, but was later informed of a few problems by some users. Some still abundant browser versions were particularly not grokking (and thus showing the user) the processing instruction ?xml version="1.0" encoding="ISO-8859-1"? For generally accessible pages, I'm therefore still using HTML 4.0. This is mentioned on http://www.w3.org/TR/xhtml1/: Be aware that processing instructions are rendered on some user agents. However, also note that when the XML declaration is not included in a document, the document can only use the default character encodings UTF-8 or UTF-16. Anyway, tags like img / are considered valid HTML 4.0 by the W3C validator, so they would not cause validation "noise" for those still using HTML 4.0. -- jmce: +351 919838775 ~ http://artenumerica.com/ ~ http://artenumerica.org/ ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Strange Zope behavior/Instability (Zope going down)
Rob Sporleder writes: The shell was on my local machine... That's the same as tryinga browser for network purposes. Can you try bringing up a shell on the server next time and try a wget http://localhost:8080, and see if it returns anything. If so, the Zope is fine and it's that other stuff, like network cards etc... BigBrother is the monitoring software we use. The client is installed on the same server as Zope. When viewing the log files there were no connections made by BigBrother (checking for http connections). However, there were many hits from outside IP's. Thanks, Rob -Original Message- From: Jason Spisak [mailto:[EMAIL PROTECTED]] Sent: Friday, June 02, 2000 10:17 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [Zope] Strange Zope behavior/Instability (Zope going down) Rob Sporleder writes: It was the command line within the shell. Was it the shell on the 'server' serving zope or a shell on your local admin machine? Actually, I've found something that's interesting... The system clock is an hour slow. They get behind easily if your not using an time server somewhere. The logs are written 6 hours ahead. I have no idea on that. I greped the log file for BigBrother and found an hour gap with no BigBrother Is BigBrother the Zope server? entries from 06:37:53 and 07:40:23, roughly the time that the site seemed to go down. However, during this time there were hundreds of successful hits to the site. What told you there were successful hits? The Zope log? If understanding you, you are seeing confilcting things in 2 logs. One log says there was successfull hit, and the other shows nothing for that time. Is this close? Rob Sporleder writes: All of the python z2.py processes are still running. I haven't checked if I can get to it using http://localhost. The server is offsite. However, I did try an http get from the command line and it did not respond. Was it the command line on the server? from the server shell: $wget http://localhost:8080 I'm trying to narrow it down to the real culprit. We can't be sure it's Zope and not the DNS/Machine/Routing/Firewall/ or anything else. -Original Message- From: Jason Spisak [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 31, 2000 1:13 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [Zope] Strange Zope behavior/Instability (Zope going down) Rob Sporleder: I received a server not responding error. We lost connectivity twice on Friday as well. I setup a script to restart the server every X minutes so we wouldn't have to worry about it over the weekend. I removed the cronjob on Tuesday morning and it was fine until early Wednesday morning when it went down three times in 30 minutes. Thanks, Rob Wow. Ugly. Are the Zope processes still up after you've lost connectivity? If so, can you get a browser on the machine running zope to access it? http://localhost:8080, or whatever port your running on. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Jason Spisak Sent: Wednesday, May 31, 2000 12:10 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [Zope] Strange Zope behavior/Instability Rob Sporleder: For reasons unknown we lost http connectivity to our Zope server three times last night. When you say lost connectivity, do you mean the browsers gave you back a 'Server Not Resonding' message, or was is as if Zope was just spinning it's wheels? If it was the latter, how long did you wait to see if you did get a response? 1 minute, 10, 30? I've checked the http logs and, as I suspected, didn't find anything unusual around the time we lost connectivity. The Python processes are still running and everything looks normal except for the connectivity problem. Does anybody have any idea what might be causing this? I haven't found anything. This happened to me, but it caused a single process to chew CPU. Since you noticed no such chewing, I'll bet it's not the DTML decapitation bug. Here are some specifics about our setup... version of python: 1.5.2 operating system: Linux 2.2.12-20smp (Redhat 6.1) services running on machine: MySQL 2 instances of Zope Python machine specifics: CPU: 0.04 MEM: 31M of 512M Swap: 528688K free Disk Space: GB's available on all partitions Hardware: 598 Mhz Pentium III, 4 17.4 GB SCSI hard disks version of Zope: 2.1.4 Jason Spisak CIO HireTechs.com 6151 West Century Boulevard Suite 900 Los Angeles, CA 90045 P. 310.665.3444 F. 310.665.3544 Under US Code
[Zope] secure area?
hi, i need some help with permissions again. is there a way to make a subfolder secure from people with manager roles in the parent folder? i've tried different settings but nothing locks them out. thanks. -mike- ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] jcNTUserFolder and trusted domains
I am running Zope on NT without IIS. I installed jcNTUserFolder, but I cannot get users from a trusted domain to log in. I added these users in the *add users from other domains screen*. Any help appreciated. Erik Myllymaki [EMAIL PROTECTED] ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Linuxtag update
I just got this mail from Martin Schulze, our contact at Linuxtag. Moin, die Raumfrage ist geklaert, es stehen Raeumlichkeiten zur Verfuegung, genaueres schreibe ich euch morgen oder uebermorgen. Ihr koennt also mit den Planungen fuer die ZopeCon beginnen. Kurz noch: 1 Raum mit Stuehlen und Tischen: 28 Plaetze, 1 Raum mit nur Stuehlen: 50 Plaetze. Moeglicherweise gibt's noch einen groesseren Raum, dazu muss ich aber erst wieder wach sein. Translation: Mornin, The question about the rooms is answered, and there will be rooms for your usage. More details will come tomorrow and on Sunday. So you can start with your preparations for the ZopeCon [Zope Conference]. Pretty fast: 1 room with chairs and tables: 28 seats; 1 room only with chairs: 50 seats. It is possible that there will be another bigger room, but to confirm that I have to be awake again [message was sent 1:00 am his time]. He also just replied that we will have Internet access in the rooms. Regards, Stephan -- Stephan Richter PlanDepot.com - Senior Application Developer and Technical Project Lead Cell: (901) 573-3308 ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Form POST Question (and a QUERY_STRING Q.)
On Thu, 1 Jun 2000, Andrew H. Chatham wrote: You can of course change it all into GET data and just join them together using: '%s=%s' % (url_quote_plus(name), url_quote_plus(data)) and joinging with , in which case you actually can do a redirect, but presumably someone made it POST for a reason, so I'm not going to mess with it. It's an inelegant solution and might not work for everything, but it's all I have for now! And another item from 'Sticky Tape String Crackpot Solutions R Us': Write an external method that calls Pythons urllib or httplib methods to suck in the desired URL and return it. You may be able to use this as a replacement to redirect. -- Stuart Bishop Work: [EMAIL PROTECTED] Senior Systems Alchemist Play: [EMAIL PROTECTED] Computer Science, RMIT University ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Using sql to search in zope
On Fri, 2 Jun 2000 [EMAIL PROTECTED] wrote: I tried to build a search feature using sql in zope, this is what I normal do in sql to do a range search : select * from table1 where table1_id = %field1_value% But when I try it with zope, it will become select * from table1 where table1_id = %'value'% The quoting is there to protect you (if value contains the SQL delimiter ';' or whatever it is in Access, bad things can happen and might be a big hairy security hole). Try: dtml-let field1_value="'%' + field1_value + '%'" select * from table1 where dtml-sqltest field1_value column=table1_id type=nb /dtml-let You might need an 'op=like' attribute to the sqltest tag (I don't know Access). -- Stuart Bishop Work: [EMAIL PROTECTED] Senior Systems Alchemist Play: [EMAIL PROTECTED] Computer Science, RMIT University ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] SV: [Zope] Q: Link status/checking
Hi there.. Sure! I just did a quick read through of the url you posted and it looks to me that you've started with what I want. I am very interested in getting this to work within the Zope framework as well.. with Sql support etc. as I am doing a project that would require "robotic" features! ;) Don't we just hate manual labour. ;) .. I'll take a look at what you've done .. and get back to you later this weekend. I'm in the process of moving and I have a @34@? of packing to do. Ttyl.. .. and have a real nice day! Kindest, Jorgen - Opprinnelig melding - Fra: Oleg Broytmann [EMAIL PROTECTED] Til: JÛrgen Skogstad [EMAIL PROTECTED] Kopi: [EMAIL PROTECTED] Sendt: 1. juni 2000 12:39 Emne: Re: [Zope] Q: Link status/checking Hi! I am working on such project for a few years. From time to time I make an announcement in comp.lang.python, subject "Bookmarks database and Internet robot". This is a copy of my latest announce: http://www.deja.com/=dnc/getdoc.xp?AN=626677041 It my hobby project, in pure Python. Wanna cooperate on this? On Thu, 1 Jun 2000, [Windows-1252] Jørgen Skogstad wrote: I was wondering about a few points I havn't seen any references to. Are there any implementations in Zope that can verify the validity of an url? That is; 1) A link database is generated .. and should be maintained. 2) A process should be run at least once a week to check the validity of links in the database. 3) If the link is not "valid" .. it sets a tag in the db which says it's untrusted .. which again could show that in the link listed on the web through Zope. 4) .. and if it's untrusted for N runs .. it is removed. .. have anyone looked into that? .. and anyone made any conclusions as to how one can solve that? Oleg.(All opinions are mine and not of my employer) Oleg Broytmann Foundation for Effective Policies [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Form POST Question (and a QUERY_STRING Q.)
Stuart 'Zen' Bishop wrote: And another item from 'Sticky Tape String Crackpot Solutions R Us': Write an external method that calls Pythons urllib or httplib methods to suck in the desired URL and return it. You may be able to use this as a replacement to redirect. A while ago, I wrote something like (well, actually, it was exactly like): from urllib import urlencode def addRequestURL(REQUEST, url, dict = {}): "Return an URL with REQUEST.form encoded as a query string." newREQ = {} # Copy REQUEST.form for key, val in REQUEST.form.items(): newREQ[key] = val # Overwrite with supplied values. for key, val in dict.items(): newREQ[key] = val return url + '?' + urlencode(newREQ) which allows you to add new/modify existing items in the query string. Would that help, Mr Person Who Originally Started This Thread? "Antipodean Hacks R Us" Regards, Daryl Tester ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )