[Zope] Simple function nightmare
Hi Zopistas, Hope you can help me .. (I'm hating DTML right now ) Take this dtml document with name: dontWork_dtml I want de document act like a function that concatenates a,b and c but if at other document i do something like guess what: it renders 2-2-3 That is d is not a string but an expression. The question is How the Fck. can i implement the concatenation of 3 arguments ? Gracias por vuestra paciencia. -- __ Felipe Alvarez Harnecker. QlSoftware. Tel. 09.874.60.17 e-mail: [EMAIL PROTECTED] Potenciado por Ql/Linux http://www.qlsoft.cl/ __ ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] MS SQL server and Zope
linux for Intel, redhat 6.2. -- Paul Beard / 206 728 4282 x138 Fizzylab / 2025 First Ave, Suite 1150 Seattle WA 98121 On Fri, 2 Jun 2000, Andrew Kenneth Milton wrote: > +[ paul beard ]- > | anyone have any insight on accessing a SQL server store thru Zope? I have > | an app that's backed by SQL server and rather than buy r/w licenses for > | it, I'd be happy to use Zope to access it readonly. > > What platform are you running Zope under? > > -- > Totally Holistic Enterprises Internet| P:+61 7 3870 0066 | Andrew Milton > The Internet (Aust) Pty Ltd | F:+61 7 3870 4477 | > ACN: 082 081 472 | M:+61 416 022 411 | Carpe Daemon > PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| > > ___ > Zope maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) > ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Virtual host admin under Apache+ZServer+SiteAccess
On Thu, Jun 01, 2000 at 06:18:25PM -0600, ethan mindlace fremen wrote: > o Some basic hooks to support virtual hosting (a la > SiteAccess) have been designed and will be added > to allow product authors to write virtual hosting > support without fragile dependencies on parts of > the Zope core. Greetings For security reasons, I would like to do web administration of remote Zope installations via ssh port forwarding. For instance, while running ssh -g -L 8080:foo.bar:8080 foo.bar one can access a ZServer on foo.bar:8080 using http://localhost:8080/. However, I'm using Apache with ZServer and SiteAccess for virtual hosting as documented in http://www.zope.org/Members/anser/apache_zserver, and this has a nasty implication: once I activate a SiteRoot inside some Zope folder "/parrot" for making it the top folder of a virtual host http://parrot.bar/, the use of URLs under http://parrot.bar/ is forced whenever administering content under the "/parrot" folder, even if arriving from a foo.bar:8080 document: the browser is then no longer connecting through the secure channel but talking directly with http://parrot.bar/. Of course this could also be redirected, but not so easily. In this example, it would be nice to be able to administer the contents of http://parrot.bar/ either via parrot.bar (typically for less sensitive content, end users) or via foo.bar:8080 (more delicate administrative tasks, administrators which know how to encrypt communication with ssh). Is there interest (or is it feasible) to make virtual hosting support evolve to allow this? (I didn't think much about the implications, but can already notice a problem under the virtual hosting strategy above (ZServer+Apache): how to make Zope "guess" if it should write absolute URLs for parrot.bar or for foo.bar:8080?) Even better would be web content administration under SSL, of course :) jmce: +351 919838775 ~ http://artenumerica.com/ ~ http://artenumerica.org/ ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] MS SQL server and Zope
>>> paul beard wrote > anyone have any insight on accessing a SQL server store thru Zope? I have > an app that's backed by SQL server and rather than buy r/w licenses for > it, I'd be happy to use Zope to access it readonly. You can use the Sybase libs to access it. See http://www.zope.org/Members/anthony/dcSybase-on-linux/ ___ 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] MS SQL server and Zope
+[ paul beard ]- | anyone have any insight on accessing a SQL server store thru Zope? I have | an app that's backed by SQL server and rather than buy r/w licenses for | it, I'd be happy to use Zope to access it readonly. What platform are you running Zope under? -- Totally Holistic Enterprises Internet| P:+61 7 3870 0066 | Andrew Milton The Internet (Aust) Pty Ltd | F:+61 7 3870 4477 | ACN: 082 081 472 | M:+61 416 022 411 | Carpe Daemon PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] MS SQL server and Zope
anyone have any insight on accessing a SQL server store thru Zope? I have an app that's backed by SQL server and rather than buy r/w licenses for it, I'd be happy to use Zope to access it readonly. -- Paul Beard / 206 728 4282 x138 Fizzylab / 2025 First Ave, Suite 1150 Seattle WA 98121 ___ 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] [announce] SQL Session 0.2.9 available.
A long-overdue update to SQL Session is out. This version (0.2.9) will be the last version in the 0.2.x series (assuming no brown paper bag bugs in this release). I will be now working on 0.3.x, which will hook into the transaction machinery so that it only makes a single set of updates in a transaction. This should lower the database hits significantly. Installation: If you have a previous version of SQLSession, you might need to go to the management panel of your Session object after installing the new version and hit 'Change'. Note that the default schema has changed to avoid bad words like 'name', 'session', 'sessions' and 'value', since some databases have issues with these. Changelog from 0.2.3: Code now uses it's own decodestring/encodestring, because the standard python lib supplies an incredibly stupid implementation. (take a string, wrap it in a StringIO, then pass it to encode which then pulls out the string again.) Rough testing shows that a small string encode or decode drops from 1ms or so to about 1/20th of that. Given how often this is done, it makes a big big difference. Jeff Hoffman supplied a patch that makes SQLSession work with 2.2 - adding __allow_access_to_unprotected_subobjects__ = 1 to the SESSION object. Ooo, magic. Changed the default schema and queries to avoid using the words 'session', 'value' or 'name'. Different databases have different ideas of which are and are not reserved words. Added a new option 'path', to specify the cookie path. This means that you can specify, say, /foo, and only the browser will only send the cookie when requesting URLs beginning with /foo. Re-did some of the internals to avoid what may or may not have been a refcount cycle. I'm still not sure what caused it - assigning the SESSION object to REQUEST.SESSION, with SESSION keeping a reference to the parent Session object. It now finds Session by acquisition. A number of dumb bugs were squished. Anthony -- Anthony Baxter <[EMAIL PROTECTED]> It's never too late to have a happy childhood. ___ 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] Interbase / Cacheing - A thought
Ian Sparks wrote: > > Hannu, > > Does PostgresSQL allow you to have dynamic events? By this I mean can you do > things like : > > PostEvent "Update_tblUsers_Record_" + new.RecordID; No, but it may change sometime (possibly soon) as PostgreSQL is an open-source product ... > I believe that in Interbase the events are compiled into the trigger, not > interpreted at Runtime so you can't have an Interbase event alert you to a > change in a particular record, only that a change has occurred on a table. The same is true for postgrSQL, only the syntax is LISTEN/NOTIFY. Hannu ___ 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] Interbase / Cacheing - A thought
Cary O'Brien wrote: > > > Ian Sparks wrote: > > > > > > Had a thought that I wanted to share. > > > > > > Interbase has a feature known as "event alerts". In a trigger you can post > > > "events" which are just fixed data strings e.g. "DataAdded" or > > > "Insert_tblUsers". > > > > PostgreSQL has them too. > > > > It's not (afaik) supported by DB-API, but could be used in a DA that talks > > to some lower level API. > > > > They are supported by the TCL interface that comes with PostgreSQL > (src/interfaces/libpgtcl in the PostgreSQL source tree) if you are > looking for examples of how they work. (Search for listen and > notify in pgtclCmds.c > The lower level python interfaces (_pg, pg) support them too. - Hannu ___ 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] images in access database
Hi, I would like to be able to have gifs/jpgs stored in an MS access database and then pull the out using zope and display them in rendered documents. I am completely new to access. I have successfully installed the ODBCDA into zope, and are able to connect to an access database and pull ordinary text data out of tables. I have created a table in access with a column of type 'OLE object' and put a gif image in as data. This is the only way I know how to get an image into the table. The problem I think with this is that it is a link to the gif on the HDD, and doesn't actually have the data in the table? Anyway, when I pull the data out of the table from zope, access puts a header and footer around the gif binary data, and hence a simple wont work to display the image. Has anyone else every pulled images from an access database. Will I have to write a method to strip the header and footer from the returned data before displaying the gif? terry. -- - Terry Kerr ([EMAIL PROTECTED]) Adroit Internet Solutions http://www.adroit.net/ 03 9563 4461 0414 938 124 ___ 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 Zope Weekly News
This week's ZWN covers the upcoming Open Source Convention, the forthcoming Zope 2.2, the PTK's further integration with the community and Zope.org's new community features and recent events. The opinions expressed in Zope Weekly news are solely the author's, and not the opinions of Digital Creations, The Zope Community at-large, or the Spanish Inquisition. The Zope Weekly News now has a "permanent home", http://www.zope.org/Documentation/ZWN. And Now For Something Completely Different: Open Source Convention Zope is going to have a strong showing at the "Open Source Convention", http://conferences.oreilly.com/oscon2000/, July 17-20, 2000 This conference should be pretty amazing. Guido von Rossum is giving a State of Python speech, Gregory Bendord is giving a futuristic keynote on the "Comfy Culture", and the Zope community will be there as well: o Ryan Huges will be "talking about worldpilot", http://www.oreillynet.com/pub/e_sess/725 o Paul Everitt will be talking about "the Zope-Mozilla Initiative", http://www.oreillynet.com/pub/e_sess/853 o Christopher Petrilli will be giving a tutorial on "Zope for developers", http://www.oreillynet.com/pub/w/python_tutorials.html based on the materials "taught at IPC8", http://www.zope.org/Members/petrilli/Presentations/ o In the "It's like Zope just not" department, Elaine Ashton is holding a Birds of a Feather to talk about how Zope's success isn't due to the inherent goodness of Python, and that "Perlers can do it too", http://conferences.oreilly.com/oscon2000/bofs/ Documentation Status -- by Amos Latteier I'd like to share some what Michel Pelletier and I have been doing to improve Zope documentation. * We conducted a poll to help us determine what was most needed. We found out that Zope docs are of middling quality and folks most want new user help. * We wrote an online help system for Zope and wrote help content for all management screens. Right now we are updating this content for Zope 2.2. The help system will ship with Zope 2.2 and an alpha is available right now. * We've started a Zope API documentation process. Right now there is an extensive Zope API documentation wiki on Zope.org. The fruits of this labor will be API docs that will ship with Zope in the online help system. Right now several API docs are complete and are included in the current 2.2 alpha. * We've overhauled Zope training materials and will make them available publicly in the next week or so. * We're still working on Zope Guides and References replacements. I think that the training materials will be quite useful for this effort. I hope to have Guide and Reference replacements done by the end of the summer. Zope Status -- by Brian Lloyd Summary o Lots of collector issues were completed for inclusion in 2.2 beta. o All of the hard thinking for the remaining todo list for beta 1 is basically done. Now its a race to the finish line :^) Last week highlights 20 collector issues were fixed last week in preparation for 2.2 beta, mostly issues that pre-date the 2.2 alpha release. Kudos to this week's MVPs who submitted patches and helped to diagnose bugs and test fixes: o Toby Dickenson contributed a patch to speed up Zope startup. o Itamar Shtull-Trauring and Chris Withers tracked down a problem with image caching that affected certain versions of Netscape browsers. o Phillip Eby helped uncover a problem with double aborting of objects registered with the transaction machinery. o Itamar also sent a patch for Netscape misfeature that recognizes Windows extended ISO Latin-1 characters as HTML delimiters which would have slipped by HTML quoting. o Anthony Baxter and Kevin Dangoor helped track down a problem with importing in the 2.2 alpha release. o Shane Hathaway did some much-needed work on the DateTime module. Many folks also participated in a discussion of a proposed Observer interface to support event-based designs (like email notification) in Zope. There is now a proposed set of Observer interfaces on the "interfaces Wiki", http://www.zope.org/Members/michel/Projects/Interfaces on Zope.org (and there was much rejoicing). Next week Finish up outstanding issues and get a 2.2.0 beta 1 release out. The outstanding issues to finish before the beta are: o Changing how ownership is handled for move / rename operations. Ownership info will not change for move or rename operations, and a new knob will likely be added to the "import" screen so you can choose to import objects with their existing ownership information intact. The online help for ownership will be updated accordingly. o Some basic hooks to support virtual hosting (a la SiteAccess) have been designed and will be added to allow product auth
Re: [Zope] Python and Zope Question
- Original Message - From: "Scott Burton" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, June 01, 2000 6:58 PM Subject: [Zope] Python and Zope Question > Major newbie here. I am wanting to create a python method that > iterates over items in a folder object in Zope. I am struggling with > how to access objects in the ZODB in python. Here's the script in the > simplest form. > for x in folderObject : > return x You need to put self as a parameter to your method and then do for x in self.folderObject.objectValues(): return x You use "self" to get at all of the stuff in the ZODB. Note that self is bound to the container of the PythonMethod. So, if you want the PM to work on the current folder, you can just do: for x in self.objectValues(): return x (Of course, this will just return the first value, but that was your example :) Kevin ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] Strange Zope behavior/Instability (Zope going down)
Thanks for the info. I'll be reading through it. In the meantime we're using a script that checks for http connectivity. If the site doesn't respond it restarts the server. --Rob -Original Message- From: Marcus Collins [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 01, 2000 1:24 AM To: '[EMAIL PROTECTED]' Cc: '[EMAIL PROTECTED]' Subject: RE: [Zope] Strange Zope behavior/Instability (Zope going down) > -Original Message- > From: Rob Sporleder [mailto:[EMAIL PROTECTED]] > Sent: 31 May 2000 21:55 > To: Jason Spisak > Cc: [EMAIL PROTECTED] > Subject: RE: [Zope] Strange Zope behavior/Instability (Zope > going down) > All of the python z2.py processes are still running. I > haven't checked if I can get to it using http://localhost. The > server is offsite. However, I did try an http get from the command > line and it did not respond. Hi! I had similar problems some time ago (which have not been entirely resolved -- I'm still trying to tie them down -- but now seem to be less frequent), which seemed to be related to particular page accesses. Are you able to identify from your logs any pages/methods that have repeatedly been called prior to Zope going down? See the Wiki at: http://www.zope.org/Members/tseaver/Projects/HighlyAvailableZope/TwistingInT heWindProblems and take a look at DiagnosingHangProblems for some suggestions. Perhaps you could post the details of your own situation there as well? hth, -- Marcus ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Python and Zope Question
On Thu, 1 Jun 2000, Scott Burton wrote: > for x in folderObject : > return x > > I am going to do things to the items once I have access to them, I > just can't figure out how to reference ZODB objects in Python. I have for x in folderObject.objectValues(['some_meta_type','some_other_type']): do stuff If the external method is in a folder, then 'self' is the folder object when the method gets called. --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] Python and Zope Question
Major newbie here. I am wanting to create a python method that iterates over items in a folder object in Zope. I am struggling with how to access objects in the ZODB in python. Here's the script in the simplest form. for x in folderObject : return x I am going to do things to the items once I have access to them, I just can't figure out how to reference ZODB objects in Python. I have done searches on the zope site and looked through the zdp but could not find anything. I am calling the method from a with no args. My assumption is that since this is a Python Method, it has access to the ODB structure without having to pass it anything. Am I wrong here? Thanks, Scott B. Voice: 661-325-0288 Business: www.launchpoint.net Weblog Portal: www.blogthis.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] ODBC connection to Oracle
We have had mixed results depending on the ODBC driver you use to make your DSN. Here is what I found. 1. Microsofts ODBC Driver for ORACLE on NT4.0, NT2000 -CREATE DSN -OK -ZOPE ZODBC -OK -ZSQL METHODS -OK 2. ORACLE ODBC DRIVER on NT 4.0, Especially NT2000 -CREATE DSN -OK -ZOPE ZODBC CONNECTION -OK Visually! On First Query it will break. -ZSQL METHODS -Broken When in doubt use the MICROSOFT DRIVER for ODBC! That is our rule. You will also find that this same problem exists in using ORACLE drivers when viewing databases via ACCESS. It will typically crash Access and potentially more. Theodore E. Patrick Ishophere.com - Indigo Networks -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 01, 2000 12:16 PM To: [EMAIL PROTECTED] Subject: [Zope] ODBC connection to Oracle Hi there, Has anyone tried connecting using ZODBC from a WinNT machine to an Oracle database? The ODBC connection works. But when I create a ZODBC connection from ODBC dsn, it doesn't. I give the connect string as DSN userid password as mentioned under ZODBC add screen... Any help? Thanks Babu http://vsbabu.csoft.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 ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Thread-safe PostgreSQL adaptor?
Oleg Broytmann wrote: > On Thu, 1 Jun 2000, Hannu Krosing wrote: >> True. The problem is that in some perverted fashion it seems to me that if >> I use a GPL library with something the whole thing should go GPL, i.e. my This was my impression of GPL too. I thought that's why the LGPL (?) was created. >No - just using the GPL'd adapter do not require you to distribute Zope > under GPL. The adapter is just a "plugin"; there was an explanation from > RMS that GPL'd plugins does not require to GPL the main program and vice > versa; there probably will be newer version of GPL (don't know how soon) > which will explain the plugin thingie in details. > >In short - only linking with GPL code "infects" your code with GPL. This is unclear, and sounds like hair splitting to me. What's the difference between linking and using a plugin? What happens when the plugin is a dynamically linked shared library? I haven't seen PoPy, but if it's a C library interface under Python (like Pygresql) the chances are good. Confusion reigns. Regards, Daryl Tester ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope on Windows NT
Luis, see: http://zope.nipltd.com/public/lists/zope-archive.nsf/47ba74c812dbc5dd8025687 f0024bb5f/341813706896c719802568e1007a5a9c?OpenDocument&Highlight=0,currentc ontrolset Which will probably mangle in the mailer, so if it don't work: goto http://zope.nipltd.com/public/lists/zope-archive.nsf/$$Search?OpenForm and search for currentcontrolset hth Phil [EMAIL PROTECTED] - Original Message - From: "Luis Cortes" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: 01 June 2000 23:18 Subject: [Zope] Zope on Windows NT > Hello, > > Does anybody know how to change the Port that Zope uses on Windows NT > when it is installed as a Service??? I know how to change it when it is > installed as standalone - but that doesn't work when I run it as a service. > > > Thanks for your help, > Luis. > > ___ > Zope maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) ___ 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] Zope on Windows NT
Hello, Does anybody know how to change the Port that Zope uses on Windows NT when it is installed as a Service??? I know how to change it when it is installed as standalone - but that doesn't work when I run it as a service. Thanks for your help, Luis. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] How do I detect in DTML when I'm in the management interface?
I have a ZClass that I would like to be able to create using the management interface and in DTML from the users end with the same DTML script. I believe I need something like this to get it to work: (if in management interface) (else) and create_my_zclass has this code in it: ... How do I create the first if else? Is there a better/easier way of doing this? __ Do You Yahoo!? Send instant messages & get email alerts with Yahoo! Messenger. http://im.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 )
Re: [Zope] Form POST Question (and a QUERY_STRING Q.)
> Is there a way for me to get the raw posted data and forward that > too via the RESPONSE object? What I ended up doing was following Zen's suggestion and creating an external method that basically does (not an exact quote; it's on another computer): def generateForm(self): outForm = [] for (name, value) in self.REQUEST.form: outForm.append ('' % (name, value) return string.join (outForm, '\n') It's a little more than that, but I don't have it in front of me. (this wouldn't deal with quotes right). I haven't run into the name="mynum:int" problem yet, but maybe that's just luck, or maybe it's just because of my particular forms. The bad part is that I don't know of any way to pass POST data on a redirect (anybody know how to do this, or is this impossible?), so for now I just have a form that's nothing but a Submit widget with all the other dat a hidden. You can of course change it all into GET data and just join them together using: '%s=%s' % (url_quote_plus(name), url_quote_plus(data)) and joinging with &, in which case you actually can do a redirect, but presumably someone made it POST for a reason, so I'm not going to mess with it. It's an inelegant solution and might not work for everything, but it's all I have for now! Andrew ___ 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] Proposal for mail-in to Zope
> Some alternatives we considered and didn't go for: > - write something in Zope to listen for SMTP connections, effectively > large portions of an MTA. This would be cool but painful. Providing a basic SMTP server is not at all difficult to do in Python. I did a cut-down one once as part of a test system, and extending it would be straightforward (the cut-downness was not in structure, just did not bother to implement the SMTP commands I did not need - the underlying design was a state-machine [natch!] - however one problem I did come across was that it was not possible to implement the state machine completely from the RFC, which contains ambiguities). Some potential troublespots in re-visiting this work: - error handling, if done properly, might cause some problems (the state machine helps a lot here, but I cannot guarantee that I did not miss something obvious) - emails nowadays can be very large, with MIME encoded movies and stuff. Each received email has to be stored somewhere - can we (would we want to?) reliably store this kind of data in the ZODB? > - pull mail from a POP or IMAP server. This had the downside that it > introduced polling into the system (slow) and also required something > to happen on a schedule, which doesn't happen in Zope yet. Funny you should mention this. I am considering moving my domain from the current ISP to a friend's server. One of my current ISP's services that I use is webmail, so I was looking at how this could be done after the move. Sending mail through a web interface is a doddle, but what about viewing received emails? I had got as far as realizing that something could be built on Python's support for POP3 - use POP3 to collect the headers of currently available messages, create a web page displaying them, with each entry linked to a page that would download (without deleting) an individual email. I think that my current ISP's webmail system must be doing something like this. So far it looks fairly straightforward to implement. Richard (who now realizes that he has to find that old Python SMTP server code - now I wonder where I put 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 )
Re: [Zope] Interbase / Cacheing - A thought
> Ian Sparks wrote: > > > > Had a thought that I wanted to share. > > > > Interbase has a feature known as "event alerts". In a trigger you can post > > "events" which are just fixed data strings e.g. "DataAdded" or > > "Insert_tblUsers". > > PostgreSQL has them too. > > It's not (afaik) supported by DB-API, but could be used in a DA that talks > to some lower level API. > They are supported by the TCL interface that comes with PostgreSQL (src/interfaces/libpgtcl in the PostgreSQL source tree) if you are looking for examples of how they work. (Search for listen and notify in pgtclCmds.c -- cary > > A client database connection can register to listen to these events. > > > > I don't know if any Zopeish Interbase access method supports this (ODBC > > doesn't to my knowledge) but it would be incredibly useful for synching > > cached database objects. Zope could hold a representation of the table data > > in cached objects for quick access. Each object could have one or more > > "event" methods which related to a database event. When the database adaptor > > received an event message from Interbase it could inform all objects with a > > matching event method (these methods would refresh their cached data with > > current values from the database). > > > > In this way database and Zope cache could be synced *without* having to poll > > the database at an interval. In all, a very efficient mechanism. > > > > Just an idea I wanted to put out there. > > Thanks for getting it out. > > I have been contemplating the same for PostgreSQL but have been too lazy to do > it myself ;) > > -- > Hannu > > --__--__-- > ___ 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] issue from this morning.
The problem is the order. Netscape apparently likes to see URLS like http://www.my.com/this.html#foo?var=data not http://www.my.com/this.html?var=data#foo It chokes on the first, and is happy with the 2nd. IE is happy with either. Any chance this can be checked in as a revision to the tree code to be tested and confirmed? PS - Which is the standard format of the two (as per ww3 or whatnot?) pk ___ 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] something missing in my Oracle setup?
I'm having the same kind of problem. This is my environment: RedHat Linux 6.1 Stronghold 2.4.2/Apache1.3.6 Zope 2.1.6 (running as PCGI) DCOracle 1.3.0 ZOracleDA 2.1.0 Oracle 8.1.6 (client with C-Pro environment installed) The environment is properly set: LD_LIBRARY_PATH is correct, ld.so.conf was properly midified and I've already run ldconfig. I've successfuly compiled the DCOracle product and tested it with success. But when I try to create a ZOracle connection object, the server gives me the following answer: "Internal Server Error - The server encountered an internal error or misconfiguration and was unable to complete your request". And here is the message I've found in the error log file: "[error] PCGI Error: [503 Service Unavailable] ((116) unable to connect, fd=4) Success". Does anybody know what is happening and how to solve this? TIA, Alexandre. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 31, 2000 10:44 AM To: [EMAIL PROTECTED] Subject: Re: [Zope] something missing in my Oracle setup? I wanted to thank Jens and Anthony for the pointers. I ended up doing the full server install. The only other thing required was to put $ORACLE_HOME/lib in my ld.so.conf and run ldconfig. Things seem to work fine now, though I haven't really hammered on DCOracle yet. Thanks again, -Justin ___ 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] ODBC connection to Oracle
Hi there, Has anyone tried connecting using ZODBC from a WinNT machine to an Oracle database? The ODBC connection works. But when I create a ZODBC connection from ODBC dsn, it doesn't. I give the connect string as DSN userid password as mentioned under ZODBC add screen... Any help? Thanks Babu http://vsbabu.csoft.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] ANN: Perl For Zope
On Wed, May 31, 2000 at 10:45:31PM +1200, Rodger Donaldson wrote: > the sheer, stupid *hatred* directed by a big > chunk of the list at anyone who doesn't draw and quarter perl > programmers on > sight That's an overstatement. > But if this list is representitive of the python > community - well, I don't need more idiots in my life. Oooo, now you're calling everyone an idiot. May I ask if you do this stuff for a living, or for fun? I do this for fun, and I intend to try Enhydra (Java), Mason (Perl), ACS (Tcl) and assorted other stuff. I don't let other people who use those stuff put me off. If I am doing this for a living, the type of people on the users' mailing list is just one (minor) factor in selecting the technology. Your response is typical of one from the Perl community. No wonder people on this list are up in arms over the idea of integrating Perl and Zope. They worry more people like you will turn up! My $0.02. Cheers. -- Ng Pheng Siong <[EMAIL PROTECTED]> * http://www.post1.com/home/ngps ___ 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] Linking to Mailing List Managers - Mailman and Zope
On Thu, 1 Jun 2000, Nils Kassube wrote: > Zope/E-Mail integration is something I'm very interested in doing as > part of my CS studies (What's the English word for "Studienarbeit"?). > However, my todo list of non-commercial projects is full, so it's > probably going to take some time to do something that's not paid for, > sigh, I should spend some time looking for companies here in Lübeck > or Hamburg open for new technology which is not based on Java... > > With management via Zope pages do you mean something like the > administration pages of GNU Mailman (written in Python)? > > http://www.gnu.org/software/mailman/mailman.html > http://www.list.org One of the first things zope exercises i did when learning zope, not tool long after coming to digital creations, was create a product that hooked up with the Mailman installation on zope.org. (One of the last things i did at my prior job, at CNRI, was to resurrect and revitalize the prototype Mailman, for use as the maillist manager on python.org.) I moved on to other things, and the MMRoster product may be way out of date - i don't even know if the mailman interfaces have changed from underneath, and i *know* that the zope ones have - but the product still may offer some useful clues about one way to hook up with mailman. I just uploaded a tarball of it to my members folder - see http://www.zope.org/Members/klm/MailmanStuff/MMRoster.tar.gz (I know ethan is interested in this topic, and barry warsaw, mailman's current maintainer and my old colleague/buddy, has also expressed interest, so i'm cc'ing them.) All this said, i'm spread too thin at the moment to be able to *do* much more than watch, maybe chime in, if stuff happens... Ken Manheimer [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] Z Search creates input fields with "width=30"?
Shouldn't the input fields created with Z Search include "size=30" instead of "width=30"? I'm using an older version of Zope so maybe this has been changed already? __ Do You Yahoo!? Send instant messages & get email alerts with Yahoo! Messenger. http://im.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 )
RE: [Zope] FW: news items
Zope Community, Mea culpa. My apologies on the mis-firing of the email address. The URL goes to a story written by Cameron Laird. I was updating the "News" at www.digicool.com and was cc'ing to Ethan Freman. --Gary Gary Graham Director, Sales/Marketing [EMAIL PROTECTED] Digital Creations -Original Message- From: Gary Graham [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 01, 2000 10:41 AM To: '[EMAIL PROTECTED]' Subject: [Zope] FW: http://lwn.net/2000/0601/a/zope-perl-paul.html> news ite ms ms Ethan, News items to add to Zope.org ... I am adding this to digicool.com, too I would do the same thing for http://www.oreillynet.com/pub/a/network/2000/05/31/ajuba.html?page=3 as well as http://lwn.net/2000/0601/a/zope-perl-paul.html --Gary ___ 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 with deleting / renaming a Folder
Hallo, I have a problem with folders. If I try to move or delete the folder following message appears. The error appears on all folders in the path "friatec/d/aws/web-dev/zope/doc/python" - Error Type: ValueError Error Value: Uncatalog of absent id 'friatec/d/aws/web-dev/zope/doc/python' Traceback (innermost last): File /usr/local/opt/Zope/server/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, line 214, in publish_module File /usr/local/opt/Zope/server/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, line 179, in publish File /usr/local/opt/Zope/server/Zope-2.1.6-src/lib/python/Zope/__init__.py, line 202, in zpublisher_exception_hook (Object: ApplicationDefaultPermissions) File /usr/local/opt/Zope/server/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, line 165, in publish File /usr/local/opt/Zope/server/Zope-2.1.6-src/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: manage_delObjects) File /usr/local/opt/Zope/server/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, line 102, in call_object (Object: manage_delObjects) File /usr/local/opt/Zope/server/Zope-2.1.6-src/lib/python/OFS/ObjectManager.py, line 401, in manage_delObjects (Object: ApplicationDefaultPermissions) File /usr/local/opt/Zope/server/Zope-2.1.6-src/lib/python/OFS/ObjectManager.py, line 273, in _delObject (Object: ApplicationDefaultPermissions) File /usr/local/opt/Zope/server/Zope-2.1.6-src/lib/python/OFS/ObjectManager.py, line 268, in manage_beforeDelete (Object: ElementWithAttributes) File /usr/local/opt/Zope/server/Zope-2.1.6-src/lib/python/OFS/ObjectManager.py, line 268, in manage_beforeDelete (Object: ElementWithAttributes) File /usr/local/opt/Zope/server/Zope-2.1.6-src/lib/python/OFS/ObjectManager.py, line 268, in manage_beforeDelete (Object: ElementWithAttributes) File /usr/local/opt/Zope/server/Zope-2.1.6-src/lib/python/OFS/ObjectManager.py, line 268, in manage_beforeDelete (Object: ElementWithAttributes) File /usr/local/opt/Zope/server/Zope-2.1.6-src/lib/python/OFS/ObjectManager.py, line 268, in manage_beforeDelete (Object: ElementWithAttributes) File /usr/local/opt/Zope/server/Zope-2.1.6-src/lib/python/OFS/ObjectManager.py, line 268, in manage_beforeDelete (Object: ElementWithAttributes) File /usr/local/opt/Zope/server/Zope-2.1.6-src/lib/python/Products/ZCatalog/CatalogAwareness.py, line 129, in manage_beforeDelete (Object: CatalogAware) File /usr/local/opt/Zope/server/Zope-2.1.6-src/lib/python/Products/ZCatalog/CatalogAwareness.py, line 186, in unindex_object (Object: CatalogAware) File /usr/local/opt/Zope/server/Zope-2.1.6-src/lib/python/Products/ZCatalog/ZCatalog.py, line 357, in uncatalog_object (Object: ElementWithAttributes) File /usr/local/opt/Zope/server/Zope-2.1.6-src/lib/python/Products/ZCatalog/Catalog.py, line 373, in uncatalogObject ValueError: (see above) --- Does anybody know the reason for this problem and a way to fix it. Thanks Harald ___ 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] [announce] MountedFileStorage product - mount multiple ZODBs.
I've bolted together a simple Product which allows you to mount sub-ZODB's through the zope management interface. http://www.zope.org/Members/anthony/software/MountedFileStorage/ (it's now up to version 0.01 :) It _requires_ an up-to-date CVS version of Zope. It won't work on 2.2a1. I'd expect it will work on 2.2, whenever that happens. Most of the credit for this goes to the guys at DC who did all the work - but any bugs are probably in my bit, not the bits they did. Anthony readme follows: Created by anthony. Last modified on 2000/06/01. Ok, so the DC guys have been talking about allowing multiple ZODB support, but I couldn't see a way to use it. A bit of trawling through the CVS and I found the guts of a MountedItem object which has now been removed. Using that as inspiration and a source of pointers, I've bolted together a really simple Product for mounting multiple ZODB files onto a Zope installation. You should also check out the MountedDatabases section of the ZODB Wiki. First of all, you need to be running a really really recent CVS version of Zope. 2.2alpha1 isn't good enough. Then install this product (it unpacks in lib/python/Products/MountedFileStorage). Sample usage: cd $zope/var ; cp Data.fs.in nifty.fs Select Mounted FileStorage from the product add list. For file put nifty.fs. Leave path blank, and put whee as the id. You've now got a copy of the default Zope install mounted. In the same session, add a new Mounted FileStorage, for the Path put in QuickStart/Outline. Leave id blank. You've now mounted the QuickStart/Outline folder from the mounted FS as Outline in the current folder. WARNING: This is really really untested stuff. It Works For Me. Not To Be Taken Internally. Do Not Come Crying To Me If It Breaks Your Zope Install. If you want to play with this stuff, you really should back up your Data.fs first. Security Issues: There probably are some. I've no idea what they might be. The product makes a really simple-minded effort to not allow badness through (any filename with a / or \ in it). Don't give access to the permission Mount FileStorages to anyone that you don't trust, though. Note that this includes anyone with Manager role on the system. Note also, though that you can only mount existing files that are in var/. ___ 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] Linking to Mailing List Managers
Ian Sparks wrote: > Ideally I'd like members of my portal site to be given a free email address > @, bouncing all mail to that address to their real email > address. Well, I'm not sure if I understand you correctly, but this has nothing to do with Majordomo or any Mailing List management software, because they don't provide e-mail accounts or forward-to-another-account features, software like sendmail does. > In a roles-based membership scheme it would also be nice to be able to send > email to @, so the email goes to all members with that role. Zope/E-Mail integration is something I'm very interested in doing as part of my CS studies (What's the English word for "Studienarbeit"?). However, my todo list of non-commercial projects is full, so it's probably going to take some time to do something that's not paid for, sigh, I should spend some time looking for companies here in Lübeck or Hamburg open for new technology which is not based on Java... With management via Zope pages do you mean something like the administration pages of GNU Mailman (written in Python)? http://www.gnu.org/software/mailman/mailman.html http://www.list.org Cheers, Nils -- [EMAIL PROTECTED] | [EMAIL PROTECTED] (preferred) [EMAIL PROTECTED] | [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] Problems with pcgi_wrapper.exe
> I am running Zope as a service under WinNT workstation. I am running it > behind "Personal Web Server". Problem is that pcgi_wrapper.exe seems to > hang. If I access a page with a large graphic on it I might get the page but > the graphic will not come but it will still try loading it. Anyone had a > similar problem? > There seem to be a variety of reasons for pgi_wrapper to hang on NT. In my case, running behind Netscape it hangs when someone requests an objects and then closes the connection before the object is sent back from pcgi_wrapper to the Netscape server. In this situation it appears that Netscape fails to close the pipe, but never reads from it. I think there may also be a situation where the NT version can hang if Zope throws an exception within its handling of the pcgi request (pcgiReadSocket checks its result only for SOCKET_ERROR whereas pcgiRead checks for any error or for a 0 return). When Zope throws an exception it can close its socket without writing the data and the recv call then repeatedly returns 0. You should be able to tell if this is the problem because the hung pcgi_wrapper will be consuming all available CPU. If it hangs because the output pipe is closed it consumes no CPU. What I can offer anyone who is having problems with pcgi_wrapper on NT is a specially patched version that shoots itself after it has been running for 1 hour (or any other delay if you recompile it). As a bonus, when it does shoot itself it writes the the pcgi logfile a message telling you on which line it hung. Unfortunately (confession time) I don't seem to have saved a copy of the source for the version that prints out the line number, just the binary. I do have source though for the version that shoots itself, but doesn't tell you how far it got. I have uploaded the relevant files to http://www.zope.org/Members/Duncan/pcgimods -- Duncan Booth [EMAIL PROTECTED] int month(char *p){return(124864/((p[0]+p[1]-p[2]&0x1f)+1)%12)["\5\x8\3" "\6\7\xb\1\x9\xa\2\0\4"];} // Who said my code was obscure? http://dales.rmplc.co.uk/Duncan ___ Zope 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] CHAT
Ehm, so soon Zope marry Midgard project? :))) who will be children? http://www.midgard-project.org/ regards, Vitaly. - Original Message - From: Gonçalo Gomes To: [EMAIL PROTECTED] Sent: Thursday, June 01, 2000 2:49 PM Subject: [Zope] CHAT Silver_Surfer: how do you see the future of Zope fighting against PHP space on the web? Jim: I don't know much (enough) about PHP, but from what I vaguely know, PHP methods seem like a logical step. this answer was done to my question (i am lucipher) and i asked "how do you define zope and php?" BYE! ___ 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] ZopeDA Event Notification, was: Interbase / Cacheing
Regarding the implementation of custom functionality in PostgreSQL, here's an "overview" from the PostgreSQL Programmer's Guide: "How Extensibility Works Postgres is extensible because its operation is catalog-driven. If you are familiar with standard relational systems, you know that they store information about databases, tables, columns, etc., in what are commonly known as system catalogs. (Some systems call this the data dictionary). The catalogs appear to the user as classes, like any other, but the DBMS stores its internal bookkeeping in them. One key difference between Postgres and standard relational systems is that Postgres stores much more information in its catalogs -- not only information about tables and columns, but also information about its types, functions, access methods, and so on. These classes can be modified by the user, and since Postgres bases its internal operation on these classes, this means that Postgres can be extended by users. By comparison, conventional database systems can only be extended by changing hardcoded procedures within the DBMS or by loading modules specially-written by the DBMS vendor. Postgres is also unlike most other data managers in that the server can incorporate user-written code into itself through dynamic loading. That is, the user can specify an object code file (e.g., a compiled .o file or shared library) that implements a new type or function and Postgres will load it as required. Code written in SQL are even more trivial to add to the server. This ability to modify its operation "on the fly" makes Postgres uniquely suited for rapid prototyping of new applications and storage structures." That last sentence tells much of the story. PostgreSQL was originally developed as a test bed for experiments in manipulating both tabular and non-tabular data. As such, significant effort has been devoted to providing an extensible toolkit, to meet the requirements of discoveries arising from an experimental environment. In PostgreSQL, the limit to flexibility seems to lie more with the user than the system! Later, Jerry S. ___ 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] FW: news itemsms
Ethan, News items to add to Zope.org ... I am adding this to digicool.com, too I would do the same thing for http://www.oreillynet.com/pub/a/network/2000/05/31/ajuba.html?page=3 as well as http://lwn.net/2000/0601/a/zope-perl-paul.html --Gary -Original Message- From: Paul Everitt Sent: Thursday, June 01, 2000 9:21 AM To: Gary Graham Subject: FW: http://lwn.net/2000/0601/a/zope-perl-paul.html> Same drill: 1) Send a note to [EMAIL PROTECTED] with a quick FYI. 2) Create a Link object on Zope.org. 3) Add to digicool.com home page. --Paul -Original Message- From: Cameron Laird [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 01, 2000 7:50 AM To: [EMAIL PROTECTED] Subject: http://lwn.net/2000/0601/a/zope-perl-paul.html> Good writing. Maybe I made your world sound too rosy in http://www.oreillynet.com/pub/a/network/2000/05/31/ajuba.html>; in any case, it's out there, and the ORA PR machine should soon be spreading the word. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Strange Zope behavior/Instability
Hi, >For reasons unknown we lost http connectivity to our Zope server three times >last night. I've checked the http logs and, as I suspected, didn't find >anything unusual around the time we lost connectivity. The Python processes >are still running and everything looks normal except for the connectivity >problem. Does anybody have any idea what might be causing this? I haven't >found anything. [snip] >operating system: >Linux 2.2.12-20smp (Redhat 6.1) We had something similar on a number of Red Hat Linux boxes we run (both single and multiprocessor). The machine would become uncommunicative for a while and then magically come back. No apparent reasons why, no logs, the kind of thing that makes you doubt your sanity. The solution was to replace the 3Com ethernet card driver with the latest version (I got it from ftp://cesdis.gsfc.nasa.gov/pub/linux/drivers/3c59x.c). You'll need the kernel source, replace the 3c59x.c file with the latest one. Then like "make modules" and then copy the resulting 3c59x.o file into /lib/modules/ directory). Reboot Problem went away for us, machine nice and stable. Don't know the detail around what the problem was or why this solves it. Simon -- - My opinions are my own, NIP's opinions are theirs -- Simon J. Coles Email: [EMAIL PROTECTED] New Information Paradigms Work Phone: +44 1344 753703 http://www.nipltd.com/ Work Fax: +44 1344 753742 === Life is too precious to take seriously === ___ 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] The funny _.None,_ feature in DTML kind of question
I must admit that it was a bit too prompt reply by me:) - I guess that _.None is used almost always - I do not know any uses for values other than _.None, but the following exerpt from sources of Zope 2.1.6 can get some hints: DT_String.py: (afaik module from which all dtml methods inherit __call__ ) def __call__(self,client=None,mapping={},**kw): '''\ Generate a document from a document template. The document will be generated by inserting values into the format string specified when the document template was created. Values are inserted using standard python named string formats. The optional argument 'client' is used to specify a object containing values to be looked up. Values will be looked up using getattr, so inheritence of values is supported. Note that names beginning with '_' will not be looked up from the client. The optional argument, 'mapping' is used to specify a mapping object containing values to be inserted. Values will be inserted from one of several sources. The sources, in the order in which they are consulted, are: o Keyword arguments, o The 'client' argument, o The 'mapping' argument, o The keyword arguments provided when the object was created, and o The 'mapping' argument provided when the template was created ''' so client part provides some more indirection than simple "_" mapping, which is, as Michel Pelletier wrote in the letter I quoted, "the current DTML namespace"... also in DTMLDocument.py: def __call__(self, client=None, REQUEST={}, RESPONSE=None, **kw): """Render the document given a client object, REQUEST mapping, Response, and key word arguments.""" kw['document_id'] =self.id kw['document_title']=self.title if hasattr(self, 'aq_explicit'): bself=self.aq_explicit else: bself=self if client is None: # Called as subtemplate, so don't need error propigation! r=apply(HTML.__call__, (self, bself, REQUEST), kw) if RESPONSE is None: return r return decapitate(r, RESPONSE) r=apply(HTML.__call__, (self, (client, bself), REQUEST), kw) if type(r) is not type(''): return r if RESPONSE is None: return r hh=RESPONSE.headers.has_key if not (hh('content-type') or hh('Content-Type')): if self.__dict__.has_key('content_type'): c=self.content_type else: c, e=guess_content_type(self.__name__, r) RESPONSE.setHeader('Content-Type', c) return r seems like client is supplied only when called over the http, not as a method inside a method(???) - Original Message - From: "Shalabh Chaturvedi" <[EMAIL PROTECTED]> > > Reading that left me a bit confused because here you say (and I have read > elsewhere too) that method is passed client=_.None. I thought that the client > should be the object on which the dtml method 'operates'. So how does the dmtl > method access the attributes of the object it is called upon? Is it because the > namespace object '_' has the namespace of the object on top? Hmm... what do you mean by method operatind on some object? I thought that in dtml "methods" are kind of an object themselves... so e.g. they inherit properties of their containers just because those attributes are in a namespace. (the only exclusion here could be methods of ZClasses) > > Any example of where the client parameter would be useful? > Maybe (I didn't look into the code - I am not a python/C wizard, especially when it comes to python classes defined in C programs :) ) those client settings are used in Zclasses? i.e. class as an object is passed in that client argument to all methods of its instances... It is most likely what could be called "methods operating on objects" in dtml Regards, Vitaly ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] Form POST question (and a QUERY_STRING Q.)
Hi, There was a thread a week or so ago about passing POSTed variables after authenticating, some of which will be useful -- see the archived message, suggestions and caveats at: http://zope.nipltd.com/public/lists/zope-archive.nsf/47ba74c812dbc5dd8025687 f0024bb5f/3e46f2835c820eae802568eb002c802a?OpenDocument Regarding your second question, REQUEST.QUERY_STRING works for me using Zope; maybe someone else has some pointers regarding its use in "the old bobo fashion" with which I'm not too familiar. hth, -- Marcus > -Original Message- > From: Yosef Gold [mailto:[EMAIL PROTECTED]] > Sent: 01 June 2000 12:50 > To: [EMAIL PROTECTED] > Subject: [Zope] Form POST question (and a QUERY_STRING Q.) > > > I use Zope in the old bobo fashion. I have a homegrown session > management class that I use. When a session is idle for a long > while, I ask the user for his password again before allowing him to > continue. Generally, I then use the URL from the REQUEST object and > RESPONSE.redirect() to send him where he was trying to go after he > reenters his password (he never got there because I gave him a > session timeout screen instead). This works well except in one > case. If a user submits a form that uses POST to send it's data, I > am not forwarding the posted data and so I get a Zope error that a > parameter is missing. > > Is there a way for me to get the raw posted data and forward that too > via the RESPONSE object? > > A seperate small side question. I thought that all the paremeters > after the "?" in an URL or a submitted form (using GET) are put into > the QUERY_STRING variable within the REQUEST object. I don't see > this variable there at all. Can someone explain when/where this > variable is set/sent . > > > Thanks, > Yosef > > -- > -- > --- > Yosef Gold ([EMAIL PROTECTED]) > -- > -- > --- > > > > ___ > Zope maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) > ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] CHAT
Silver_Surfer: how do you see the future of Zope fighting against PHP space on the web? Jim: I don't know much (enough) about PHP, but from what I vaguely know, PHP methods seem like a logical step. this answer was done to my question (i am lucipher) and i asked "how do you define zope and php?" BYE!
Re: [Zope] Interbase / Cacheing - A thought
Hannu, Does PostgresSQL allow you to have dynamic events? By this I mean can you do things like : PostEvent "Update_tblUsers_Record_" + new.RecordID; I believe that in Interbase the events are compiled into the trigger, not interpreted at Runtime so you can't have an Interbase event alert you to a change in a particular record, only that a change has occurred on a table. Coming from a RDBMS background myself I'd prefer to see RDBMS integration be tighter to Zope - properties etc being stored in the database where appropriate. For reasons of speed you don't want to have to go to the DB each time you want a property but having a data-aware object which knows when to update itself would solve this problem nicely. It should also help with load-balancing and failover where you could have a cluster of Zope instances all working on the same monster DB, all being kept in sync. via the event alerter mechanism. Just my thoughts. - Ian. - Original Message - From: "Hannu Krosing" <[EMAIL PROTECTED]> To: "Ian Sparks" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, June 01, 2000 11:28 AM Subject: Re: [Zope] Interbase / Cacheing - A thought Ian Sparks wrote: > > Had a thought that I wanted to share. > > Interbase has a feature known as "event alerts". In a trigger you can post > "events" which are just fixed data strings e.g. "DataAdded" or > "Insert_tblUsers". PostgreSQL has them too. It's not (afaik) supported by DB-API, but could be used in a DA that talks to some lower level API. > A client database connection can register to listen to these events. > > I don't know if any Zopeish Interbase access method supports this (ODBC > doesn't to my knowledge) but it would be incredibly useful for synching > cached database objects. Zope could hold a representation of the table data > in cached objects for quick access. Each object could have one or more > "event" methods which related to a database event. When the database adaptor > received an event message from Interbase it could inform all objects with a > matching event method (these methods would refresh their cached data with > current values from the database). > > In this way database and Zope cache could be synced *without* having to poll > the database at an interval. In all, a very efficient mechanism. > > Just an idea I wanted to put out there. Thanks for getting it out. I have been contemplating the same for PostgreSQL but have been too lazy to do it myself ;) -- Hannu ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: puzzling behaviour!
"Patrick J.M. Keane" wrote: > This is REALLY weird. > > I have a in a DIV panel (there are others). If I expand any > branch of the tree, all of the javascript (and imagemaps, and everything > else in other div panels become disabled (in Netscape 4.7 under linux). So, the answer has SOMETHING to do with the #whatever= that trails at the end of the URL. When this is removed, all is well. Is this just a HREF anchor jump? The answer might possibly be for me to eliminate it from my python tree code, unless it serves some other purpose (not serving a purpose for me, these are small trees). So, am I wrong to think you can use anchors in a tag? I would assume so, but Netscape does render DIVs in a sort of bizzare way, so perhaps you cannot. In which case, this has nothing to do with zope, but more to do with Netscape. Well, that sucks. :) Anyway to work-around this within the code by modifying tree-s or e or c? I'd like to have a fix so that if you click on a [+] you get a URL back with no trailing #placefinder. pk ___ 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] Interbase / Cacheing - A thought
Ian Sparks wrote: > > Had a thought that I wanted to share. > > Interbase has a feature known as "event alerts". In a trigger you can post > "events" which are just fixed data strings e.g. "DataAdded" or > "Insert_tblUsers". PostgreSQL has them too. It's not (afaik) supported by DB-API, but could be used in a DA that talks to some lower level API. > A client database connection can register to listen to these events. > > I don't know if any Zopeish Interbase access method supports this (ODBC > doesn't to my knowledge) but it would be incredibly useful for synching > cached database objects. Zope could hold a representation of the table data > in cached objects for quick access. Each object could have one or more > "event" methods which related to a database event. When the database adaptor > received an event message from Interbase it could inform all objects with a > matching event method (these methods would refresh their cached data with > current values from the database). > > In this way database and Zope cache could be synced *without* having to poll > the database at an interval. In all, a very efficient mechanism. > > Just an idea I wanted to put out there. Thanks for getting it out. I have been contemplating the same for PostgreSQL but have been too lazy to do it myself ;) -- Hannu ___ 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: Zope digest, Vol 1 #810 - 56 msgs
Luis Cortes <[EMAIL PROTECTED]> writes: > I'm trying HomeSite HTML Editor - which is really slick for > somethings. > I was wondering if there was some easy way to turn off the > mangling of dtml tags when switching between design view and edit > view??? HomeSite is indeed a wonderful program! Very extensible, you can even teach it about DTML within reason. Unfortunately "Design View" uses an embedded Microsoft HTML editing control (cousin of FrontPage Express) that is NOT wonderful and not under Allaire/HomeSite's supervision. That's why they have options to "repair" your HTML after visiting Design View. :) They only put it in there so they could offer some sort of WYSIWYG as a selling point against other packages. Most of us turn it off. If you want another DTML-teachable editor that does WYSIWYG right, try Dreamweaver. ___ 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] puzzling behaviour!
This is REALLY weird. I have a in a DIV panel (there are others). If I expand any branch of the tree, all of the javascript (and imagemaps, and everything else in other div panels become disabled (in Netscape 4.7 under linux). I haven't tried it on IE, but this is rather distressing! Any ideas why that might be? PK ___ 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] The funny _.None,_ feature in DTML kind of question
There is some more information at http://www.zope.org/Documentation/How-To/AdvancedDTML Look for the section "DTML Calling Arguments". Reading that left me a bit confused because here you say (and I have read elsewhere too) that method is passed client=_.None. I thought that the client should be the object on which the dtml method 'operates'. So how does the dmtl method access the attributes of the object it is called upon? Is it because the namespace object '_' has the namespace of the object on top? Any example of where the client parameter would be useful? Thanks, Shalabh - Original Message - From: Vitaly Osipov <[EMAIL PROTECTED]> To: Johan Carlsson <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, June 01, 2000 3:50 PM Subject: Re: [Zope] The funny _.None,_ feature in DTML kind of question > Everything is more or less simple - when you invoke method by meth1> - that "mapping" _ and "client" _.None are passed automagically :) > > when you invoke method with explicit arguments like , > you have to pass those two explicitly like > > details are here: > > http://lists.zope.org/pipermail/zope/2000-January/017687.html > > - Original Message - > From: "Johan Carlsson" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Thursday, June 01, 2000 12:43 AM > Subject: [Zope] The funny _.None,_ feature in DTML kind of question > > > > Hi, > > This feature really bugs me so I thought I > > write a Tips (or HOWTO). But I need some help. > > (Also I believe it's documented somewhere, but > > I cant figure out where...) > > > > When calling the a DTML-method the second time > > in a row the namespace just disapears. > > > > Using _.None and _ as begining arguments make > > it all work again. > > > > The questions are: > > -Why does DTML act like this, is there a logical explanition? > > -Where is this documented? (I know I say it somewhere) > > -What would be the best way to name and categorise this "feature". > > > > Best Regards, > > Johan Carlsson > > > > > > If you understand my brief problem description, > > here's a scenario: > > > > In /folder1 > > there is three DTML-methods: meth1, meth2 > > In /folder1/folder2 > > there is a fourth DTML-method: meth3 > > > > /folder1/meth1: > > #changes the namespace > ># works just fine > > > > > > /folder1/meth2: > >#doesn't work > > > > /folder1/folder2/meth3: > > # or something useful like hello foobar > > > > > > Solution: > > > > In /folder1 > > there is three DTML-methods: meth1, meth2 > > In /folder1/folder2 > > there is a fourth DTML-method: meth3 > > > > /folder1/meth1: > > #changes the namespace > ># works just fine > > > > > > /folder1/meth2: > >#works like a working thing > > > > /folder1/folder2/meth3: > >#or something useful like hello foobar (oh, > it the same...) > > > > > > > > ___ > > 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 )
[Zope] Interbase / Cacheing - A thought
Had a thought that I wanted to share. Interbase has a feature known as "event alerts". In a trigger you can post "events" which are just fixed data strings e.g. "DataAdded" or "Insert_tblUsers". A client database connection can register to listen to these events. I don't know if any Zopeish Interbase access method supports this (ODBC doesn't to my knowledge) but it would be incredibly useful for synching cached database objects. Zope could hold a representation of the table data in cached objects for quick access. Each object could have one or more "event" methods which related to a database event. When the database adaptor received an event message from Interbase it could inform all objects with a matching event method (these methods would refresh their cached data with current values from the database). In this way database and Zope cache could be synced *without* having to poll the database at an interval. In all, a very efficient mechanism. Just an idea I wanted to put out there. - Ian Sparks. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Form POST question (and a QUERY_STRING Q.)
I use Zope in the old bobo fashion. I have a homegrown session management class that I use. When a session is idle for a long while, I ask the user for his password again before allowing him to continue. Generally, I then use the URL from the REQUEST object and RESPONSE.redirect() to send him where he was trying to go after he reenters his password (he never got there because I gave him a session timeout screen instead). This works well except in one case. If a user submits a form that uses POST to send it's data, I am not forwarding the posted data and so I get a Zope error that a parameter is missing. Is there a way for me to get the raw posted data and forward that too via the RESPONSE object? A seperate small side question. I thought that all the paremeters after the "?" in an URL or a submitted form (using GET) are put into the QUERY_STRING variable within the REQUEST object. I don't see this variable there at all. Can someone explain when/where this variable is set/sent . Thanks, Yosef --- Yosef Gold ([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] Thread-safe PostgreSQL adaptor?
On Thu, 1 Jun 2000, Hannu Krosing wrote: > True. The problem is that in some perverted fashion it seems to me that if > I use a GPL library with something the whole thing should go GPL, i.e. my Yes - that's why I love GPL :) > use of ZPoPyDA could make me obliged to distribute Zope under GPL, which I > of course can't do and thus i start feeling scizophrenic ;) No - just using the GPL'd adapter do not require you to distribute Zope under GPL. The adapter is just a "plugin"; there was an explanation from RMS that GPL'd plugins does not require to GPL the main program and vice versa; there probably will be newer version of GPL (don't know how soon) which will explain the plugin thingie in details. In short - only linking with GPL code "infects" your code with GPL. Oleg.(All opinions are mine and not of my employer) Oleg Broytmann Foundation for Effective Policies [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Q: Link status/checking
Hi! I am working on such project for a few years. From time to time I make an announcement in comp.lang.python, subject "Bookmarks database and Internet robot". This is a copy of my latest announce: http://www.deja.com/=dnc/getdoc.xp?AN=626677041 It my hobby project, in pure Python. Wanna cooperate on this? On Thu, 1 Jun 2000, [Windows-1252] Jørgen Skogstad wrote: > I was wondering about a few points I havn't seen any references > to. Are there any implementations in Zope that can verify the > validity of an url? That is; > > 1) A link database is generated .. and should be maintained. > 2) A process should be run at least once a week to check the >validity of links in the database. > 3) If the link is not "valid" .. it sets a tag in the db which >says it's untrusted .. which again could show that in the >link listed on the web through Zope. > 4) .. and if it's untrusted for N runs .. it is removed. > > .. have anyone looked into that? .. and anyone made any conclusions > as to how one can solve that? Oleg.(All opinions are mine and not of my employer) Oleg Broytmann Foundation for Effective Policies [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Thread-safe PostgreSQL adaptor?
Oleg Broytmann wrote: > > Hi! > > On Thu, 1 Jun 2000, Hannu Krosing wrote: > > AFAIK this is the only DA with GPL license. > > Both Zope and python have much freer licenses making GPL probably > > a poor choice if you "aims to replace the current ZPygresql DA". > > > > What is the reason behind GPL'ing it ? > >Aha, well, the GPL-vs-BSD-vs-MPL-vs...! :))) > >As PostgreSQL mailing list member you (like me) saw these debates many > times. I don't think we need to continue the flame here :) True. The problem is that in some perverted fashion it seems to me that if I use a GPL library with something the whole thing should go GPL, i.e. my use of ZPoPyDA could make me obliged to distribute Zope under GPL, which I of course can't do and thus i start feeling scizophrenic ;) >There are people who loke BSD-style licensing, and there are GPL > devotee. In this far-from-ideal world it is hard to say what is more free. > I, personnaly, love GPL and publish whatever I can under GPL. I personally don't have anything against (L)GPL either, its just my gut feeling that having _multiple_ potentially clashing licenses inside what should be ideally one package is confusing as the interactions of licenses can't be understood by noone ;) -- Hannu ___ 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] ZPoPyDA license (was: [Zope] Thread-safe PostgreSQL adaptor?)
Scavenging the mail folder uncovered Andrew Kenneth Milton's letter: > +[ Federico Di Gregorio ]- > | > | the only good reason for changing the license would be Digital Creations > | asking us to do so because they want to include ZPoPyDA in one of their > | products but don't want to be binded by the gpl. we are using zope and > | making money out of it and i don't like if they can't do the same with > | out work. > > You don't have to change the license for this. > > As the author you can provide different licenses to different people. > So if DC wanted to you alter the license you could license the code to > them and only them under a different license to everyone else. yes i know. thank you very much anyway, federico -- Federico Di Gregorio MIXAD LIVE System Programmer [EMAIL PROTECTED] Debian GNU/Linux Developer & Italian Press Contact[EMAIL PROTECTED] Those who do not study Lisp are doomed to reimplement it. Poorly. -- from Karl M. Hegbloom .signature ___ 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] The funny _.None,_ feature in DTML kind of question
Everything is more or less simple - when you invoke method by - that "mapping" _ and "client" _.None are passed automagically :) when you invoke method with explicit arguments like , you have to pass those two explicitly like details are here: http://lists.zope.org/pipermail/zope/2000-January/017687.html - Original Message - From: "Johan Carlsson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, June 01, 2000 12:43 AM Subject: [Zope] The funny _.None,_ feature in DTML kind of question > Hi, > This feature really bugs me so I thought I > write a Tips (or HOWTO). But I need some help. > (Also I believe it's documented somewhere, but > I cant figure out where...) > > When calling the a DTML-method the second time > in a row the namespace just disapears. > > Using _.None and _ as begining arguments make > it all work again. > > The questions are: > -Why does DTML act like this, is there a logical explanition? > -Where is this documented? (I know I say it somewhere) > -What would be the best way to name and categorise this "feature". > > Best Regards, > Johan Carlsson > > > If you understand my brief problem description, > here's a scenario: > > In /folder1 > there is three DTML-methods: meth1, meth2 > In /folder1/folder2 > there is a fourth DTML-method: meth3 > > /folder1/meth1: > #changes the namespace ># works just fine > > > /folder1/meth2: >#doesn't work > > /folder1/folder2/meth3: > # or something useful like hello foobar > > > Solution: > > In /folder1 > there is three DTML-methods: meth1, meth2 > In /folder1/folder2 > there is a fourth DTML-method: meth3 > > /folder1/meth1: > #changes the namespace ># works just fine > > > /folder1/meth2: >#works like a working thing > > /folder1/folder2/meth3: >#or something useful like hello foobar (oh, it the same...) > > > > ___ > 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] ZPoPyDA license (was: [Zope] Thread-safe PostgreSQL adaptor?)
+[ Federico Di Gregorio ]- | | the only good reason for changing the license would be Digital Creations | asking us to do so because they want to include ZPoPyDA in one of their | products but don't want to be binded by the gpl. we are using zope and | making money out of it and i don't like if they can't do the same with | out work. You don't have to change the license for this. As the author you can provide different licenses to different people. So if DC wanted to you alter the license you could license the code to them and only them under a different license to everyone else. You have that right as the author. (I'm not a GPL fan, but, its best for people to know their options). -- Totally Holistic Enterprises Internet| P:+61 7 3870 0066 | Andrew Milton The Internet (Aust) Pty Ltd | F:+61 7 3870 4477 | ACN: 082 081 472 | M:+61 416 022 411 | Carpe Daemon PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] KeyError since installing Squishdot 0.4.0
On Thu, 1 Jun 2000, David Trudgett wrote: > Since I installed Squishdot 0.4.0 (yesterday) on Zope 2.1.6 (under Red Hat > Linux) I've been getting KeyErrors when clicking on an article's topic > image, which uses an URL like this: > > http://myserver/Zope/testsquish/search?subject=Squishdot&op=articles Yep, sorry, this was a bug introduced in the move to ZCatalog. The workaround is to append &body= to the above URL. There's also a patch in the [EMAIL PROTECTED] archives. This will be fixed in 0.4.1 due on Monday once I get back from my holiday :-) 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] textindex problem
Hi I have my own zClass I catalog in "Catalog" my add-method does a reindex_object and everything works fine when I index the 2 properties "title" and "country" as Keyindex or FieldIndex. But when I index em as TextIndex, I cannot find em anymore. e.g. when my property country is "italy" and I search for "Italy" in Fieldindex I get the result, in TextIndex not Any ideas? TIA phidu
[Zope] Q: Link status/checking -
Kindest, I was wondering about a few points I havn't seen any references to. Are there any implementations in Zope that can verify the validity of an url? That is; 1) A link database is generated .. and should be maintained. 2) A process should be run at least once a week to check the validity of links in the database. 3) If the link is not "valid" .. it sets a tag in the db which says it's untrusted .. which again could show that in the link listed on the web through Zope. 4) .. and if it's untrusted for N runs .. it is removed. .. have anyone looked into that? .. and anyone made any conclusions as to how one can solve that? I am not that familiar with Python .. but I might be interested in generating such an engine.. based on Zope / mySql of some sorts. .. Perl support would really make me happy right now! Have a real nice day. Kindest, Jørgen Skogstad ___ 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] Ordered list
Marcio Moreira wrote: > My question is: How can I have an ordered listing of all popular names of all > plants (in other words, how can I have an ordered listing of data stored in >"lines"-type properties on diferent class instances)? You could catalog them in a ZCatalog (make them catalogaware) and make this property a meta-data column. -- Itamar S.T. [EMAIL PROTECTED] "It don't get thingier than that!" ___ 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] ZPoPyDA license (was: [Zope] Thread-safe PostgreSQL adaptor?)
hi, Hannu Krosing <[EMAIL PROTECTED]> wrote: > > This database adapter is released under the GPL Licence. > > AFAIK this is the only DA with GPL license. > Both Zope and python have much freer licenses making GPL probably > a poor choice if you "aims to replace the current ZPygresql DA". > > What is the reason behind GPL'ing it ? we strongly belive in free software. > If you you hope to make money selling commercial licences I doubt it will > work. absolutely! it will never work! if you go for free software you have to make money on other things than licenses. that's why we choosed the gpl. > Many peaople are afraid of contaminating their work with smallish GPL products > and would rather use inferior but free products. many people try to *speculate* by using free software without giving back to the community. imho a license that allows that is a bad license. the only good reason for changing the license would be Digital Creations asking us to do so because they want to include ZPoPyDA in one of their products but don't want to be binded by the gpl. we are using zope and making money out of it and i don't like if they can't do the same with out work. but, for now, both PoPy and ZPoPyDA will remain GPL. ciao, federico -- Federico Di Gregorio MIXAD LIVE System Programmer [EMAIL PROTECTED] Debian GNU/Linux Developer & Italian Press Contact[EMAIL PROTECTED] All programmers are optimists. -- Frederick P. Brooks, Jr. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Thread-safe PostgreSQL adaptor?
Hi! On Thu, 1 Jun 2000, Hannu Krosing wrote: > AFAIK this is the only DA with GPL license. > Both Zope and python have much freer licenses making GPL probably > a poor choice if you "aims to replace the current ZPygresql DA". > > What is the reason behind GPL'ing it ? Aha, well, the GPL-vs-BSD-vs-MPL-vs...! :))) As PostgreSQL mailing list member you (like me) saw these debates many times. I don't think we need to continue the flame here :) There are people who loke BSD-style licensing, and there are GPL devotee. In this far-from-ideal world it is hard to say what is more free. I, personnaly, love GPL and publish whatever I can under GPL. Oleg.(All opinions are mine and not of my employer) Oleg Broytmann Foundation for Effective Policies [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] security issues
>>> Ragnar Beer wrote > Howdy everyone! > > I will soon have a Zope-site ready to go online. How can I make shure > that I did everything (concerning Zope) to stop intruders? Where can > I find information about protecting a Zope-site? Has anyone had > security problems so far? Easiest (most brutal?) fix I've found - hide Zope behind an Apache, and prohibit access to any URLs of the form .*/manage.* If you don't need to use basic auth to the Zope, then use a rewrite rule to strip out any Authentication headers in the requests. Anthony ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Thread-safe PostgreSQL adaptor?
Hannu Krosing wrote: > > [EMAIL PROTECTED] wrote: > > > > try also, > > > > ZPoPyDA > > > > ZPoPyDA is a *stable* Postgresql Database Adapter for Zope based on our driver >PoPy. > > It aims to replace the current ZPygresql DA. > > > > This database adapter is released under the GPL Licence. > > AFAIK this is the only DA with GPL license. and only ODBC driver has LGPL license (the "Lesser" or "Library" GPL which leaves you much more freedom than the stock GPL). > Both Zope and python have much freer licenses making GPL probably > a poor choice if you "aims to replace the current ZPygresql DA". IMHO, if you want it to fly you should either use PostgreSQL or Python license for PoPy and either Python or Zope license for ZPoPyDA. -- Hannu ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] Strange Zope behavior/Instability (Zope going down)
> -Original Message- > From: Rob Sporleder [mailto:[EMAIL PROTECTED]] > Sent: 31 May 2000 21:55 > To: Jason Spisak > Cc: [EMAIL PROTECTED] > Subject: RE: [Zope] Strange Zope behavior/Instability (Zope > going down) > All of the python z2.py processes are still running. I > haven't checked if I can get to it using http://localhost. The > server is offsite. However, I did try an http get from the command > line and it did not respond. Hi! I had similar problems some time ago (which have not been entirely resolved -- I'm still trying to tie them down -- but now seem to be less frequent), which seemed to be related to particular page accesses. Are you able to identify from your logs any pages/methods that have repeatedly been called prior to Zope going down? See the Wiki at: http://www.zope.org/Members/tseaver/Projects/HighlyAvailableZope/TwistingInT heWindProblems and take a look at DiagnosingHangProblems for some suggestions. Perhaps you could post the details of your own situation there as well? hth, -- Marcus ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Thread-safe PostgreSQL adaptor?
[EMAIL PROTECTED] wrote: > > try also, > > ZPoPyDA > > ZPoPyDA is a *stable* Postgresql Database Adapter for Zope based on our driver PoPy. > It aims to replace the current ZPygresql DA. > > This database adapter is released under the GPL Licence. AFAIK this is the only DA with GPL license. Both Zope and python have much freer licenses making GPL probably a poor choice if you "aims to replace the current ZPygresql DA". What is the reason behind GPL'ing it ? If you you hope to make money selling commercial licences I doubt it will work. Many peaople are afraid of contaminating their work with smallish GPL products and would rather use inferior but free products. > You can get the tarball at http://www.mixadlive.com/software Thanks - Hannu ___ 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] Linking to Mailing List Managers
Hi, With all the talk about Syndication I started to think about linking with mailing list managers. Ideally I'd like members of my portal site to be given a free email address @, bouncing all mail to that address to their real email address. In a roles-based membership scheme it would also be nice to be able to send email to @, so the email goes to all members with that role. Has anyone done anything like this, linking to an existing Mailing List Manager like Majordomo from Zope? I want to manage the whole thing through some Zope management pages. - Ian Sparks. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Thread-safe PostgreSQL adaptor?
try also, ZPoPyDA ZPoPyDA is a *stable* Postgresql Database Adapter for Zope based on our driver PoPy. It aims to replace the current ZPygresql DA. This database adapter is released under the GPL Licence. You can get the tarball at http://www.mixadlive.com/software bye Paolo Comitini Mixad Live s.r.l. On 31 Mag, Cary O'Brien wrote: > > Ok, pygresql is now DB-SIG compliant and thread safe. > > http://druid.net/pygresql > > What has to be done to create a one-database-connection-per-thread > PyGreSQL database adapter? Given the recent influx of resources into > PostgreSQL this would seem like a nice thing. Comments? > > -- cary > > > > > ___ > 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] security issues
Howdy everyone! I will soon have a Zope-site ready to go online. How can I make shure that I did everything (concerning Zope) to stop intruders? Where can I find information about protecting a Zope-site? Has anyone had security problems so far? --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 )
[Zope] KeyError since installing Squishdot 0.4.0
Since I installed Squishdot 0.4.0 (yesterday) on Zope 2.1.6 (under Red Hat Linux) I've been getting KeyErrors when clicking on an article's topic image, which uses an URL like this: http://myserver/Zope/testsquish/search?subject=Squishdot&op=articles In Squishdot 0.3.2, the errors didn't occur. I applied the fixes mentioned by Michel Pelletier in his (Zope-dev] message ("The Mysterious Key Error and Unrelated Searc Result Bug"), and updated the ZCatalog. This didn't fix the problem. Here is the stack trace: Traceback (innermost last): File /data/Zope-2.1.6/lib/python/ZPublisher/Publish.py, line 214, in publish_module File /data/Zope-2.1.6/lib/python/ZPublisher/Publish.py, line 179, in publish File /data/Zope-2.1.6/lib/python/Zope/__init__.py, line 202, in zpublisher_exception_hook (Object: ElementWithAttributes) File /data/Zope-2.1.6/lib/python/ZPublisher/Publish.py, line 165, in publish File /data/Zope-2.1.6/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: search) File /data/Zope-2.1.6/lib/python/ZPublisher/Publish.py, line 102, in call_object (Object: search) File /data/Zope-2.1.6/lib/python/Products/Squishdot/Squishdot.py, line 954, in search (Object: ElementWithAttributes) File /data/Zope-2.1.6/lib/python/ZPublisher/HTTPRequest.py, line 760, in __getitem__ KeyError: (see above) Does anyone have any ideas on how to fix this? Thanks. 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 )