Re: [Zope] Generating products that perform a smart clone of a master site?
On Tue, Jun 27, 2000 at 11:22:20PM +0100, Hamish Lawson wrote: > Thanks for your reply. I hadn't thought of using ZWikiWeb, but given > that I do need to make instances of a master site, do you think that > this could be done using ZWikiWeb? Instead of inheritance for the > folders, the mechanism I'm investigating now is prototypes (a la > JavaScript and Self objects). Chris ment for ZwikiWeb to be an example of how a copy could be made. The ZwikiWeb implements such a construct. -- Martijn Pieters | Software Engineermailto:[EMAIL PROTECTED] | Digital Creations http://www.digicool.com/ | Creators of Zope http://www.zope.org/ | ZopeStudio: http://www.zope.org/Products/ZopeStudio - ___ 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] ZWiki/Structured Text formatting surprise
On Tue, Jun 27, 2000 at 10:42:01PM +0200, Rik Hoekstra wrote: > >Just noticed that (_.None,_, gets rendered as (.None,, in a structrued > >text wiki. Not useful :/ > > Hm, in a structuredtextdtml Wiki (such as the Zope edu Wiki) this works. See > the SandBox there http://www.zope.org/Wikis/zope-edu/SandBox. So I can't > reproduce it now. You are only testing _.None, not _.None,_, which is the problem, see below. I changed your test to include the other underscore to illustrate the point. > >I've got around this by doing ('_'.None,_, but that's not really the > >right idea. > > > >Does anyone know of the proper way of escaping this? The ZWiki tries to render anything between '_' (underscore) charaters as underlined. So _.None,_ indeed gets rendered as .None,. Nowhere is the ZWiki trying to interpret this as a WikiName. Indeed, the only thing I can thus think of (apart from quoting the underscores), is quoting the whole sentence, '_.None,_'. This may be desirable in this case, as it supposedly is a code example anyway. Doubly underscoring the line (and live with the underlining), doesn't work, BTW. I updated the above SandBox to illustrate. -- Martijn Pieters | Software Engineermailto:[EMAIL PROTECTED] | Digital Creations http://www.digicool.com/ | Creators of Zope http://www.zope.org/ | ZopeStudio: http://www.zope.org/Products/ZopeStudio - ___ 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] Adding users via external method
I am specifying roles, however, it turns out that some of the roles don't exist within the Zope framework yet, so I need to add the roles before I attempt to add the user. On Tue, Jun 27, 2000 at 09:36:55PM -0400, ethan mindlace fremen wrote: > Timothy Grant wrote: > > > I have come upon some situations where I also need to add Roles. I can find > > nothing archived nor on the Zope site about programmatically adding Roles. > > Can anyone assist me? > > hmm. I don't know how you're adding users without indicating their > roles. > > I do this: > > > > where REQUEST includes these variables: > > name > password > confirm > roles > > And roles is a list. -- Stand Fast, tjg. Timothy Grant [EMAIL PROTECTED] Chief Technology Officer www.exceptionalminds.com Red Hat Certified Engineer (503) 246-3630 Avalon Technology Group, Inc. fax (503) 246-3124 Linux...Because crashing isn't normal< ___ 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] ZCatalog counting?
OK.. how about one more little special case There are 0 items of type Folder. untested of course. ;-) -steve RDM wrote: -- On Tue, 27 Jun 2000, Rik Hoekstra wrote: > To quote a mail by RD Murray from a gew days ago: > > How do I find the size of the results returned by the catalog? > > <-- the results' length --> > Hmm. That wasn't my code. I'd suggest instead (untested, but I've used similar code in my own products): There are items of type Folder. I'm not sure what the relative advantages of these two code snippets would be, but the latter does stick purely to dtml. --RDM ___ 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] tree problem, addendum
Sorry, but I have more elements: in the edit tab of the management view of any one of my Articles the Id does not come out at all. In the HTML code it is substituted again by the mysterious thing. if I try to rename (that's to say, change the Id) of an Article, Zope chokes with a traceback that goes like this: Traceback (innermost last): File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 214, in publish_module File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 179, in publish File /usr/local/zope/lib/python/Zope/__init__.py, line 202, in zpublisher_exception_hook (Object: ElementWithAttributes) File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 165, in publish File /usr/local/zope/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: manage_renameObject) File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 102, in call_object (Object: manage_renameObject) File /usr/local/zope/lib/python/OFS/CopySupport.py, line 250, in manage_renameObject (Object: ElementWithAttributes) File /usr/local/zope/lib/python/OFS/ObjectManager.py, line 226, in _getOb (Object: ElementWithAttributes) AttributeError: (see above) It appears I have messed up the Id propery, but I do not know how. Thanks again, W. -- Vita brevis, ars longa, occasio celeris, experimentum periculosum, judicium difficile. Attention: Un train peut en cacher un autre -><- Eris aprueba este email ! -><- http://redescolar.ilce.edu.mx ___ 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] the tree tag is driving this newbie up the wall
Hello, I am trying to write a tree access to a hyerarchy of folders containing custom objects, subclassed from the DTML Docuement. The inheritance path should be DTMLDocument -> Article (my custom class) -> every single article in the folders. I would like only Articles and folders to appear in the tree, so this is what I do: The tree *looks* all right, and the folders expand and contract ok. But the URLs in the HREF are mangled. For example, I have a folder called abracadabra, that contains another folder named curiosidades, that contains an article whose title is "las origines del ajedrez", and that has in id of "ajedrez". The link comes out like this: las origines del ajedrez I hope this does not play hell with the guys that use HTML-aware mail clients, but what happens is that instead the URL instead of being bracadabra/curiosidades/ajedrez gets the last component of the path substituted with 'string' between angle brackets. If I modify the dtml-tree tag so that it takes in also DTML Documents, *those* URLs work. So what is happening ? Shouldn't the id propery be inherited from my Article class ? It *almost* works, and it is driving me insane. Thanks in advance, Walter -- Vita brevis, ars longa, occasio celeris, experimentum periculosum, judicium difficile. Attention: Un train peut en cacher un autre -><- Eris aprueba este email ! -><- http://redescolar.ilce.edu.mx ___ 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] 2.2.0b2 and ZSQL method and Zcatalog
On Tue, 27 Jun 2000, Brian Lloyd wrote: hi brian, > > > -ZSQL method. got len() of unsized object. > > beta 3 should resolve that. > all my sql methods now work! thanks > > > I've attached an updated Lexicon.py - can you try dropping this > into your lib/python/SearchIndex directory, restarting your Zope > installation and let me know if this fixes the problem? > both 2.2b2 and b3 wont spit traceback without your update. > Thanks! > no, no .. thank you! > > Brian Lloyd[EMAIL PROTECTED] > Software Engineer 540.371.6909 > Digital Creations http://www.digicool.com > > > > Content-Type: application/octet-stream; name="Lexicon.py" Content-Transfer-Encoding: quoted-printable Content-Description: -- -- 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] Adding users via external method
Timothy Grant wrote: > I have come upon some situations where I also need to add Roles. I can find > nothing archived nor on the Zope site about programmatically adding Roles. > Can anyone assist me? hmm. I don't know how you're adding users without indicating their roles. I do this: where REQUEST includes these variables: name password confirm roles And roles is a list. -- ethan mindlace fremen Zopatista Community Liason ___ 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] Access object inside a folder
Error Type: AttributeError Error Value: __getitem__ Traceback (innermost last): File C:\Program Files\Zope2\lib\python\ZPublisher\Publish.py, line 222, in publish_module File C:\Program Files\Zope2\lib\python\ZPublisher\Publish.py, line 187, in publish File C:\Program Files\Zope2\lib\python\Zope\__init__.py, line 221, in zpublisher_exception_hook (Object: ElementWithAttributes) File C:\Program Files\Zope2\lib\python\ZPublisher\Publish.py, line 171, in publish File C:\Program Files\Zope2\lib\python\ZPublisher\mapply.py, line 160, in mapply (Object: addNew) File C:\Program Files\Zope2\lib\python\ZPublisher\Publish.py, line 112, in call_object (Object: addNew) File C:\Program Files\Zope2\lib\python\OFS\DTMLMethod.py, line 168, in __call__ (Object: addNew) File C:\Program Files\Zope2\lib\python\DocumentTemplate\DT_String.py, line 500, in __call__ (Object: addNew) File C:\Program Files\Zope2\lib\python\DocumentTemplate\DT_In.py, line 691, in renderwob (Object: _.getitem('tabledef').objectItems(['DTML Document'])) File C:\Program Files\Zope2\lib\python\DocumentTemplate\DT_Var.py, line 278, in render (Object: _['sequence-item']) File C:\Program Files\Zope2\lib\python\DocumentTemplate\DT_Util.py, line 333, in eval (Object: _['sequence-item']) (Info: _) AttributeError: (see above) > You note, that your examples have an essential difference: > 1 uses "mapping", 2 does not. Error Type: AttributeError Error Value: __call__ Traceback (innermost last): File C:\Program Files\Zope2\lib\python\ZPublisher\Publish.py, line 222, in publish_module File C:\Program Files\Zope2\lib\python\ZPublisher\Publish.py, line 187, in publish File C:\Program Files\Zope2\lib\python\Zope\__init__.py, line 221, in zpublisher_exception_hook (Object: ElementWithAttributes) File C:\Program Files\Zope2\lib\python\ZPublisher\Publish.py, line 171, in publish File C:\Program Files\Zope2\lib\python\ZPublisher\mapply.py, line 160, in mapply (Object: addNew) File C:\Program Files\Zope2\lib\python\ZPublisher\Publish.py, line 112, in call_object (Object: addNew) File C:\Program Files\Zope2\lib\python\OFS\DTMLMethod.py, line 168, in __call__ (Object: addNew) File C:\Program Files\Zope2\lib\python\DocumentTemplate\DT_String.py, line 500, in __call__ (Object: addNew) File C:\Program Files\Zope2\lib\python\DocumentTemplate\DT_With.py, line 146, in render (Object: tabledef) File C:\Program Files\Zope2\lib\python\DocumentTemplate\DT_In.py, line 691, in renderwob (Object: objectItems(['DTML Document'])) File C:\Program Files\Zope2\lib\python\DocumentTemplate\DT_Util.py, line 339, in eval (Object: _['sequence-item']) (Info: _) File , line 0, in ? File C:\Program Files\Zope2\lib\python\DocumentTemplate\DT_Util.py, line 163, in careful_getitem File C:\Program Files\Zope2\lib\python\OFS\DTMLDocument.py, line 164, in __call__ (Object: f1) File C:\Program Files\Zope2\lib\python\DocumentTemplate\DT_String.py, line 500, in __call__ (Object: f1) File C:\Program Files\Zope2\lib\python\OFS\DTMLMethod.py, line 164, in __call__ (Object: addNew) File C:\Program Files\Zope2\lib\python\DocumentTemplate\DT_String.py, line 500, in __call__ (Object: addNew) File C:\Program Files\Zope2\lib\python\DocumentTemplate\DT_With.py, line 132, in render (Object: tabledef) AttributeError: (see above) If I add mapping: Error Type: AttributeError Error Value: __getitem__ Traceback (innermost last): File C:\Program Files\Zope2\lib\python\ZPublisher\Publish.py, line 222, in publish_module File C:\Program Files\Zope2\lib\python\ZPublisher\Publish.py, line 187, in publish File C:\Program Files\Zope2\lib\python\Zope\__init__.py, line 221, in zpublisher_exception_hook (Object: ElementWithAttributes) File C:\Program Files\Zope2\lib\python\ZPublisher\Publish.py, line 171, in publish File C:\Program Files\Zope2\lib\python\ZPublisher\mapply.py, line 160, in mapply (Object: addNew) File C:\Program Files\Zope2\lib\python\ZPublisher\Publish.py, line 112, in call_object (Object: addNew) File C:\Program Files\Zope2\lib\python\OFS\DTMLMethod.py, line 168, in __call__ (Object: addNew) File C:\Program Files\Zope2\lib\python\DocumentTemplate\DT_String.py, line 500, in __call__ (Object: addNew) File C:\Program Files\Zope2\lib\python\DocumentTemplate\DT_With.py, line 146, in render (Object: tabledef) File C:\Program Files\Zope2\lib\python\DocumentTemplate\DT_In.py, line 691, in renderwob (Object: objectItems(['DTML Document'])) File C:\Program Files\Zope2\lib\python\DocumentTemplate\DT_Util.py, line 333, in eval (Object: _['sequence-item']) (Info: _) AttributeError: (see above) I am using Zope 2.2b1 > > Moreover, I would like to do the following: > > > > I have some properties of an object abc which have same name with the object > > ids in the tabledef folder, I would a
Re: [Zope] Prototyped folders?
On Tue, 27 Jun 2000, [iso-8859-1] Hamish Lawson wrote: > If a folder doesn't itself contain a required object or method, I'd > like to have another folder looked in instead. The fall-back folder > won't necessarily (and often can't) be higher in the hierarchy, so > acquisition doesn't seem to be a solution. We do something very similar with our customers, and are in the process of figuring out the best way to do this kind of thing in Zope. I assume your aim is to create a 'baseline' site with a number of customized copies. If you change the baseline, the changes are reflected in its instances, unless the instance has overloaded the changed aspect. We have a site (actually 109), built on our proprietary middleware that do exactly this (check out http://www.pgdc.net). > Inheritance from a folderish class seems to be one solution, but I fear > this might lead to an explosion of classes. Indeed, I believe the same. > The answer I think I need is to have a protoype mechanism (similar to > that used in JavaScript and Self). A folder with the requirement to have > its missing methods looked for elsewhere would be created as an instance > of (say) PrototypedFolder with a pointer to the folder it wanted to use > as a prototype. Does such a mechanism exist for Zope? I achieved something similar to this by using a ZClass mix-in. My mix-in basically overloaded ObjectManager._checkId to allow me to overload aspects of a ZClass on an instance-by-instance basis. If the instance did not overload the method, Zope would fall back to the ZClass's method definition. Unfortunately, my attention has been focused elsewhere, lately, and I haven't had time to flesh this idea out. Getting this to work isn't the hard part. Getting it to work well, in a way that allows web developers to (easily) visualize what's going on is, unfortunately, much harder. I would be interested in pursuing and contributing to an effort to do the Hard Thinking this will require, done correctly. > Hamish Lawson > University of St Andrews, Scotland --Jeff --- Jeff K. Hoffman 704.849.0731 x108 Chief Technology Officer mailto:[EMAIL PROTECTED] Going Virtual, L.L.C. http://www.goingv.com/ ___ 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] PowerMac 7500 with LinuxPPC and Zope?
On Wed, 28 Jun 2000, Daniel Muller wrote: > Hi, > > I would like to turn an old Mac 7500 into a Zope server. LinuxPPC installs > on the Mac PowerPC using the Red Hat 6.1 linux distribution. Does anyone > have any experience with Zope with this type of set up? > Hmm.. sounds like fun. If pyton runs on that distribution (and it almost cerainly will) you should have no problems running ZOPE. I am currently running zope on a RH6.1 i386 install, so unless there are some major differnces (apart from the CPU, of course :) it should run like a dream. > Should I consider a different linux distribution than PPC? Well, aside from Yellow Dog, are there really any other Linux distros suited to the PPC? > > Thanks, Daniel > Have a better one, Curtis ___ 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] ZODB/FSSession TransactionError
Well, I got a second installation of Zope running OK in another directory after correcting some group/permission errors on my part. It seems I can now use FSSession with this second installation with no problems (fingers crossed "Oh please please please"). In my original Zope installation, I'm still getting the same EOFError when I try to view a document containing . I have been unable to reproduce the original TransactionError in the original Zope. I have mucked around with the 1st Zope since receiving this initial TransactionError - mostly removing var/Data.fs, etc.. and reinstalling FSSession etc... so that I could start "fresh". If I get the original Zope to behave I'll describe the procedure... Thanks, Brian ___ 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] How to retrieve content of a document?
On Tue, 27 Jun 2000, Luke Tymowski wrote: > Hello, > > Yet another question. I've gone through the DTML Reference Guide but > couldn't find the answer. > > How do I display the content of a DTML Document through a query? > > For example: > > > > > > > > Displays the document's name and title. But how do i display the content of > that document within that query? > > I apologise if it's obvious. > If it's obvious you wouldn't be asking the question ;). I think what you need is which will display the content of the document, iirc. Of course you probably _don't_ want to do this because it will likely have standard_html_header and standardh=_html_footer embedded in there. Cheers, Benno ___ 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] how to get email delivery errors
On Tue, 27 Jun 2000, Dan Rusch wrote: > Our site allows supervisors to email orders back to sales reps. We have > this working very well. The problem is if the supervisor types in an > non-existant email address we aren't getting Mail System Error - > Returned Mail messages like you would from other email apps such as > Netscape Messenger. Does anyone know how to accomplish this. > > Thanks, > DR AFAIK Returned Mail messages are generated by the SMTP server, not by the email client application. The reason you might not be recieving these _could_ be because the headers are being incorrectly genereated. You probably want to check what you set the "From:" header as, this would usually be the address that any errors are sent to (unless you state a "Sender:" header in which case that is used IIRC, you can always check RFC822 ;). I would suggest checking the smtp server logs to see what is actually happening here. Cheers, Benno ___ 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] ZODB/FSSession TransactionError
On Wed, 28 Jun 2000, Dieter Maurer wrote: > > That's strange, because Python usually indicates EOF by returning > an empty string and not by raising EOFError. cPickle returns EOFError which is confusing since the Python docs state that only input and raw_input return this exception. The problem is actually deeper than I previously thought. I am still not sure whether it is FSSession that is causing it or Zope's transaction manager. I will spend more time on it tomorrow. In any case if you delete the offending FSSession file on the filesystem and restart Zope it should be fine for now. Pavlos ___ 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] Adding users via external method
Following up on my own message... OK, so now I have a lovely external method that reads a datafile, returns a list of tuples that I can then use in a DTML Method to add my users. So far so good. I have come upon some situations where I also need to add Roles. I can find nothing archived nor on the Zope site about programmatically adding Roles. Can anyone assist me? Thanks. On Wed, Jun 21, 2000 at 12:45:27PM -0700, Timothy Grant wrote: > Hi all, > > I'm working on a project where it would be very nice to add all the original > users via a script. > > I'm working with an external method that should--I believe use manage_user() > to add the users. > > My confusion comes from where does the external method go in the hierarchy? > >From my reading it appears that to act on a folder, you need to be operating > within that folder (e.g., I can add folders and stuff to my current folder > all day). I haven't yet figured out how to operate on the acl-users folder > that is the child of my current folder. > > As always, thanks for any assistance that you can provide. -- Stand Fast, tjg. Timothy Grant [EMAIL PROTECTED] Chief Technology Officer www.exceptionalminds.com Red Hat Certified Engineer (503) 246-3630 Avalon Technology Group, Inc. fax (503) 246-3124 Linux...Because crashing isn't normal< ___ 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] Prototyped folders?
If a folder doesn't itself contain a required object or method, I'd like to have another folder looked in instead. The fall-back folder won't necessarily (and often can't) be higher in the hierarchy, so acquisition doesn't seem to be a solution. Inheritance from a folderish class seems to be one solution, but I fear this might lead to an explosion of classes. The answer I think I need is to have a protoype mechanism (similar to that used in JavaScript and Self). A folder with the requirement to have its missing methods looked for elsewhere would be created as an instance of (say) PrototypedFolder with a pointer to the folder it wanted to use as a prototype. Does such a mechanism exist for Zope? Hamish Lawson University of St Andrews, Scotland Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie ___ 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] Zclass and acquisition
=?iso-8859-1?q?Brown=20Fox?= writes: > is there a way to know the parent of a file saved in a > zclass? > The PARENTS stuff is useful also for zclasses? > I have tried but without any results! The parent chain is build up during URL traversal. Thus, it contains the ancestors in your Zope hierarchy. It does not depend on any ZClass relationships. Dieter ___ 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] Re: embed an SQL method inside a tag
[EMAIL PROTECTED] writes: > Any one try to call a ZSQL Method without using a form ? I had tried to do > this for a lot of times, and this is what I got : > > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'string' object has no attribute 'get' Z SQL Methods require the first *positional* argument to be a mapping object. In your case, it got a string instead. You should either use a Z SQL Method with a single mapping object parameter or (exclusive) with keyword parameters. Dieter ___ 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] ZODB/FSSession TransactionError
Brian McClain writes: > After playing around successfully with FSSession for a while, I ran into the > following error when calling FSSession: > > Error Type: TransactionError Zope could not commit a change made in the transaction. This may have several reasons: * cannot append to the ZODB file (var/data.fs), * commit to a database failed (e.g. of an SQL database) * FSSession information could not be updated * ??? Somehow, your log lacks some info about the actual problem. I would add "import traceback; traceback.print_exc()" at line 279 of "ZODB/Transaction.py" and look at the output. This should give you more detailed information about the problem. > I also get the following error on occassion when calling FSSession: > Error Type: EOFError > Error Value: It seems that FSSession wants to read past the end of the file and gets an EOFError. That's strange, because Python usually indicates EOF by returning an empty string and not by raising EOFError. I do not have FSSession sources. I would probably look at line 142 of "FSSession.py" to determine which operation raised the exception. Dieter ___ 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] ZODB performance: reads to writes
In article <000d01bfddfb$4546f070$[EMAIL PROTECTED]>, Evan Simpson <[EMAIL PROTECTED]> wrote: > - Original Message - > From: Jimmie Houchin <[EMAIL PROTECTED]> > > > Will an app as described above still suffer from problems with high > writes? > > Possibly, but only if there are hidden hotspots. For example, in your [...]> > 2. Implement the application-level conflict handling you read about, so that > Folders and Catalogs can decide that two writes don't conflict after all, > and merge them into a single update. Unfortunately, this doesn't deal with cases where the conflicting state is contained in many objects (see note by PJE in the ZODB Wiki). Also, there is a whole other area of difficulty for high-write-volume ZODBs, which is the ammount of IO that needs to be done. First, by nature ZODB can't rewrite a single attribute of an object, it has to rewrite the entire thing. Indexing is also a bear from an IO perspective. First, BTrees currently keep a count at each level, so every change to a btree changes a node at each level of the BTree. For a ZCatalog, there are a lot of btrees (something like 2n+4 for n indexes, I think -- don't quote me on that, it's been a while), and each one changes (last I looked, every index was updated even if the value indexed in a particular one hadn't changed. This may have been improved since). Not only is this bad from a hotspot point of view (always a conflict on the root node of the tree), but you end up doing a *lot* of IO. During my experiments that led to BerkeleyStorage, I was watching the Data.fs grow by 47K per transaction for adding indexed objects of ~1K in size. Watching this with tranalyzer, this turns out to be 1K of object, and 46K of updated btree pages :). Note that BerkeleyStorage only prevents the file from growing that much -- it still has to do all that IO (in fact, it has to do ~2-3 times that much IO, due to the nature of BerkeleyDB. A relational storage would have similar issues. For ammount of IO done, FileStorage is about as efficient as you can possibly be -- it's just that it trades that off against space reclamation). Also, with any kind of Berkeley or Relational storage, there is a second hidden IO and storage penalty: you're storing a btree inside a btree. In other words, the lower-level DB uses btrees to store your objects, including interior nodes of the higher-level ZODB btree. Every interior node of the ZODB Btree needs a leaf node (and supporting interior nodes) in the DB's btrees. so you get taxed twice, on both I/O and storage space used. Not to discourage anyone from using ZODB, necessarily. There are a lot of things it's fantastic for, and without a doubt ZODB is getting better at handling higher write ratios. Over time there will be more and more applications that previously would have required an external SQL or other kind of database that can be done in ZODB instead. However, there will also IMHO always be applications that ZODB just isn't as suitable for. You have to thing long and hard before committing to one or ther other. And then there's the worry of what happens if you chose wrong. We were faced with exactly these issues, and the extremes of them, to boot. We have a *large*, *very* high write ratio, lots of indexes type of application based on ZPublisher/DTML that we'd like to port to/replace with something Zope based. Yet we might need to make another instance of this same type of application used by only a few people with a small ammount of data -- it would really suck to have to have to have another instance of the same expensive database system to support a miniscule ammount of data, because everything was coded only with SQL in mind). This is what led ultimately to ZPatterns -- you can write applications and not have to decide up front on ZODB or SQL. And you can change your mind later (Seen that TV commercial? suddenly your online store is selling a zillion items per month instead of the 1000 you planned for. oops!). You can even decide on an instance by instance basis. You configure with ZODB for a small department or client, and Oracle or Sybase for a huge one -- and the small guy doesn't have to pay for the DB license and DBA!). Since then, we've discovered a number of other benefits to the model. Hmmm... I didn't intend to write a ZPatterns advertisement when I started, honest! But this seems to have turned into one nonetheless :^) ___ 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] mod_rewrite rule to close managment screens fromoutsiders
Ragnar Beer wrote: > > > > I'm trying to deny external access to zope maintainance from elsewhere > >> (just for sure), with Zope behind apache. However, It > >> just doesn't seem work... Sure It's more apache's problem, but I guess > >> someone around there has a working solution? > >> > >> # > >> dule mod_rewrite.c> > >> RewriteEngine on > >> RewriteCond %{HTTP:Authorization} ^(.*) > >> RewriteRule ^/Zope(.*) /usr/lib/cgi-bin/Zope/$1 > >[e=HTTP_CGI_AUTHORIZATION:%1,t=application/x-httpd-cgi,l] > >> > >> RewriteCond %{REMOTE_ADDR} !^193\.143\.156\.(.*) > >> RewriteRule ^/Zope.*manage - [F] > >> # > >> > > > -- > > I'm using > > > Deny from all > > > to block any request from my virtual server on port 80 that is under > the /ssl directory or has "manage" in it. You could then allow from > localhost. > > I was thinking about extending this idea to protect myself from > possible seccurity-holes in zope by denying everything and allowing > only requests ending in _html or _img. Any opinions on that? What about callable objects that don't end in either of these? ___ 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] Generating products that perform a smart clone of a master site?
Chris Thanks for your reply. I hadn't thought of using ZWikiWeb, but given that I do need to make instances of a master site, do you think that this could be done using ZWikiWeb? Instead of inheritance for the folders, the mechanism I'm investigating now is prototypes (a la JavaScript and Self objects). Hamish Lawson Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie ___ 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] How to retrieve content of a document?
Hello, Yet another question. I've gone through the DTML Reference Guide but couldn't find the answer. How do I display the content of a DTML Document through a query? For example: Displays the document's name and title. But how do i display the content of that document within that query? I apologise if it's obvious. thanks, Luke ___ 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] Data.fs.lock?
The tech that does backups on my new NT server (IIS) tells me that everything backs up ok except the \var\Data.fs.lock file. Is that normal or a problem? Darren Addy Internet Specialist and Interim Web Presence Coordinator Office of Information Technology Services University of Nebraska at Kearney ___ 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] DTML question
Hello, I want to retrieve the last 3 filenames from a subfolder and display them in a document. If I set the size of the retrieval to 1, I get just 1 name returned. If I set the size to 3, I get everything in the folder. (if I use 2 I also get everything in the subfolder ) Here is my code (using 2.2b2): thanks, Luke ___ 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] ZODB/FSSession TransactionError
On Tue, 27 Jun 2000, Brian McClain wrote: > > Error Type: TransactionError Ooouch ... I am not sure I can diagnose the problem but it is certainly a serious issue. Your email indicates two problems. The first trace (TransactionError) does not mention FSSession anywhere so I do not know where to start. Did you have any other indications that the error was raised because of FSSession? Is it reproducible? The second trace indicates an EOFError which indicates that cPickle is trying to unpickle a file with 0 length. So I guess you tried to store objects in FSSession that were unPicklable and looking at the code I can see that FSSession does not do a proper cleaning after such an event. I will correct the second problem now and post the new version soon. Thanks Pavlos ___ 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] STUPID_FILE_LOGGER
- Original Message - From: Andy McKay <[EMAIL PROTECTED]> > Im trying to run Zope on Win2k and use the stupid_file_logger. No matter > what I seem to do to the command line or z2.py I still get the logs going to > stderr (ie ms-dos console). Can anyone help? > > "C:\Zope\bin\python.exe" "C:\Zope\z2.py" -D > STUPID_FILE_LOGGER="c:\\zope.log" %1 %2 %3 %4 %5 %6 %7 %8 %9 > "C:\Zope\bin\python.exe" "C:\Zope\z2.py" -D STUPID_FILE_LOGGER="c:\Zope.log" > %1 %2 %3 %4 %5 %6 %7 %8 %9 > "C:\Zope\bin\python.exe" "C:\Zope\z2.py" -D "STUPID_FILE_LOGGER=c:\zope.log" > %1 %2 %3 %4 %5 %6 %7 %8 %9 Lose the "-D". Debug mode *always* logs to stderr, regardless of any other logging arrangements. Cheers, Evan @ digicool & 4-am ___ 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] Still Problem with LocalFS
- Original Message - From: jensebaer <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, June 24, 2000 6:52 PM Subject: Re: [Zope] Re: Problem with LocalFS Ok now I placed the dtml files (savefile.dtml upload.dtml) in the LocalFS Folder but the problem is still the same: When I use manage_addImage (now from inside LocalFS) the new image is created in the folder above. I don´t no how but there must be a way to add an Image to LocalFS by using another addimage form then the given. My I have to use another manage function? Or is there a special sytax to do this? You wrote that it works from inside LocalFS so may you can give me an example. Thank you Jens - Original Message - From: Jonothan Farr <[EMAIL PROTECTED]> To: jensebaer <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, June 23, 2000 2:35 AM Subject: [Zope] Re: Problem with LocalFS This is a known problem with LocalFS. The only workaround I know of is to put your dtml code into a file, give it a .dtml extension, and place it in the directory you want to upload to. This problem will be addressed in the next version of LocalFS. --jfarr "Perl is worse than Python because people wanted it worse." Larry Wall, 14 Oct 1998 - Original Message - From: jensebaer <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, June 22, 2000 5:23 PM Subject: [Zope] Problem with LocalFS Hello, I want to upload files to LocalFS. I created a LocalFS with the id: images I don´t want to use the existing addImageForm to create a new Image in the LocalFS. I want to use two DTML Methods uploadform File but this do not create a new image in the LocalFS. It creates an image in the Folder in which the the LocalFS exists. I do not understand why Jens ___ 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 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] ZCatalog counting?
> >On Tue, 27 Jun 2000, Alexander Limi wrote: > >> Is there an easy way to count the number of occurences of a certain meta >> type in a Catalog? E.g: I want a dtml snippet that outputs: > >Couldn't you do: > > > > > > > >This folder ( >number of objects with the meta type DTML Document. um, not to be nitpicking, but if you'd want to know the number of objects with a certain meta-type in a folder, the following is a bit shorter and saves you an iteration: This folder ( number of objects with the meta type DTML Document. This folder ( number of objects with the meta type DTML Document. not entirely sure of the dtml-let syntax, but you get the idea 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 )
Re: [Zope] ZCatalog counting?
On Tue, 27 Jun 2000, Rik Hoekstra wrote: > To quote a mail by RD Murray from a gew days ago: > > How do I find the size of the results returned by the catalog? > > <-- the results' length --> > Hmm. That wasn't my code. I'd suggest instead (untested, but I've used similar code in my own products): There are items of type Folder. I'm not sure what the relative advantages of these two code snippets would be, but the latter does stick purely to dtml. --RDM ___ 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] ZClass question?
I am using DTML methods on all. > -Original Message- > From: Erik Enge [SMTP:[EMAIL PROTECTED]] > Sent: Tuesday, June 27, 2000 4:37 PM > To: Webmaster > Cc: [EMAIL PROTECTED] > Subject: Re: [Zope] ZClass question? > > On Tue, 27 Jun 2000, Webmaster wrote: > > > First when I try and create a new instance remotely I get a zope error > > "unauthorized" no matter what username and password I type. If I try and > > Are you using DTML Methods or Documents? I've heard other talking > about creating roles, but I switched from DTML Documents to DTML > Methods and tde 'unauthorized' message went away. Don't know why :-(. ___ 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] ZWiki/Structured Text formatting surprise
>Hi, > >Just noticed that (_.None,_, gets rendered as (.None,, in a structrued >text wiki. Not useful :/ Hm, in a structuredtextdtml Wiki (such as the Zope edu Wiki) this works. See the SandBox there http://www.zope.org/Wikis/zope-edu/SandBox. So I can't reproduce it now. > >I've got around this by doing ('_'.None,_, but that's not really the >right idea. > >Does anyone know of the proper way of escaping this? > Won't the !_.None help? 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 )
Re: [Zope] ZCatalog counting?
But that assumes that they are all in the same folder... a ZCatalog query where meta-type = 'DTML Document' followed by a simple sequence-length would get around that. And I think (but dont quote me on this) that a ZCatalog search is quicker than objectValues. - Original Message - From: "Erik Enge" <[EMAIL PROTECTED]> To: "Alexander Limi" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, June 27, 2000 1:35 PM Subject: Re: [Zope] ZCatalog counting? > > On Tue, 27 Jun 2000, Alexander Limi wrote: > > > Is there an easy way to count the number of occurences of a certain meta > > type in a Catalog? E.g: I want a dtml snippet that outputs: > > Couldn't you do: > > > > > > > > This folder ( > number of objects with the meta type DTML Document. > > > > > ___ > 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] ZClass question?
On Tue, 27 Jun 2000, Webmaster wrote: > First when I try and create a new instance remotely I get a zope error > "unauthorized" no matter what username and password I type. If I try and Are you using DTML Methods or Documents? I've heard other talking about creating roles, but I switched from DTML Documents to DTML Methods and tde 'unauthorized' message went away. Don't know why :-(. ___ 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] ZCatalog counting?
On Tue, 27 Jun 2000, Alexander Limi wrote: > Is there an easy way to count the number of occurences of a certain meta > type in a Catalog? E.g: I want a dtml snippet that outputs: Couldn't you do: This folder ( number of objects with the meta type DTML Document. ___ 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] ProxyPass
I don't know, but I've been trying to figure it out for a week. Any ideas?? Here's what I've read so far: 1. Use ProxyVia. Problem: All ProxyVia does is create a header called "HTTP_Via" with the value of "1.1 mysite.com" Worthless. 2. Use custom headers. Problem: Zope doesn't seem to recognize the custom headers. If I do: Header set MyHeader "My Custom Header" then MyHeader never shows up in the REQUEST namespace. Maybe I'm doing it wrong -- I'm new to all this stuff. But if I can't find a good solution, I might just hack the Apache source code to have ProxyVia pass the IP address instead of the site calling it. - T.J. - Original Message - From: RC Compaan <[EMAIL PROTECTED]> To: Zope <[EMAIL PROTECTED]> Sent: Tuesday, June 20, 2000 7:50 AM Subject: [Zope] ProxyPass > Is there anyway to get around the fact that the remote ip is the server's ip > if you use Apache's ProxyPass directive to pass requests on to Zope? > > Roché > > > > ___ > 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] SV: [Zope] Newbie: String work
Hello Andy the syntax should be let string = "fred~~bloggs~aardvark" _.string.split(string,'~~')[-1] i.e. Should work. In python, it's the same thing. - Original Message - From: Andy Gates <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, June 27, 2000 12:39 PM Subject: [Zope] Newbie: String work > Simple stuff from the simple people today: string manipulation. > > I have a string variable which has various chunks delimited by double > tildes ~~. In order to do what I need to do, I need to extract the > section of the string after the last double-tilde, so that > > "fred~~bloggs" returns "bloggs" > "fred" returns "fred" > "fred~~bloggs~aardvark" returns "aardvark" > > I can see that rfind is the thing I need to use, but as usual (gah! > newbie!) I'm stuck on the syntax. Help! > -- > 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 ) > ___ 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] mod_rewrite rule to close managment screens fromoutsiders
> > I'm trying to deny external access to zope maintainance from elsewhere >> (just for sure), with Zope behind apache. However, It >> just doesn't seem work... Sure It's more apache's problem, but I guess >> someone around there has a working solution? >> >> # >> dule mod_rewrite.c> >> RewriteEngine on >> RewriteCond %{HTTP:Authorization} ^(.*) >> RewriteRule ^/Zope(.*) /usr/lib/cgi-bin/Zope/$1 >[e=HTTP_CGI_AUTHORIZATION:%1,t=application/x-httpd-cgi,l] >> >> RewriteCond %{REMOTE_ADDR} !^193\.143\.156\.(.*) >> RewriteRule ^/Zope.*manage - [F] >> # >> > > -- I'm using Deny from all to block any request from my virtual server on port 80 that is under the /ssl directory or has "manage" in it. You could then allow from localhost. I was thinking about extending this idea to protect myself from possible seccurity-holes in zope by denying everything and allowing only requests ending in _html or _img. Any opinions on that? --Ragnar ___ 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] ZCatalog counting?
>A presumably simple question: > >Is there an easy way to count the number of occurences of a certain meta >type in a Catalog? E.g: I want a dtml snippet that outputs: > >There are 123 DTML Documents in the Catalog. > >I've browsed the howto's, but didn't find anything like this. Can anybody >offer me some assistance? > > To quote a mail by RD Murray from a gew days ago: How do I find the size of the results returned by the catalog? <-- the results' length --> Also at the zdp site: http://zdp.zope.org/projects/zsnippet/snippets/DTMLContent/CatalogResLength 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 )
Re: [Zope] DTML/ZClass question
You are correct, you're ZClass is not rendering the dtml and it wont. The easiest way I found is simply not to try and find another solution. I came across the same problem a while ago when I was just starting out with Zope. I have solved the problem now, its written in python and derives from DTMLDocument and its based on the ZWiki code which accomplishes rendering quite well. - Original Message - From: "James W. Howe" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, June 27, 2000 11:50 AM Subject: [Zope] DTML/ZClass question > I have a ZClass that I created to hold information about a person. The > object has two attributes at the moment, name and bio. Elsewhere I have a > page layout which makes reference to a "pageContents" value. I want to > display my person objects using this layout but the object doesn't have a > pageContents attribute. I added a pageContents method to the ZClass which > references my "bio" property. The bio information appears, but if the bio > text contains any dtml, the raw dtml code is displayed (actually it's not > visible except if you do a "View Source"). I'm assuming that what is > happening is that somehow my "bio" information isn't being rendered, but is > being returned intact as a string which ultimately gets stuck in my browser > page. My question is this, what is the recommended way to create an > "alias" for a property defined in a ZClass? > > Thanks. > > James W. Howe mailto:[EMAIL PROTECTED] > Allen Creek Software, Inc. pgpkey: http://ic.net/~jwh/pgpkey.html > Ann Arbor, MI 48103 > > > ___ > 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] Kinterbasdb
Hi David, Thank you for the thoughtful response.. I agree that having KInterbasdb would not solve our DA problem, but at least it would let me use the new Interbase Storage option.. A few people have been successful doing this, (compiling KInterbasdb with IB6beta) perhaps one of them could write up a HowTO? Thank you. Chris Beaumont David Trudgett wrote: > > At 2000-06-23 11:40 -0700, you wrote: > >Hello.. > > > >I hope this isn't asking too much... > > > >Can someone who has successfully compiled Kinterbasdb for use with Zope > >make non-programmer-friendly information on how to compile it for the > >current glibc and Version of Interbase (6.0 beta) available? I haven't > >been having any luck and my email to the author has bounced.. > > Even having Kinterbasdb compiled would not be the end of our problems. I > believe a DA (Database Adapter) for Zope would still need to be written, > and that would be a reasonably onerous task (even though there's a howto > that says it's easy -- all things are relative I suppose). Given that > you're a non-programmer, the task is well-nigh impossible. (I'm a > programmer myself, but I don't think I have the required experience in > database API programming/Zope/Python to make it reasonably feasible for me > to do it (though I would like to, because I would like to access InterBase > database(s) from within Zope). > > I understand that the InterBase people are interested in getting InterBase > working with Zope, and there is/was even an initiative to bring Zope and > InterBase close together so that InterBase could serve the function that > the ZODB currently fulfills. The InterBase people themselves are, of > course, flat out at present getting version 6 ready for release within the > next few days (unless they break their stated deadline of the end of June). > > A possible work-around until an InterBase DA is available, might be to use > IBPerl and Perl CGI or mod_Perl under Apache to read the InterBase database > and output the required results, but wrap those results with Zope stuff > (using SiteAccess, i believe). I'm only just starting to think about doing > this myself, so don't ask me for any more detail than that! (Unfortunately, > that suggestion may be a bit difficult if you don't program in Perl.) > > Good luck. > > David Trudgett ___ 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: Slow File Access With LocalFS
It sounds to me like the Apache server is just writing the data directly to the HTTP connection as it is read. I believe that's how HTTP "streaming" works. I also believe this is possible to do using the Zope HTTPResponse object. Does anyone have any ideas? --jfarr "Perl is worse than Python because people wanted it worse." Larry Wall, 14 Oct 1998 - Original Message - From: Rob Pratt <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, June 27, 2000 10:56 AM Subject: Re: Slow File Access With LocalFS > Hey, thanks for the quick reply. > > > No, it just takes a while to read a very large file and construct the > ZObject > > (performance patches accepted ;)). It can also take a while to download > them > but > > that should be obvious. How is it that you're "streaming" the mp3 files? > > Sorry. Streaming is not exactly the right word I think. What I have set up > is that Zope delivers a playlist (*.m3u), which is opened by a player on > the > local machine (assuming there's one installed), and the player app in turn > makes a request for the actual mp3 file, which starts playing as soon as > it's properly buffered in the player app. That avoids having to download > each mp3 before playing it. > > I had the collection stashed behind an Apache rewrite rule, but when I > checked out LocalFS, I decided to try to move it into Zope under a LocalFS > object (which I can use to control access to the files more easily than in > Apache). Using Apache rewrite, requests for mp3 files just bypassed Zope, > and "streaming" was immediate. But handled as a LocalFS object, mp3 file > requests (I guess from your reply) have to wait to create the ZObject > before > they start "streaming." > > Is there a way to get LocalFS to serve up the file without creating a > ZObject? > > Wish I knew more about Python and programming. (I'm workin' on it, but it's > a steep learning curve for a newbie like me.) I'd jump in and see if I > could > come up with a performance patch. > > Anyway, I've just started learning Zope, and I see that it has immense > possibilities for automating a lot of what I do in my day job (I'm an > editor > for an alternative newsweekly in Santa Cruz, Calif., USA). The application > I > envision will probably make heavy use of the LocalFS product. > > I was hoping that it would be easy to digitize our extensive demo library > on touring > bands so that I wouldn't have to lend CDs to writers who never seem to > return them ;) I could just get an intern to rip CDs into mp3s and post > them > on a password-protected mp3 server, and all the writers could have 24-7 > access. > > That's just one feature. Many, many others that I can think of (not > involving mp3s ;)) could take hours and hours of work off of my weekly > workload. > ___ 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] ZODB/FSSession TransactionError
>On Tue, Jun 27, 2000 at 02:40:49PM -0400, Brian McClain wrote: >[...] >> I have plenty of disk space and have tried reinstalling FSSession/Zope, >> rebooting, etc... >> >> I am running Zope 2.1.0 and FSSession 0.3.1 > >What operating system do you use ? Have you checked the partition on >which Zope resides for filesystem errors ? > >-Petru I'm using linux 2.0.36 (redhat 5.2). When rebooting, fsck checked the partition Zope resides in and gave it a clean bill of health. -Brian ___ 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] ZOracleDA and Zope 2.2?
Hi! I am encountering the following problem when using ZOracleDA 2.2.0b1 and Zope 2.2b2/3: When creating a ZOracle Connection and giving the wrong connection string then whole Zopes crashs with OCI_ERROR at oci_8.c:283 ORA-12541: TNS:no listener OCI_ERROR at oci_8.c:283 ORA-12154: TNS:could not resolve service name (this is just a test with no Oracle running). Sometimes it automatically restarts but sometimes not (after the second try). I cannot remember to have this seen in 2.1, so a new bug? (When you give the right string everything is ok) regards, Christian -- COM.lounge http://comlounge.net/ communication & design [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] standard_html_header/footer for Help system in 2.2
The help system in 2.2 is looking great, with a minor annoying "feature". The left-side navigational window uses my standard_html_header and footer, which is not at all appropriate for a navigational window (it includes navigational bars of its own and causes a big horizontal scrolling situation). The right-side topic window has its own very basic header and footer. Is there a way (short of me modifying the help system) to get it to use a more plain header/footer? Maybe it should not use mine at all, but use its own as does the Zope management interface itself. ___ Ron Bickers Logic Etc, Inc. [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] (no subject)
"Jay, Dylan" wrote: > > > -Original Message- > > From: Marco Mariani [mailto:[EMAIL PROTECTED]] > > Sent: Monday, June 26, 2000 6:39 PM > > To: Jay, Dylan > > Subject: Re: [Zope] (no subject) > > > > > > On Mon, Jun 26, 2000 at 02:56:39PM +1000, Jay, Dylan wrote: > > > > > > > > > > > > > >link text > > > > > > > > > > > >link text > > > >(no link...) > > > > > > > > > > yes but the repitition of "link text" could be a real pain > > if "link_text" is > > > big. Repitition is always a maintance nightmare. > > > > So is dtml-always. > > No thats not the same thing. If I have a complex expression for X and it > needs to be changed then it will have to be changed in two places. If I > forget to update it in both places I would create a bug. My proposal > elegently avoids this problem. Personally, if I have a complicated expression I use in multiple places, I make it into it's own method, and call that from wherever I need it. But then again, I am rather lazy like that. ;-) Bill ___ 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] ZCatalog counting?
Hi, A presumably simple question: Is there an easy way to count the number of occurences of a certain meta type in a Catalog? E.g: I want a dtml snippet that outputs: There are 123 DTML Documents in the Catalog. I've browsed the howto's, but didn't find anything like this. Can anybody offer me some assistance? Thanks in advance, Alexander. ___ 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] how to get email delivery errors
Our site allows supervisors to email orders back to sales reps. We have this working very well. The problem is if the supervisor types in an non-existant email address we aren't getting Mail System Error - Returned Mail messages like you would from other email apps such as Netscape Messenger. Does anyone know how to accomplish this. Thanks, DR ___ 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] Making ZCatalog catalog the results from a ZSQL query
Greetings, How can I make a ZCatalog object to catalog the result set produced from a ZSQL method? I'm subclassing ZCatalog and replacing the default manage_catalogFind with a DTML method which in turn invokes a ZSQL method, but I get an error, "You are not authorized to access SQLPatientSearch." (SQLPatientSearch is the ZSQL method). I think I've set all permissions right, so I don't know why I get this, but I was wondering if someone can come up with an easier way to do this. Thank you very much, Ivan Raikov ___ 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] PowerMac 7500 with LinuxPPC and Zope?
hi daniel, zope should build and run just fine with that setup if you get the source distribution and compile it yourself. i am running zope on a pismo powerbook using Yellow Dog myself. jens on 6/27/00 14:22, Daniel Muller at [EMAIL PROTECTED] wrote: > Hi, > > I would like to turn an old Mac 7500 into a Zope server. LinuxPPC installs > on the Mac PowerPC using the Red Hat 6.1 linux distribution. Does anyone > have any experience with Zope with this type of set up? > > Should I consider a different linux distribution than PPC? > > Thanks, Daniel ___ 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] DTML/ZClass question
I have a ZClass that I created to hold information about a person. The object has two attributes at the moment, name and bio. Elsewhere I have a page layout which makes reference to a "pageContents" value. I want to display my person objects using this layout but the object doesn't have a pageContents attribute. I added a pageContents method to the ZClass which references my "bio" property. The bio information appears, but if the bio text contains any dtml, the raw dtml code is displayed (actually it's not visible except if you do a "View Source"). I'm assuming that what is happening is that somehow my "bio" information isn't being rendered, but is being returned intact as a string which ultimately gets stuck in my browser page. My question is this, what is the recommended way to create an "alias" for a property defined in a ZClass? Thanks. James W. Howe mailto:[EMAIL PROTECTED] Allen Creek Software, Inc. pgpkey: http://ic.net/~jwh/pgpkey.html Ann Arbor, MI 48103 ___ 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] PowerMac 7500 with LinuxPPC and Zope?
On Tue, Jun 27, 2000 at 02:22:36PM -0400, Daniel Muller wrote: > Hi, > > I would like to turn an old Mac 7500 into a Zope server. LinuxPPC installs > on the Mac PowerPC using the Red Hat 6.1 linux distribution. Does anyone > have any experience with Zope with this type of set up? > > Should I consider a different linux distribution than PPC? You should consider the PPC Gnu/Linux Debian distro : http://www.debian.org/ports/powerpc/ There is already a Debian Zope 2.1.6 package at the following URL : ftp://ftp.debian.org/pub/debian/dists/potato/main/binary-powerpc/web/zope_2.1.6-5.deb -- Serge Stinckwich -< ) Debian GNU/Linux 2.2 (frozen) CNRS UPRESA 6072>GREYC>I3>SMILE /~\ http://debian.org/ Université de Caen>IUT de Caen>Campus 3>Dept Info (/ | http://zope.org/ http://www.iutc3.unicaen.fr/~stincs_|_/ http://zschool.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 )
[Zope] ZODB/FSSession TransactionError
After playing around successfully with FSSession for a while, I ran into the following error when calling FSSession: Error Type: TransactionError Error Value: A serious error, which was probably a system error, occurred in a previous database transaction. This application may be in an invalid state and must be restarted before database updates can be allowed. Beware though that if the error was due to a serious system problem, such as a disk full condition, then the application may not come up until you deal with the system problem. See your application log for information on the error that lead to this problem. Traceback (innermost last): File /usr/local/dc2/Zope-2.1.0-linux2-x86/lib/python/ZPublisher/Publish.py, line 214, in publish_module File /usr/local/dc2/Zope-2.1.0-linux2-x86/lib/python/ZPublisher/Publish.py, line 179, in publish File /usr/local/dc2/Zope-2.1.0-linux2-x86/lib/python/Zope/__init__.py, line 202, in zpublisher_exception_hook (Object: short9_panic2) File /usr/local/dc2/Zope-2.1.0-linux2-x86/lib/python/ZPublisher/Publish.py, line 169, in publish File /usr/local/dc2/Zope-2.1.0-linux2-x86/lib/python/ZODB/Transaction.py, line 209, in commit TransactionError: (see above) And from the log file: 2000-06-27T16:33:19 PANIC(300) ZODB A storage error occurred in the last phase of a two-phase commit. This shouldn't happen. The application may be in a hosed state, so we will not allow transactions to commit from here on I also get the following error on occassion when calling FSSession: Error Type: EOFError Error Value: Traceback (innermost last): File /usr/local/dc/Zope-2.1.0-linux2-x86/lib/python/ZPublisher/Publish.py, line 214, in publish_module File /usr/local/dc/Zope-2.1.0-linux2-x86/lib/python/ZPublisher/Publish.py, line 179, in publish File /usr/local/dc/Zope-2.1.0-linux2-x86/lib/python/Zope/__init__.py, line 202, in zpublisher_exception_hook (Object: ApplicationDefaultPermissions) File /usr/local/dc/Zope-2.1.0-linux2-x86/lib/python/ZPublisher/Publish.py, line 165, in publish File /usr/local/dc/Zope-2.1.0-linux2-x86/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: short9_panic2) File /usr/local/dc/Zope-2.1.0-linux2-x86/lib/python/ZPublisher/Publish.py, line 102, in call_object (Object: short9_panic2) File /usr/local/dc/Zope-2.1.0-linux2-x86/lib/python/OFS/DTMLDocument.py, line 166, in __call__ (Object: short9_panic2) File /usr/local/dc/Zope-2.1.0-linux2-x86/lib/python/DocumentTemplate/DT_String.py, line 502, in __call__ (Object: short9_panic2) File /usr/local/dc/Zope-2.1.0-linux2-x86/lib/python/Products/FSSession/FSSession.py, line 116, in __call__ (Object: FSSession) File /usr/local/dc/Zope-2.1.0-linux2-x86/lib/python/Products/FSSession/FSSession.py, line 142, in load (Object: FSSession) EOFError: (see above) I have plenty of disk space and have tried reinstalling FSSession/Zope, rebooting, etc... I am running Zope 2.1.0 and FSSession 0.3.1 Any advice would be greatly appreciated, Brian McClain ___ 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] STUPID_FILE_LOGGER
The document by Amos (http://www.zope.org/Documentation/Misc/LOGGING.txt) says set the "STUPID_FILE_LOGGER" variable. That doesnt work but STUPID_LOG_FILE does. I just set it in the command line: "C:\Zope\bin\python.exe" "C:\Zope\z2.py" -D STUPID_LOG_FILE="C:\zope.log" Thanks. - Original Message - From: "Loren Stafford" <[EMAIL PROTECTED]> To: "Andy McKay" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, June 27, 2000 11:04 AM Subject: RE: [Zope] STUPID_FILE_LOGGER > I develop on Win98 with MKS tools. Using the MKS shell, this is what works > for me, but may not be relevnt to you: > > C:/Zope220b3/bin/python.exe C:/Zope220b3/z2.py -D > STUPID_LOG_FILE=C:/Zope220b3/var/stupidlog.txt > > Before I started using MKS shell, I just set STUPID_LOG_FILE in the > environment before starting Zope: > >set STUPID_LOG_FILE=C:\Zope\var\zopeapp.log > > If you don't find another solution, try the FrozenLogger product, which sets > STUPID_LOG_FILE for you from inside Zope. > http://www.zope.org/Members/lstaffor/FrozenLogger > > -- Loren > > > -Original Message- > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Andy > > McKay > > Sent: Tuesday, June 27, 2000 08:59 > > To: [EMAIL PROTECTED] > > Subject: [Zope] STUPID_FILE_LOGGER > > > > > > Hi, > > > > Im trying to run Zope on Win2k and use the stupid_file_logger. No matter > > what I seem to do to the command line or z2.py I still get the > > logs going to > > stderr (ie ms-dos console). Can anyone help? > > > > Here are command lines I have tried: > > > > "C:\Zope\bin\python.exe" "C:\Zope\z2.py" -D > > STUPID_FILE_LOGGER="c:\\zope.log" %1 %2 %3 %4 %5 %6 %7 %8 %9 > > "C:\Zope\bin\python.exe" "C:\Zope\z2.py" -D > > STUPID_FILE_LOGGER="c:\Zope.log" > > %1 %2 %3 %4 %5 %6 %7 %8 %9 > > "C:\Zope\bin\python.exe" "C:\Zope\z2.py" -D > > "STUPID_FILE_LOGGER=c:\zope.log" > > %1 %2 %3 %4 %5 %6 %7 %8 %9 > > > > etc.. > > > > I was hoping to write my own Logger, but when they didnt work to well I > > thought using the stupid_file_logger would suffice... > > > > Thanks. > > > > > > > > ___ > > 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] PowerMac 7500 with LinuxPPC and Zope?
Hi, I would like to turn an old Mac 7500 into a Zope server. LinuxPPC installs on the Mac PowerPC using the Red Hat 6.1 linux distribution. Does anyone have any experience with Zope with this type of set up? Should I consider a different linux distribution than PPC? Thanks, Daniel ___ 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] STUPID_FILE_LOGGER
I develop on Win98 with MKS tools. Using the MKS shell, this is what works for me, but may not be relevnt to you: C:/Zope220b3/bin/python.exe C:/Zope220b3/z2.py -D STUPID_LOG_FILE=C:/Zope220b3/var/stupidlog.txt Before I started using MKS shell, I just set STUPID_LOG_FILE in the environment before starting Zope: set STUPID_LOG_FILE=C:\Zope\var\zopeapp.log If you don't find another solution, try the FrozenLogger product, which sets STUPID_LOG_FILE for you from inside Zope. http://www.zope.org/Members/lstaffor/FrozenLogger -- Loren > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Andy > McKay > Sent: Tuesday, June 27, 2000 08:59 > To: [EMAIL PROTECTED] > Subject: [Zope] STUPID_FILE_LOGGER > > > Hi, > > Im trying to run Zope on Win2k and use the stupid_file_logger. No matter > what I seem to do to the command line or z2.py I still get the > logs going to > stderr (ie ms-dos console). Can anyone help? > > Here are command lines I have tried: > > "C:\Zope\bin\python.exe" "C:\Zope\z2.py" -D > STUPID_FILE_LOGGER="c:\\zope.log" %1 %2 %3 %4 %5 %6 %7 %8 %9 > "C:\Zope\bin\python.exe" "C:\Zope\z2.py" -D > STUPID_FILE_LOGGER="c:\Zope.log" > %1 %2 %3 %4 %5 %6 %7 %8 %9 > "C:\Zope\bin\python.exe" "C:\Zope\z2.py" -D > "STUPID_FILE_LOGGER=c:\zope.log" > %1 %2 %3 %4 %5 %6 %7 %8 %9 > > etc.. > > I was hoping to write my own Logger, but when they didnt work to well I > thought using the stupid_file_logger would suffice... > > Thanks. > > > > ___ > 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] ZPatterns: Deleting objects from a Rack?
Ty Sarna wrote: > call the manage_delete() method on the object. That is, you ask the > object to delete itself. This seems unnecessarily long-winded to me. What are the reasons for it being like this? (examples are good... ;-) > However, once you have the object, operations on the object should be > done as methods on the object. I'm sure it's against Demeter's Law (I've read the Wiki ;-) to work this way. You should ask the rack to delete an object and it can process this how it wants... most often this would be by asking the object to delete itself, but maybe it's be more efficient for the rack to just delete the object (for example, if the object is actually a row in an SQL table) cheers, Chris ___ 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] ZPatterns: Deleting objects from a Rack?
In article, Jeff Hoffman <[EMAIL PROTECTED]> wrote: > However, search as I might, I cannot figure out how to delete an item > once it's been created. On gut instinct, I figured there would be a > deleteItem() to complement the newItem() method. No such luck. > > What am I missing? Is there a management tab I'm not clicking on > somewhere? A method I haven't found? A clue I don't have? :-) call the manage_delete() method on the object. That is, you ask the object to delete itself. getItem() and newItem() aren't methods of the objects because it doesn't make sense... if you have the item, you don't need to get it. And you can't ask an object that doesn't exist yet to create itself :-). However, once you have the object, operations on the object should be done as methods on the object. ___ 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] Can't override standard_error_message on NotFound?
"R. David Murray" wrote: > On Mon, 26 Jun 2000, matt wrote: > > I'm having some problems with standard_error_message on 2.2.0b2. According to the >mailing list archives I should be able to override NotFound errors (I even >cut-n-pasted http://www.zope.org/standard_error_message/view_source into my own >standard_error_message in case I was missing something) but requesting a nonexistent >object still gets me what appears to be a built-in page. standard_error_message is also notoriously buggy in the way it handles things unless you're using Zope 2.2. I have lost significant hair in this area ;-) > Usually this means your standard_error_message is throwing an exception, > in which case Zope use the one hardcoded in the source. The way to check this is to look at the error. If your error message is throwing an exception, the origin of the error will be your error page. If it's still showing the original Not Found error then you're suffering from bugginess. HTH, Chris ___ 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: Slow File Access With LocalFS
> I'm using LocalFS to reference a large collection of mp3 files. (I figured > it was probably a good idea not to upload the whole shebang to the ZODB, so > I just added a LocalFS object to reference the top directory of the > collection.) When I try to download a file by calling the Zope object (for > instance, http://zopeserver/LocalFSObject/mp3file.mp3) it takes 30 seconds > for the average mp3 file to start streaming. Other files, i.e., way smaller > ones, like 4K playlist files, download very quickly. > > Is Zope or LocalFS choking on the large files? Is there some work-around > I'm missing? No, it just takes a while to read a very large file and construct the ZObject (performance patches accepted ;)). It can also take a while to download them but that should be obvious. How is it that you're "streaming" the mp3 files? --jfarr ___ 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] Can't override standard_error_message on NotFound?
On Mon, 26 Jun 2000, matt wrote: > I'm having some problems with standard_error_message on 2.2.0b2. According to the >mailing list archives I should be able to override NotFound errors (I even >cut-n-pasted http://www.zope.org/standard_error_message/view_source into my own >standard_error_message in case I was missing something) but requesting a nonexistent >object still gets me what appears to be a built-in page. Usually this means your standard_error_message is throwing an exception, in which case Zope use the one hardcoded in the source. --RDM ___ 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] database connection in zope
Mohideen, The zope mailing lists are the best place to answer these sorts of questions. To subscribe, go to http://lists.zope.org/mailman/listinfo/zope . In the mean time, I am forwarding this message to the list, perhaps they can help: Forwarded message: hi thanks for your replay from the zope documentation, i cannot get the relevent information(datbase connection method) sorry for the distrub? can i discuss my project wiht you now i discuss the my project(i,e sample project) documentation i created a table in demo gadfly database (table name is login table and field is userid and pass) i have three page and all three pages under the MakSampleProject folder (1)index.html page ,it contains username field and pass word field and 'submit' and 'new user register' button(i.e., two field and two button) if i am new user and i press the 'new user register' button,registration page will display (2)registerpage.html page contains three field (i.e username,password and confirmation) and submit button when you click the submit button ,at that time the 3rd page is call (3)fieldcheck.html page,this page contains both validation code and insert value part code i have code to validate three field is not empty ,if any one field is empty i will through the exception. if three field values are correct i go to write the values in login table validation part is if any one field is empty ,just i call the registerpage by using form acion method "http://localhost:8080/makhomepage/registerpage if all the field is not empty just i print the page "thnaks for registeration" and i goto insert the value to login table(i have no idea about this part) ?there is a problem in that area i dodn't no idea about how can i write the values in login table pls help me how can i connect the database and get the value and give the sample if In java just write the follwing code Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection con=DriverManager("Jdbc:Odbc:login","","") Statement stmt=con.createStatement(); ResultSet rs= stmt.execute("slect * from login"); ResultSetMetaData rsmd= rs.getMetaData(); while(rs.nex()) { } pls give the python sample its help for me if i am using sqlserver database, for the all above prodecure,how can i do in sqlserver? i think,in india it is the first time to use the zope server technology,in chennai i am first man to use the server waiting for reply??? bye MAK Precious Microtech Private Limited Chennai-34 Phone -8210977/6 www.preciousmicrotech.com __ Do You Yahoo!? Get Yahoo! Mail - Free email you can access from anywhere! http://mail.yahoo.com/ ___ 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] ZWiki/Structured Text formatting surprise
Hi, Just noticed that (_.None,_, gets rendered as (.None,, in a structrued text wiki. Not useful :/ I've got around this by doing ('_'.None,_, but that's not really the right idea. Does anyone know of the proper way of escaping this? cheers, Chris ___ 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] STUPID_FILE_LOGGER
Hi, Im trying to run Zope on Win2k and use the stupid_file_logger. No matter what I seem to do to the command line or z2.py I still get the logs going to stderr (ie ms-dos console). Can anyone help? Here are command lines I have tried: "C:\Zope\bin\python.exe" "C:\Zope\z2.py" -D STUPID_FILE_LOGGER="c:\\zope.log" %1 %2 %3 %4 %5 %6 %7 %8 %9 "C:\Zope\bin\python.exe" "C:\Zope\z2.py" -D STUPID_FILE_LOGGER="c:\Zope.log" %1 %2 %3 %4 %5 %6 %7 %8 %9 "C:\Zope\bin\python.exe" "C:\Zope\z2.py" -D "STUPID_FILE_LOGGER=c:\zope.log" %1 %2 %3 %4 %5 %6 %7 %8 %9 etc.. I was hoping to write my own Logger, but when they didnt work to well I thought using the stupid_file_logger would suffice... Thanks. ___ 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] Can not add Zope Tutorial with 2.2: Solved
On Tue, Jun 27, 2000 at 10:14:59AM -0400, Brian Lloyd wrote: > > One "aesthetic" problem i see now: The order of the Tutorial > > lessons in > > the "menu" frame is wrong. > > Yes, I noticed that too. I don't know if Amos will get to this > by 2.2 final - I'll forward this to him though. I already sent him a patch for this. It should be incorporated by the next version I think. -- Martijn Pieters | Software Engineermailto:[EMAIL PROTECTED] | Digital Creations http://www.digicool.com/ | Creators of Zope http://www.zope.org/ | ZopeStudio: http://www.zope.org/Products/ZopeStudio - ___ 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] Generating products that perform a smart clone of a master site?
Hamish Lawson wrote: > I envisaged turning a tutor's site into a product that could be > instantiated. Hi Hamish, I'd suggest downloading the ZWikiWeb product from: http://www.zope.org/Members/chrisw/ZWikiWeb It does pretty much exactly what you're talking about. It's doesn't take very long to knock up a product like this and I don't think I even used ZClasses. My basis was the example stuff from the Zope Content Managers Guide. I'm guessing this is what you're trying to do. If you're looking into using inheritence (so for example, your tutor changes his example, which causes all the instances to be updated) then you'll need to use ZClasses. I have vague memories of the Zope Developers Guide covering this, if not, try BeeHive's ZClass guide. cheers, Chris ___ 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] mod_rewrite rule to close managment screens from outsiders
- Original Message - From: Riku Voipio <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, June 27, 2000 4:05 PM Subject: [Zope] mod_rewrite rule to close managment screens from outsiders > I'm trying to deny external access to zope maintainance from elsewhere > (just for sure), with Zope behind apache. However, It > just doesn't seem work... Sure It's more apache's problem, but I guess > someone around there has a working solution? > > # > dule mod_rewrite.c> > RewriteEngine on > RewriteCond %{HTTP:Authorization} ^(.*) > RewriteRule ^/Zope(.*) /usr/lib/cgi-bin/Zope/$1 [e=HTTP_CGI_AUTHORIZATION:%1,t=application/x-httpd-cgi,l] > > RewriteCond %{REMOTE_ADDR} !^193\.143\.156\.(.*) > RewriteRule ^/Zope.*manage - [F] > # > > -- I didn't use , the `rewrite' module for something like this, but I remember that the order of the rules is VERY important. I suppose that when the first Cond is matched the last doesn't matter So maybe is better to invert the rules... PM ___ 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] embed an SQL method inside a tag
On Tue, Jun 27, 2000 at 12:05:56PM +1000, Andrew Kenneth Milton wrote: > +[ Dieter Maurer ]- > | Andrew Kenneth Milton writes: > | > > | > So... > | > > | Alternatively, you could place the values from "abc_sql_statement" > | into the "REQUEST" object: > | > | > | > > Except you get one line per variable you want to set... It's ok if you've > only got one variable and you want to use it outside the loop, setting > four or five would get messy I think. Actually this is not so bad. Set up a DTML-method that has all of these calls in it. I like to call mine currySomethingArgs For example, if you have a SQL method Foo requiring args a,b,c,d,e,f,g then curryFooArgs would have body . . . and your calling sequence to Foo looks like This also makes the nested SQL call problem easier to read. ___ 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] Generating products that perform a smart clone of a master site?
David Thank you for your reply. > With ZClasses you can use the Zope security support to control who > updates what. However, currently ZClasses can only go in the > Control_Panel/Products folder. This means that all tutors will see > the products/classes used by all other tutors, which you say you wish > to avoid. I may have misled you about what I meant by the alien stuff that I wanted tutors to avoid seeing. I envisaged turning a tutor's site into a product that could be instantiated. In order not to make copies of static files, I reckoned that each folder in the tutor's original site would have to be made into its own ZClass in order that the static files that were missing from instances of the site could be found through inheritance. I'm happy with a tutor's site being moved into the Products folder; the stuff I wanted tutors to avoid seeing wasn't other products, since I think it should be possible to provide them with an interface that takes them straight to their own product. Rather I wasn't sure whether it was possible to turn a tutor's site into a product that used folderish ZClasses instead of ordinary folders, yet still have it feel like their old site. One issue with what I'm suggesting is this idea of every folder in the tutor's productised site really being a folderish ZClass. I'm bothered by this profusion of ZClasses. I think what I really need is the concept of prototype folders, whereby if a folder in an instance of the site didn't itself contain the required object, its prototype folder would be looked in instead; the folders in the product would be just ordinary folders rather than individual ZClasses, and folders within the product instances would all be instances of a single PrototypedFolder class (though obviously pointing to different folders as their prototype), thus drastically reducing the number of classes required. But I don't know whether such a prototype mechanism exists for Zope. Hamish Lawson University of St Andrews, Scotland Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie ___ 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] ZClass question?
I am running 2.2.0b2 on a RH linux and have created a simple ZClass. All of my modified constructor objects work perfect however when I created a separate dtml method to add instances I get some weird errors. First when I try and create a new instance remotely I get a zope error "unauthorized" no matter what username and password I type. If I try and create a new instance locally on the same box (or within the internal network) I get a KeyError and then at the bottom of the same page is a second included page with a 404 file not found error. If I change the method from "post" to "get" so I can see if the new_goLiveDate is being passed I get the "unauthorized" error. Any idea what is going on? Here is my "add_instance_html" code. Let me know if you need more info. -Jamey ___ 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] Can not add Zope Tutorial with 2.2: Solved
> the last updates for DA.py and/or TutorialTopic.py have solved the > problem for me. good! :) > One "aesthetic" problem i see now: The order of the Tutorial > lessons in > the "menu" frame is wrong. Yes, I noticed that too. I don't know if Amos will get to this by 2.2 final - I'll forward this to him though. Thanks! Brian Lloyd[EMAIL PROTECTED] Software Engineer 540.371.6909 Digital Creations http://www.digicool.com ___ 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] mod_rewrite rule to close managment screens from outsiders
I'm trying to deny external access to zope maintainance from elsewhere (just for sure), with Zope behind apache. However, It just doesn't seem work... Sure It's more apache's problem, but I guess someone around there has a working solution? # dule mod_rewrite.c> RewriteEngine on RewriteCond %{HTTP:Authorization} ^(.*) RewriteRule ^/Zope(.*) /usr/lib/cgi-bin/Zope/$1 [e=HTTP_CGI_AUTHORIZATION:%1,t=application/x-httpd-cgi,l] RewriteCond %{REMOTE_ADDR} !^193\.143\.156\.(.*) RewriteRule ^/Zope.*manage - [F] # -- Riku Voipio [EMAIL PROTECTED] 09-862 60764 ___ 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] problem testing permissions
Hi, I've created a folder in which there's a dtml method index_html which displays a calendar of events found in the ZCatalog. In this folder I've created several folders, one for each event type (e.g. courses, exams, etc...) each subfolder acquire the index_html method when it is displayed. In each subfolder I've created a user folder and created an user who has a manager role (I've also given the user a local role of manager for the subfolder, but I don't now if it is useful or not): this person should be able to add whatever she wants, especially events, in her folder, but nowhere else. here's the tree: Events |-- index_html |-- Courses | |-- acl_users | | |-- jerome (can add events in Courses only) | |-- event 1 | |-- event 2 | |-- ... | |-- event n |-- Exams |-- acl_users | |-- fred (can add events in Exams only) |-- event 1 |-- ... |-- event n If I log in as superuser (Zope 2.1.6 with patches) then no problem, I can add events wherever I want. If I log in as a user I've created in one of the subfolders then my test seems to be wrong (see below). here's my code which should create an html link to the add form if the logged in user is a manager for the subfolder (e.g. jerome for Courses), or just display the day number if not ---CUT--- ---CUT--- it seems just like if the does nothing. Does anyone have an idea ? thanks in advance. Jerome ALET - [EMAIL PROTECTED] - http://cortex.unice.fr/~jerome Faculte de Medecine de Nice - http://noe.unice.fr - Tel: 04 93 37 76 30 28 Avenue de Valombrose - 06107 NICE Cedex 2 - FRANCE ___ 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] Newbie: String work
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" > > > this is documented at > http://www.zope.org/Documentation/Guides/DTML-HTML/DTML.4.4.2.3.html > - but not very newbie-friendly Perfecto! Thank you! 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] ProxyPass Problems
i dont know much about ssl but wouldn't you want to pass / --> https:// instead of / --> http:// ? but then again i dont know a thing about ssl... peter On Mon, 26 Jun 2000, Baker, Dennis [sjmr] wrote: :I'm having a problem with getting ProxyPass and SSL to work. I followed the :How-to on Using Apache with ZServer, and unfo's How-To on :Apache+ZServer+SSL. And my setup is nearly identical to the one listed on :the howto. I have my main site in the root of my Zope Setup, and My SSL :site is in a subdirectory of the root called SecureSite. : :After setting up the ProxyPass Directives in Apache (I have the httpd.conf :section attached below) and Adding the SiteRoot objects on Zope I can access :the main Site at http://mysite.org, but if I try to access :https://mysite.org my web browser hangs until it times out. Also, it :becomes impossible to browse the SecureSite Folder unless I delete the :SiteRoot Object. : :It appears to be some kind of Apache issue, however I can't figure out why :it won't connect, the directives are almost identical to the ones on the :Howto. Any Suggestions ?? : : Snippet from httpd.conf --- :NameVirtualHost 206.171.167.101:80 : : :ServerAdmin [EMAIL PROTECTED] :ServerName mysite.org :ProxyPass / http://mysite.org:8080/ :ProxyPassReverse / http://mysite.org:8080/ :ProxyPass /misc_ http://mysite.org:8080/misc_ :ProxyPass /p_ http://mysite.org:8080/p_ : : :NameVirtualHost 206.171.167.101:443 : : :ServerAdmin [EMAIL PROTECTED] :ServerName mysite.org :ProxyPass / http://mysite.org:8080/SecureSite/ :ProxyPassReverse / http://mysite.org:8080/SecureSite/ :ProxyPass /misc_ http://mysite.org:8080/misc_ :ProxyPass /p_ http://mysite.org:8080/p_ : : : End Snippet : :Dennis Baker :Information Systems Manager, St. Joseph's Medical Resources : : :___ :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 )
[Zope] Zclass and acquisition
Hello, is there a way to know the parent of a file saved in a zclass? The PARENTS stuff is useful also for zclasses? I have tried but without any results! Thanks, Bruno __ Do You Yahoo!? Il tuo indirizzo gratis e per sempre @yahoo.it su http://mail.yahoo.it ___ 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] R: [Zope] Newbie: String work
- Original Message - From: Andy Gates <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, June 27, 2000 1:39 PM Subject: [Zope] Newbie: String work > Simple stuff from the simple people today: string manipulation. > > I have a string variable which has various chunks delimited by double > tildes ~~. In order to do what I need to do, I need to extract the > section of the string after the last double-tilde, so that > > "fred~~bloggs" returns "bloggs" > "fred" returns "fred" > "fred~~bloggs~aardvark" returns "aardvark" > > I can see that rfind is the thing I need to use, but as usual (gah! > newbie!) I'm stuck on the syntax. Help! Maybe is a little strange , but should work (I hope:) Or maybe is better to use split, is more readable PM ___ 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] Newbie: String work
on Tuesday, June 27, 2000 Andy Gates wrote : AG> Simple stuff from the simple people today: string manipulation. AG> I have a string variable which has various chunks delimited by double AG> tildes ~~. In order to do what I need to do, I need to extract the AG> section of the string after the last double-tilde, so that AG> "fred~~bloggs" returns "bloggs" AG> "fred" returns "fred" AG> "fred~~bloggs~aardvark" returns "aardvark" AG> I can see that rfind is the thing I need to use, but as usual (gah! AG> newbie!) I'm stuck on the syntax. Help! try something like : this is documented at http://www.zope.org/Documentation/Guides/DTML-HTML/DTML.4.4.2.3.html - but not very newbie-friendly took me a long time to figure out how to use :-) -- Geir Bækholt web-developer/designer [EMAIL PROTECTED] http://www.funcom.com ___ 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] Newbie: String work
Andy Gates wrote: > > Simple stuff from the simple people today: string manipulation. > > I have a string variable which has various chunks delimited by double > tildes ~~. In order to do what I need to do, I need to extract the > section of the string after the last double-tilde, so that > > "fred~~bloggs" returns "bloggs" > "fred" returns "fred" > "fred~~bloggs~aardvark" returns "aardvark" > > I can see that rfind is the thing I need to use, but as usual (gah! > newbie!) I'm stuck on the syntax. Help! what about (in convoluted DTML very lightly tested): )"> If you want the part after the ~~, you'll have to add +2 to the string index, like instr[ix+2:]. Making this fit for the 'fred' case is left as an exercise for the reader ;-=) 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] Newbie: String work
Simple stuff from the simple people today: string manipulation. I have a string variable which has various chunks delimited by double tildes ~~. In order to do what I need to do, I need to extract the section of the string after the last double-tilde, so that "fred~~bloggs" returns "bloggs" "fred" returns "fred" "fred~~bloggs~aardvark" returns "aardvark" I can see that rfind is the thing I need to use, but as usual (gah! newbie!) I'm stuck on the syntax. Help! -- 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 )
[Zope] CalendarTag 0.9.15 + Wiki
Hi, in the name of Juan David Iban~ez Palomar, I'm pleased to announce you the availability of the CalendarTag 0.9.15 which includes a complete internationalisation via the lang= attribute of the calendar tag. Available languages are Spanish, Catalan, English and French. Please contribute translations in your own language. A wiki was set up as well for the Calendar Tag product. you can find all on http://www.zope.org/Members/jdavid/Calendar thanks for reading. Jerome ALET - [EMAIL PROTECTED] - http://cortex.unice.fr/~jerome Faculte de Medecine de Nice - http://noe.unice.fr - Tel: 04 93 37 76 30 28 Avenue de Valombrose - 06107 NICE Cedex 2 - FRANCE ___ 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] R: [Zope] range with variables
Marcel Preda wrote: > > - Original Message - > From: Armin Wappenschmidt <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, June 27, 2000 10:50 AM > Subject: [Zope] range with variables > > > Hi all, > > > > I've a problem using the following dtml construct: > > > > # <-- that's the problem!! > > > > > > > >do something > > > > > > > > > > > > > > How can I set the variable "start" from a user given input? > > > > > The problem is that in both cases the `startindex' is a string, > you have tu convert it to int. > > > The conversion from string to int was the problem. Now it works! :) Thanks! armin -- Armin Wappenschmidt - Consultant Engineer SDRC Ford Program OfficeSDRC Software und Service GmbH Spessartstrasse (D-MD/PA-2) Martin-Behaim-Strasse 12 D-50725 Koeln-Merkenich D-63263 Neu-Isenburg Phone (+49) 0221-90 33619 Phone (+49) 06102-747-0 Fax(+49) 0221-90 31243 Fax (+49) 06102-747 299 PROFS AWAPPENS mailto:[EMAIL PROTECTED] _/_/_/_/ _/_/_/ _/_/_/ _/_/_/_/ _/ _/_/ _/_/_/ _/_/_/_/ _/ _/ _/_/_/ _/ _/ _/ _/ _/ _/ _/ _/_/_/_/ _/_/_/_/ _/ _/ _/_/_/_/ S O F T W A R E U N D S E R V I C E G M B H ___ 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: embed an SQL method inside a tag
Hi All, Any one try to call a ZSQL Method without using a form ? I had tried to do this for a lot of times, and this is what I got : Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'string' object has no attribute 'get' 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] R: [Zope] range with variables
- Original Message - From: Armin Wappenschmidt <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, June 27, 2000 10:50 AM Subject: [Zope] range with variables > Hi all, > > I've a problem using the following dtml construct: > > # <-- that's the problem!! > > > >do something > > > > > > > How can I set the variable "start" from a user given input? > You can call http://www.domain.com/index?startindex=101 or you can do this bay a usual FORM ... The problem is that in both cases the `startindex' is a string, you have tu convert it to int. ATENTION: If 'startindex' is not a valid number the `atoi' method will rise an exception like: Error Type: ValueError Eror value: invalid literal for atoi(): So is better to check first, something like: Error message - INVALID NUMBER Other way is to force `startindex' to be a int like: ... But you could have problems, an exception like above could occur (if someone will input an invalid number) and you can not do something. That's the story. PM ___ 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] Access object inside a folder
Hi, I have put objects inside a folder tabledef and would like to refer them : However, this does not work, But putting the objects in the current folder works without problems: I also try: and some other combinations, all without success. How can I access the objects (DTML DOCUMENTS) inside a folder? Moreover, I would like to do the following: I have some properties of an object abc which have same name with the object ids in the tabledef folder, I would also lookup the objects' properties : Assume abc have a property address, then there should be a dtmldoc call address in tabledef, which have properties "help" and "tableorder". I would like to retrieve them. Can somebody help me with these? Rgs, Kent Sin - kentsin.weblogs.com kentsin.imeme.net ___ 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] ZOracleDA
Avoid using Oracle 8.1.5 at all costs. It has mislinked executables and libraries, I can't believe Oracle could have released such a shit. Instead, download and try Oracle 8.1.6 R2 - the current release. It fixes a number of issues (though not all of them) and at least it works. Michal Bukovjan Citace Kiran Jonnalagadda <[EMAIL PROTECTED]>: > Hi, > > I'm trying to install ZOracleDA. I've managed to get DCOracle to build, > but the test fails with this traceback: > > - > [root@balrog src]# python DCOracle_test.py > Traceback (innermost last): > File "DCOracle_test.py", line 1, in ? > import Buffer, oci_, sys > ImportError: /u01/app/oracle/product/8.1.5/lib/libordvir8.so: undefined > symbol: __pure_virtual > - > > I'm running Zope 2.1.6 with Python 1.5.2 on Linux. DCOracle and > ZOracleDA are both the stab;e releases. Oracle is 8.1.5 (needed the > Setup file from this list). > > I added -lordvir8 a couple of times extra to Setup to see if this > problem went away, but it wouldn't. > > nm on libordvir8.so says that it contains the __pure_virtual symbol. > > Does anyone know how to get around this? > > -- > > Kiran Jonnalagadda > http://lunateks.com > > baby.sh: while true; do echo "^G^G^G^G^G"; sed -e 's/food/poop/'; > sync; sync; sleep 15; done > > ___ > 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] (no subject)
In article <014501bfdf74$dce74e50$6200a8c0@longwy>, Luc Tonin writes >does anybody know how to have some statistic about each web pages >under zope?? each pages is da result of query on a mysql database ! >any id ??? >thx by advance > >L.Tonin > I have a sql method in my html header that saves the url, query, and the remote ip address for any pages that I am interested into a table which I can query at my leisure. This way I get real time statistics from within Zope as opposed to analysing the server logs outside of Zope. -- Regards, Graham Chiu gchiucompkarori.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] range with variables
Hi all, I've a problem using the following dtml construct: # <-- that's the problem!! do something How can I set the variable "start" from a user given input? Thanks! armin -- Armin Wappenschmidt - Consultant Engineer SDRC Ford Program OfficeSDRC Software und Service GmbH Spessartstrasse (D-MD/PA-2) Martin-Behaim-Strasse 12 D-50725 Koeln-Merkenich D-63263 Neu-Isenburg Phone (+49) 0221-90 33619 Phone (+49) 06102-747-0 Fax(+49) 0221-90 31243 Fax (+49) 06102-747 299 PROFS AWAPPENS mailto:[EMAIL PROTECTED] _/_/_/_/ _/_/_/ _/_/_/ _/_/_/_/ _/ _/_/ _/_/_/ _/_/_/_/ _/ _/ _/_/_/ _/ _/ _/ _/ _/ _/ _/ _/_/_/_/ _/_/_/_/ _/ _/ _/_/_/_/ S O F T W A R E U N D S E R V I C E G M B H ___ 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 )