Re: [Zope] Guess Who . . .
Hi, nice :-) "Spicklemire, Jerry" wrote: > > . . . has a opening posted on their Web Site for a C/C++ programmer with > Zope / Python experience? > > http://www-3.ibm.com/employment/us/empl/jofK23137.html > ... > Experience Required > Six years work related experience they must be from a different planet ;-) Regards Tino ___ 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] mxDateTime anyone
Hello Whenever I end up wanting to do some real work with dates and time I end up being referred to the lovely mxDateTime package. http://starship.python.net/~lemburg/mxDateTime.html Unfortunately Zope does not use this yet.. The real shame is that it is not the standard default for Python and then everyone could benefit. Q1: Is there any plan to use mxDateTime in Zope? Q2: Has anyone here been working with it anyway, via External Methods for example? I would love to hear what you have been doing and how you solved any Zope namespace conflicts, passing of variables etc.. I posted on this back in the spring and did get some kind advice, but ran in to some other problems, which I could not solve then. So at the time I decided to compromise, avoid those hassles and use Zope's built-in tools. But the nagging problem won't go away that a more robust system is needed, And with the cool timestamp arithmetic and functions that mxDateTime has. I have an application where we want to have lots of data older than the beginning of Unix for example.. [my birthday to take a trivial example]. Application #1 is history database system where all sorts of places, art etc can be handled via Zope. Without a decent DateTime mechanism I can't see how to use it. Maybe I am missing something about Zopes features, but it look like it will be a mess for anything pre1970. I hope I am wrong.. Application #2 is for intermodal transport - lots of shifting relative dates and times, odd arithmetic to do with days of week, 2nd Thursday in the month etc. mxDateTime is great for all this. Q3: Does anyone have tips or good advice how to do this with Zope's own if mxDateTime can be used? Thanks - Jason Jason CUNLIFFE = NOMADICS.(Interactive Art and Technology).Design Director ___ 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] Favorites
Hi rishi, rishi wrote: > ... > The following tihng is going on; they are uploading the bookmark file > manualy, by exporting from IE or NS. There is a util called > "ImportExportFavorites", a javascript syntax that gets the bookmarks and > post them to the server. One has to have a glance at it to say more. > --" javascript:window.external.ImportExportFavorites(false,'your server > adress') "-- > > when I use this util, it will send it's data tru the http_user_agent called > "favorites", > is there a posible way for grabbing the data it is sending into zope ? > it will send a file called 'img.fav' Depends. It would always helpful, if you make a dtml_method with just to see whats going on. HTH Tino ___ 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] Favorites
Hi guys I've got a reply that my explaination was not good, let me try again; I have a website running on zope with apache. The users of my site can store memo's and bookmarks there. The following tihng is going on; they are uploading the bookmark file manualy, by exporting from IE or NS. There is a util called "ImportExportFavorites", a javascript syntax that gets the bookmarks and post them to the server. --" javascript:window.external.ImportExportFavorites(false,'your server adress') "-- when I use this util, it will send it's data tru the http_user_agent called "favorites", is there a posible way for grabbing the data it is sending into zope ? it will send a file called 'img.fav' Thanks. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] REQUEST variables in exceptions
Hi, I have a DTML document with the following structure: Report that everything was ok and wait for ack. Warn about problem found by external method. and it works wonderfully, to be honest I thought it was quite uncanny to define and raise an exception inside the python module, and having it caught by the DTML document. Now, to improve the treatment of errors I need to refer, inside the block, to some variables that were defined in the REQUEST variable (I'm pretty confident of this because I used them inside the external method), but it seems that the original REQUEST variable is no longer set inside the block. Is this correct? What actually happens (in simple terms, please :) when an exception is thrown? I also tried the very few other tricks I know with DTML ( outside the block, plus some other voodoo) but couldn't get it to work, either. Should I return these values as error values with the exception? I can do it if this is the only option, but I'm already using the return value for information related to external method things, and I'd rather not mix the two ``domains'', so to speak. Many thanks for any tips, -- Ramiro Brito Willmersdorf[EMAIL PROTECTED] GPG key: http://www.demec.ufpe.br/~rbw/GPG/gpg_key.txt ___ 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] Use of the :records variable type and ZSQL methods
> > Error Type: Bad Request > > Error Value: ['Field1', 'Field2'] > > > > Here is the code I used and sqlTest is the ZSQL Method that > just inserts the > > two fields into a test DB: > > > > > > > > > > > > What am I doing wrong? > > > > you'll have to feed a named argument to your Zsql method (that is in its > definition). In this case that would be testlist. Then it should work as > expected > Here is the Z SQL Method. It takes the arguments Field1 and Field2. INSERT INTO Test_Fields (Field1,Field2) VALUES ( , ) Am I calling testlist incorrectly? I have tried forcing the namespace with the dtml-with tag, but it doesn't seem to be making any difference. Are the arguments field in the Method what you are refering to when you say named argument? Thanks, Calvin ___ 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] RedHat site mentions Zope
Yes I saw that too, but when I went to check the package list (to see what version it was) there was no mention of it. John Leach >> Original Message << On 9/25/00, 4:51:04 PM, Stephan Richter <[EMAIL PROTECTED]> wrote regarding [Zope] RedHat site mentions Zope: > Hello everyone, > I just saw on www.redhat.com the following: > Features for the developer: > ... > "Popular web application development tools like PHP and Zope" > Link: http://www.redhat.com/products/software/linux/rhl7_standard.html > Wow, pretty cool. It is only a five bullet list! I guess Zope is winning > acceptance rapidly. > Regards, > Stephan > -- > Stephan Richter > CBU - Physics and Chemistry Student > Web2k - Web Design/Development & Technical Project Management > ___ > 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] looking for XML-RPC client for C++ (urgh - but I need it)
We are involved in a project where a another company developes software written in C++ (it's their preference) that has to access data from our Zope server via XML.. I've checked out xmlrpc.com and found lots of language bindings but none for C++ (I know its more difficult to implement because of it's static nature) and one for COM. My question: Does there exist a plain C++ implementation for an XMLRPC **Client** ? thanks phil
Re: [Zope] Re: Can't export only an ObjectManager
Well its easier to edit XML, i could export a folderish object and then edit it. But is it my hooped version of Zope or can Zope not import its own exported XML? Error Type: TypeError Error Value: first argument must be sequence of strings Traceback (innermost last): File D:\zope\lib\python\ZPublisher\Publish.py, line 222, in publish_module File D:\zope\lib\python\ZPublisher\Publish.py, line 187, in publish File D:\zope\lib\python\Zope\__init__.py, line 221, in zpublisher_exception_hook (Object: ApplicationDefaultPermissions) File D:\zope\lib\python\ZPublisher\Publish.py, line 171, in publish File D:\zope\lib\python\ZPublisher\mapply.py, line 160, in mapply (Object: manage_importObject) File D:\zope\lib\python\ZPublisher\Publish.py, line 112, in call_object (Object: manage_importObject) File D:\zope\lib\python\OFS\ObjectManager.py, line 504, in manage_importObject (Object: ApplicationDefaultPermissions) File D:\zope\lib\python\ZODB\ExportImport.py, line 142, in importFile File D:\zope\lib\python\OFS\XMLExportImport.py, line 189, in importXML File D:\zope\lib\python\Shared\DC\xml\xyap.py, line 57, in unknown_endtag File D:\zope\lib\python\Shared\DC\xml\ppml.py, line 704, in TypeError: (see above) - Original Message - From: "Andy McKay" <[EMAIL PROTECTED]> To: "Chris Withers" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Monday, September 25, 2000 10:15 AM Subject: [Zope] Re: Can't export only an ObjectManager > Yes sorry I mean without (Friday afternoon y'know) > > A hack is my best bet. Sigh. > > - Original Message - > From: "Chris Withers" <[EMAIL PROTECTED]> > To: "Andy McKay" <[EMAIL PROTECTED]> > Cc: <[EMAIL PROTECTED]> > Sent: Monday, September 25, 2000 2:42 AM > Subject: Can't export only an ObjectManager > > > > Andy McKay wrote: > > > How do I export a folder using the Import/Export tab with exporting all > the > > > subobjects? > > > > You do mean 'wihout', don't you? > > > > > (Stupidest suggestion so far: delete all subjects, export, undelete) > > > > That's the only way I can think of... > > > > A patch that added a checkbox and a little more logic to the export code > > should do the job... > > > > 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 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] cannot run without -D on win2000 ?
Gijs, I'm running Zope 2.2.2 on Windows 2000 Advanced Server at home wih -D with no problems. Here's the registry entry for it: "D:\zope221\bin\python.exe" "D:\zope221\z2.py" -S hth Phil [EMAIL PROTECTED] - Original Message - From: "Gijs Reulen" <[EMAIL PROTECTED]> To: "Mailinglist Zope" <[EMAIL PROTECTED]> Sent: Tuesday, September 26, 2000 12:44 AM Subject: [Zope] cannot run without -D on win2000 ? > Hi > > I tried to run Zope without the -D option but it will hang after the > initial: > C:\Program Files\Zope_220\bin\python.exe" "C:\Program Files\Zope_220\z2.py > I tried both the 2.1.6 and 2.2.0 versions. > > Does anybody else have this same problem ? > With the -D option Zope runs ok, but I would like to supress the traceback > on errors. > > Gijs Reulen > > > ___ > 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] How to automatically document a Zope site?
Here's what I just whipped up in 5 minutes.. should think before posting I guess. Create Method /Document Strader is the top Folder I want to document Then Create Method /DocumentRecurse /manage"> Brad Clements,[EMAIL PROTECTED] (315)268-1000 http://www.murkworks.com (315)268-9812 Fax netmeeting: ils://ils.murkworks.com AOL-IM: BKClements ___ 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] cannot run without -D on win2000 ?
Hi I tried to run Zope without the -D option but it will hang after the initial: C:\Program Files\Zope_220\bin\python.exe" "C:\Program Files\Zope_220\z2.py I tried both the 2.1.6 and 2.2.0 versions. Does anybody else have this same problem ? With the -D option Zope runs ok, but I would like to supress the traceback on errors. Gijs Reulen ___ 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] RedHat site mentions Zope
Hello everyone, I just saw on www.redhat.com the following: Features for the developer: ... "Popular web application development tools like PHP and Zope" Link: http://www.redhat.com/products/software/linux/rhl7_standard.html Wow, pretty cool. It is only a five bullet list! I guess Zope is winning acceptance rapidly. Regards, Stephan -- Stephan Richter CBU - Physics and Chemistry Student Web2k - Web Design/Development & Technical Project Management ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] How to automatically document a Zope site?
No, although if you take a look at the way SQL Methods generate the dropdown "connection list", you'll get a good understanding of how to walk a tree of objectmanagers... Brad Clements wrote: > > I'm looking for a product, how-to or suggestions on how to document a > zope site. > > Basically I just want to walk the tree of objects and output a nicely > formatted series of pages that list the object, type, title, modification > time, etc.. > > Anyone got something ready made? > > Brad Clements,[EMAIL PROTECTED] (315)268-1000 > http://www.murkworks.com (315)268-9812 Fax > netmeeting: ils://ils.murkworks.com AOL-IM: BKClements > > ___ > 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 ) -- Chris McDonough Digital Creations, Publishers of Zope http://www.zope.org ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] How to automatically document a Zope site?
I'm looking for a product, how-to or suggestions on how to document a zope site. Basically I just want to walk the tree of objects and output a nicely formatted series of pages that list the object, type, title, modification time, etc.. Anyone got something ready made? Brad Clements,[EMAIL PROTECTED] (315)268-1000 http://www.murkworks.com (315)268-9812 Fax netmeeting: ils://ils.murkworks.com AOL-IM: BKClements ___ 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] Cookie pointer.
Steve Drees wrote: > > > What can I do to this code works? > > Can you cut and paste the offending code? Exactly the same of the message of Thomas: "You have cookies enabled" "Your browser does not support cookies" If I get rid of the 'expires' parameter, I receive allways the same "Your browser does not support cookies". Even when the cookies suport is enabled... The code changed looks like: Cookies enabled. disabled. (spaces/blank lines added to make it more readable). -- César A. K. Grossmann [EMAIL PROTECTED] http://members.xoom.com/ckant/ http://www.halcyon.com/sciclub/cgi-pvt/instr/instr.html ___ 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] displaying based on date
On Mon, Sep 25, 2000 at 05:00:47PM -0500, Timothy Wilson wrote: > I've created a ZClass and I'm using an HTML table to display certain > properties of the class. One of the properties is a date, and I want to > display in the table only those instances of the ZClass for which this > certain date property is in the future. (It's a job posting ZClass, and I > only want to display jobs that haven't yet closed.) > > I see in the ZQR that there is an 'isFuture' test that looks like it is > associated with fmt. ZQR says for isFuture, "Return true if this object > represents a date/time later than the time of the call." > > Can I combine this with a ? Is there a more elegant way? Yes, like in: [...] Where some_items is a list of objects with a date property. I think it's nice enough. You may even collapse everything in a row (untested): -- "This company has performed an illegal operation and will be shut down. If the problem persists, contact your vendor or appeal to a higher court." - Signal11 on slashdot ___ 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] Cookie pointer.
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Cesar > A. K. Grossmann > Sent: Monday, September 25, 2000 5:06 PM > To: TMGB > Cc: Zope@Zope. Org > Subject: Re: [Zope] Cookie pointer. > > > TMGB wrote: > > > > Since cookies have been brought up, I tried the following code (Using > > Steve's example): > > I cannot use this code in a GUF/docLogin. I get the error: > > "Unauthorized > > You are not authorized to access ZopeTime. " > > What can I do to this code works? Can you cut and paste the offending code? ___ 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] http://webcompare.internet.com/
Hi, I just ran across this website: http://webcompare.internet.com/ Interesting that I did not see anything on Zope. Shouldn't we write something to [EMAIL PROTECTED] and let them know about Zope? (Look also under http://serverwatch.internet.com/appservers.html ) regards, Hung Jung _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.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] Cookie pointer.
TMGB wrote: > > Since cookies have been brought up, I tried the following code (Using > Steve's example): I cannot use this code in a GUF/docLogin. I get the error: "Unauthorized You are not authorized to access ZopeTime. " What can I do to this code works? []s -- César A. K. Grossmann [EMAIL PROTECTED] http://members.xoom.com/ckant/ http://www.halcyon.com/sciclub/cgi-pvt/instr/instr.html ___ 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] displaying based on date
Hi everyone, I've created a ZClass and I'm using an HTML table to display certain properties of the class. One of the properties is a date, and I want to display in the table only those instances of the ZClass for which this certain date property is in the future. (It's a job posting ZClass, and I only want to display jobs that haven't yet closed.) I see in the ZQR that there is an 'isFuture' test that looks like it is associated with fmt. ZQR says for isFuture, "Return true if this object represents a date/time later than the time of the call." Can I combine this with a ? Is there a more elegant way? -Tim -- Tim Wilson | Visit Sibley online: | Check out: Henry Sibley HS | http://www.isd197.k12.mn.us/ | http://www.zope.org/ W. St. Paul, MN | | http://slashdot.org/ [EMAIL PROTECTED] || http://linux.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] multiple ZOPE ...
We host zope using mutliple installations of zope. It is better this way because then the clients can control which products they have installed, they can tweak their products without bothering anyone else, they can stop and restart zope whenever they please...the basically have full control. You can't do that with more than one client using the same instance. Yes it does use a fair bit of memory, but you would expect your client to pay for it accordingly. terry "Dicken, Peer" wrote: > Hi, > > How can I provide ZOPE Hosting? I have successfully tried SiteAccess and > Apache Proxying, but that´s not what I like - it´s a little bit ZOPE > "light", no control panel for clients... > > I think it´s best to provide a zope installation for any of our clients, > but, wouldn´t that be eating up my servers memory? Today i´ve set up three > installations by simply having 3 zope installations running on different > ports in different folders (/www/domain/zope). > > Is there any more advanced way to do (virtual) hosting with zope AND provide > control panels to the clients or is it okay to have one installation per > costumer running? > > > MfG / best regards, > > Peer Dicken > > IMD GmbH > Softwareentwicklung & Unternehmensberatung > Edisonstr. 1 > 59199 Bönen > > Tel.: +49 23 83 - 9191-0 > Fax.: +49 23 83 - 919191 > > ___ > 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 ) -- Terry Kerr ([EMAIL PROTECTED]) Adroit Internet Solutions Pty Ltd (www.adroit.net) Phone: +613 9563 4461 Fax: +613 9563 3856 Mobile: +61 414 708 124 ICQ: 79303381 ___ 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: Download Problem
Suzette Ramsden wrote: > > I have had this same problem downloading squishdot zip files and I don't > know if it is something I am doing. > When I attempt to unzip the file, I keep getting: > "error reading header after processing 0 entries" What archiver are you using? I'm guessing you're talking about some product I wrote, all of which are "tar.gz" files, not "zip" files. WinZip can read them, however. Shane ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Nasty subtle security bug - Me Too
Martijn Faassen wrote: > General problem description: > > For a ZClass instance/external methods that is only viewable by > users with a particular role, the view operation fails if that role > is only added to a user in a place deeper in the folder tree than the > folder where the External Method/ZClass instance was defined. This > occurs when the 'view' is occuring in the acquisition context of the > folder. > > It succeeds if the role is added to the user in a folder higher in the > tree, at or above the folder where the external method or ZClass instance > is defined. This sounds 100% correct. When checking security, acquisition context is ignored. What matters is *containment* (which is also accessed through the acquisition machinery, but in a special way: aq_inner). A user can only access objects that are defined in a container where the user is granted access. You probably don't really want to change it to use context instead. It would open a mile-wide security hole. > The view operation fails with a reauthentication request in Zope 2.1.6 > (so authentication exception raised presumably). > > In Zope 2.2.2 the failure is a NameError for External Methods, and > reauthentication for ZClass instances. > > Am I missing something terribly obvious, or is this a rather huge bug > that's been unnoticed for a long time? I assume it *must* be a bug as > DTML methods behave in a different way. I also want it to be a bug, as > I don't like this behavior. It makes it very hard to delegate > responsibility. The difference is a result of the change in the way security is handled. It now gets a NameError because the name lookups skip over entries to which you're disallowed access. That logic can be very puzzling, but you might try the ZDebug product which helps you make sense of it. Shane ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Zope.org FYI
Zope.org has been having some problems with memory leaks and "ghosts". Please excuse the occasional interruption. Also, /Members is now a new kind of BTreeFolder. An update to the BTreeFolder product will soon be released. With this change, some DTML installed on zope.org may have problems if it contains the expression "Members.". Just change the DTML to "Members['']". Updates forthcoming this week... Shane ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Authentication problem when accessing ZSQL method
Dieter Maurer wrote: > > > authenticate by my browser. I can't see anything in the security attributes > > for the SQL method which requires authentication, and I can 'test' the ZSQL > > method succesfully without requiring authentication. > You must grant the "use database methods" to "Annonymous". I think it's better to criate a special role, give to this role the permission to "use database methods" and to give proxy role to the methods that make authentication and uses the database connection and ZSQL methods. I think it's documented in the "GenericUserFolder with MySQL HOWTO" (or something like it)... []s -- +-+-+ | César A. K. Grossmann | Capacitação Solidária | | [EMAIL PROTECTED]| http://www.uol.com.br/umminuto/ | | http://members.xoom.com/ckant/ | Clique e doe - é de graça | +-+-+ http://www.halcyon.com/sciclub/cgi-pvt/instr/instr.html If you're not careful, you're going to catch something. ___ 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] Nasty subtle security bug - Me Too
Martijn Faassen wrote: [snip] > In fact I misreported that moving the external method to a subfolder > solved all problems -- it still fails (at least in 2.2.2, perhaps it worked > in 2.1.6), as long as the local role needed to execute it is added to the > user in a subfolder below it). If the role is added in the same folder or > a folder above the definition of the external method, it works. More clearing up of misreporting: The manager role is not special. If a manager role is added as a local role below the place of definition of the external method or ZClass instance, that manager will not be able to execute said objects. (problem also occurs with ZClass instances) The behavior seems to be more consistent than I originally thought; it's indepedent of the root folder and the type of role. The main inconsistency is that it isn't behaving as I'd expect, and that DTML methods *do* behave as I expect. General problem description: For a ZClass instance/external methods that is only viewable by users with a particular role, the view operation fails if that role is only added to a user in a place deeper in the folder tree than the folder where the External Method/ZClass instance was defined. This occurs when the 'view' is occuring in the acquisition context of the folder. It succeeds if the role is added to the user in a folder higher in the tree, at or above the folder where the external method or ZClass instance is defined. The view operation fails with a reauthentication request in Zope 2.1.6 (so authentication exception raised presumably). In Zope 2.2.2 the failure is a NameError for External Methods, and reauthentication for ZClass instances. Am I missing something terribly obvious, or is this a rather huge bug that's been unnoticed for a long time? I assume it *must* be a bug as DTML methods behave in a different way. I also want it to be a bug, as I don't like this behavior. It makes it very hard to delegate responsibility. Regards, Martijn ___ 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] password management and acl_users
Is ther an easy way to allow a user defined in an acl_users to change their own password? Or to put it another way, suppose I wanted a form like: User ID: Current Password: New Password: New Password (2nd time): How would I arrange to have the new password stored in a given instance of acl_users? Thanks Jim ___ 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] Nasty subtle security bug - Me Too
Brad Clements wrote: > On 25 Sep 2000, at 21:01, Martijn Faassen wrote: > > > In Zope 2.2.2, the user cannot execute the external method E either. > > Instead, the calling DTML code raises a NameError, basically saying our > > external method does not exist. > > > I'll also dump this description into the collector, but posted to the > > list because I like to complain. And who knows, perhaps someone else > > ran into the same. > > I also get the same problem in a different way. I posted a note the other > day about Login Manager and ownership generating NameError. > > I thought it was a Login Manager thing. The results are about the same, > I get a NameError accessing an External method from a DTML method > when the current user has been authenticated using a Login manager > protectec sub folder of the root. This was just plain vanilla user folder. I also get it with ZClass instances, though I get a reauthentication request (impossible one) in that case. In 2.1.6, I'd get reauthentication requests for both external methods and ZClass instances. > My fix, strangely enough, was to change the ownershipp of the DTML > method that was making the call to the External Method. It was owned > (somehow) by a user from Login Manager, rather than from the root > acl_users folder. > > Changing the ownership fixed the problem. I don't see how to accomplish this in my page. The root folder isn't owned by anyone, and I can't change it to be owned, I think. The external methods are all owned by my manager user, can I can't seem to change that either. > I didn't know who should look into this, Ty or DC, so I posted to the list. > Unfortunately it looks like no one has responded. I don't have the brains > to figure it out. If it is indeed the same problem, it seems to be a Zope core bug. In fact I misreported that moving the external method to a subfolder solved all problems -- it still fails (at least in 2.2.2, perhaps it worked in 2.1.6), as long as the local role needed to execute it is added to the user in a subfolder below it). If the role is added in the same folder or a folder above the definition of the external method, it works. Regards, Martijn ___ 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] Nasty subtle security bug
Hi there, I'm about to describe a very nasty bug that appears to exist in different guises in at least Zope 2.1.6 and Zope 2.2.2. The bug is nasty because it occurs under rather restricted circumstances, so nobody else noticed it yet, but it keeps biting _me_. The circumstances: * we have external method E in the root * we have a user defined in the root. This user has a certain role A. * we authenticate that user with a DTML method in root for role A. (so role A in this setup exists to force authentication only) * we give the user a local role B (or local user account with same username/password with that role) in a higher folder, X. * the external method E has security permissions to only work with role B (and manager), not with anonymous. As far as I am aware, our user should be able to execute E in the context of X and any subfolders, as the user has the right role there. Our user should not be able to execute E in the context of any other folder, however. (the execution happens through a DTML call) The symptoms: In Zope 2.1.6, the user cannot execute the external method E. Instead, the user is asked to reauthenticate. Naturally, reauthenticating the user again as himself won't work. In Zope 2.2.2, the user cannot execute the external method E either. Instead, the calling DTML code raises a NameError, basically saying our external method does not exist. The subtle bits -- when it *does* work fine --: This is probably why nobody actually ran into this one before. * it works fine when the user has manager role (at least in root) * it works fine when the external method is executable by anonymous. * it works fine when the external method is defined in another folder (not root folder) * it works fine with DTML methods * it even works fine (tested in 2.1.6) when the role is *not* added as a local role or with a local user account; if the user has role B from the start, it works. This one particularly gave me a lot of grief. The workaround that gets closest to what I want is to define the external methods in folder higher up instead. But that's not really desirable, in my circumstances I want the external method callable in the entire site, if the user is authenticated. Some minor observations: * ZClass instances seem to be affected as well. I'm not as sure about the symptoms here though. Anyway, I tried to upgrade to 2.2.2 to avoid this bug in particular, but the only thing I got was a NameError instead of an Authentication error. Sigh.. It doesn't appear to be a security leak, it appears to be overzealeous security instead. :) I'll also dump this description into the collector, but posted to the list because I like to complain. And who knows, perhaps someone else ran into the same. Regards, Martijn ___ 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] Nasty subtle security bug - Me Too
On 25 Sep 2000, at 21:01, Martijn Faassen wrote: > In Zope 2.2.2, the user cannot execute the external method E either. > Instead, the calling DTML code raises a NameError, basically saying our > external method does not exist. > I'll also dump this description into the collector, but posted to the > list because I like to complain. And who knows, perhaps someone else > ran into the same. I also get the same problem in a different way. I posted a note the other day about Login Manager and ownership generating NameError. I thought it was a Login Manager thing. The results are about the same, I get a NameError accessing an External method from a DTML method when the current user has been authenticated using a Login manager protectec sub folder of the root. My fix, strangely enough, was to change the ownershipp of the DTML method that was making the call to the External Method. It was owned (somehow) by a user from Login Manager, rather than from the root acl_users folder. Changing the ownership fixed the problem. I didn't know who should look into this, Ty or DC, so I posted to the list. Unfortunately it looks like no one has responded. I don't have the brains to figure it out. Brad Clements,[EMAIL PROTECTED] (315)268-1000 http://www.murkworks.com (315)268-9812 Fax netmeeting: ils://ils.murkworks.com AOL-IM: BKClements ___ 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] Set access rule
On Mon, Sep 25, 2000 at 01:52:26PM -0300, Mario Olimpio de Menezes wrote: > I did an upgrade last week, from zope 2.1.6 to 2.2.1, using > Debian packages. > Almost everything was correct, but site access no longer works. Zope 2.2 requires SiteAccess 2 to work. SiteAccess 1 will not work with Zope 2.2, but unfortunately the Debian package for SiteAccess 1 doesn't list this restriction. This is probably due to Debian policy not to allow changes to packages in stable releases unless it is a security fix. You can download a Debian package of SiteAccess 2 from http://www.debian.org/Packages/unstable/web/zope-siteaccess.html -- Martijn Pieters | Software Engineer mailto:[EMAIL PROTECTED] | Digital Creations http://www.digicool.com/ | Creators of Zope http://www.zope.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] Authentication problem when accessing ZSQL method
steve smith writes: > I am experiencing great frustration when trying to implement a drop-down > list based upon one of the how-tos I found on the Zope site. Whenever I try > to 'view' the DTML method which references the ZSQL method, I am prompted to > authenticate by my browser. I can't see anything in the security attributes > for the SQL method which requires authentication, and I can 'test' the ZSQL > method succesfully without requiring authentication. You must grant the "use database methods" to "Annonymous". Dieter ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] RE: Stability problems using ZOracleDA
hi, we were suffering from the same problem, but now it works. when you use ZOracleDA, be sure not to use DCOracle, which ships with it. There's a newer version on the Zope site. Use the new one instead and everything will be fine. Our systems admin told me that he also modified either ZOracleDA or DCOracle, I'm not sure, butr I'm gonna ask him to post here... Andy P. > >Subject: [Zope] Stability problems using ZOracleDA > >Hello, > >Recently I have been having some severe stability problems using >zope and oracle together. Zope has been segfaulting on a regular >basis, usually every 10-15 mintues. When I looked into it a while >back I came to the conclusion it was a problem with the linux version >of oracle (an incompatibility with glibc 2.1), but I have tested >it on solaris now and I am having the same problems. > > >. > > Redhat 6.2 (intel) > Oracle 8.1.6 > Python 1.5.2 (compiled from sources --with-threads) > Zope 2.2.2 (compiled from sources) > ZOracleDA 2.2.0b1 (compiled from sources, also tried 2.1.0) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] still problems w/ SiteAccess 2.0.0b3
Hi, After struggling with Zope 2.2.1 + SiteAccess 2.0.0b3 upgraded from Zope 2.1.6, I gave up: I purged the previous installation and started from scratch. Now I have a strange scenario: SiteAccess is installed and I can see SiteRoot and Set Access Rule in the popup menu but SiteAccess doesn't appear in Products. So when I try to add a SiteRoot I get: Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: SiteAccess
[Zope] Redirect FTP access on a role basis
Is it possible to redirect FTP access to subfolders depending on user's role? If yes, how can I do that? I would like to have ftp://www.mysite.com connect to the graphics folder "/gfx", if an account with a "Designer role" connects to the server in order to upload/exchange graphics. His account is only permitted to exchange graphics anyway (through web interface or FTP), so why should I show him the root tree? tia, Danny P.S.: Yes, I know that I can set _permissions_ for FTP access. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] ZWiki RecentChanges don't work in Zope 2.2.x
what Martijn said (thanks Martijn). Another quick workaround mentioned on ZWikiProblems: you could remove the calls to getSize and similar attributes from your recentchanges page. Then Access Contents Information should be sufficient. -Simon ___ 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: Can't export only an ObjectManager
Yes sorry I mean without (Friday afternoon y'know) A hack is my best bet. Sigh. - Original Message - From: "Chris Withers" <[EMAIL PROTECTED]> To: "Andy McKay" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Monday, September 25, 2000 2:42 AM Subject: Can't export only an ObjectManager > Andy McKay wrote: > > How do I export a folder using the Import/Export tab with exporting all the > > subobjects? > > You do mean 'wihout', don't you? > > > (Stupidest suggestion so far: delete all subjects, export, undelete) > > That's the only way I can think of... > > A patch that added a checkbox and a little more logic to the export code > should do the job... > > 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] Set access rule
Hi, I did an upgrade last week, from zope 2.1.6 to 2.2.1, using Debian packages. Almost everything was correct, but site access no longer works. My setup is: 1. apache virtual host with rewrite rules: SSLEngine off ServerAdmin mario@localhost ServerName agilizearede.myserver.com SetEnv SERVER_URL http://agilizearede.myserver.com RewriteEngine on RewriteLog /var/log/apache/rewrite_log RewriteLogLevel 3 RewriteRule ^/static/(.*) /var/www/agilize/$1 [L] RewriteCond %{HTTP:Authorization} ^(.*) RewriteRule ^/(.*) /usr/lib/cgi-bin/Zope/$1 \ [e=HTTP_CGI_AUTHORIZATION:%1,t=application/x-httpd-cgi,l] 2. I use pcgi, also used to work, and is working now! 3. each virtual host has its folder and each one its SiteRoot; Zope root has a DTML method that split the HTTP_HOST env. variable and call REQUEST for TraversalRequestNameStack append (from howto). Then I had a access rule in Zope root to call the DTML method. 4. My problem is that I can't no longer add a Access Rule to Zope root. It complains with the following msg: --- Zope has encountered an error while publishing this resource. ERROR TYPE: ATTRIBUTEERROR ERROR VALUE: 'STRING' OBJECT HAS NO ATTRIBUTE 'NAME' the html source relevant part is: Can somebody help me to fix this? Any suggestion is very welcome as I'm lost! []s, Mario O.de Menezes"Many are the plans in a man's heart, but IPEN-CNEN/SP is the Lord's purpose that prevails" http://curiango.ipen.br/~mario Prov. 19.21 http://www.revistalinux.com.br ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Newbie Tree Tag Help
I am trying to implement a dtml-tree setup that will read from a set of folders that I have placed a the top level of my portal folder structure. I want to be able to call this method from other branches in the portal and have it always display the tree using the set of folders I have set up as the source, not the folder that the user is currently in. - portal root - tree source - tree info1 - tree info2 - tree info3 - some stuff - meetings - membership - memberlist - news As an example, even if I am in the "meetings" folder, I want the tree to build from the "tree source" folder. I have tried using dtml-with and "getPortal().treesource.objectValues()", but cannot get it to work. Any ideas? Thanks, Chip Johansen _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.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] Cookie pointer.
Since cookies have been brought up, I tried the following code (Using Steve's example): "You have cookies enabled" "Your browser does not support cookies" The cookie gets set and the text that displays is from the else part, so the cookie is set and I tell the user their browser doesn't support cookies. 1. I want to know if the user's browser supports cookies. I am getting ready to develop a help page for people using our proxy server and I need to add their browser capabilities to a database and respond to the user the settings they have in a "layman" terminology. I plan on putting in a on each side of the else that will update the database. I am also looking at which gives me information I need. I have searched the Zope Site and cannot find help on this. 2. Can I display individual parts of the the REQUEST results or do I have to parse the results in an external method using python? 3. And then on another topic, can I create a product from a directory tree in my Zope Server or do I have to create a product from the beginning majorly because of the syntax used in creating a product? TIA Thomas Steve Drees wrote: > > I learned this one the hard way. > > Had a python method > id: expireTime > parameters: self > body: > t = self.ZopeTime() + (1.0/192.0) # 7.5 minutes in the future > t = t.toZone('GMT') > > return t.strftime("%A, %d-%b-%Y %H:%M:%S GMT") > -- > > Was trying the following > > expires=expireTime)"> > > This does NOT work. > > THe following works MUCH better > > expires=expireTime())"> > > -- > Steve Drees > SysAdmin/Software Developer/Web Geek/Chief Bottle Washer > "A problem well-stated is a problem half-solved." > http://www.christianmp3zone.com/savanna > > ___ > 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 ) -- Rock and Rule Zope Rocks -- http://www.zope.org Python Rules -- http://www.python.org Thomas McMillan Grant Bennett Appalachian State University Computer Consultant IIIUniversity Library [EMAIL PROTECTED] http://www.library.appstate.edu/webmaster/ Voice: 828 262 6587 FAX:828 262 3001 Windows 95 is a 32-bit extension to a 16-bit patch for an 8-bit operating system that was originally coded for a 4-bit microprocessor. - Chris Dunphy Boot Magazine ___ 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] personal portal and Palm syncronization
Yes, this has been on my wish list for some time, but there's no way I'm going to get round to it right now... Take a look at pilot-link (http://sourceforge.net/projects/pilot-link) for interfaces to the mail, todo, etc software on your palm. This will only really deal with workstation -> palm syncs, though, so you probably want MAL, the open source networked application link thingum from avantgo: http://www.mobilelink.org don't know how it works or anything though :) seb - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: 25 September 2000 16:28 Subject: [Zope] personal portal and Palm syncronization > > > I was building a personal site to weblog my engineering and personal stuff > (based on Squishdot and Event Folder), and the thought occurred to me that it > would be really neat > if I could syncronize my Palm to this personal site. Using the Event Folder, I > have a calendar, Squishdot provides the memos, I would need some other product > to do the ToDos, and some other product could provided the contact management > list. All that would be needed would be a way to sync between the Palm and the > Zope site. Any ideas? (Heck, I could even see a company providing this as > MyPalmPortal or something like that! Then I would not have to depend on a > particular computer to sync my Palm with and I would have a better way of > entering memos when I had access to a web browser. > > Any ideas how the sync would be done? > > > > ___ > Zope maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) > ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] FYI: Python product tutorial updated
> But...on looking at it, a nagging thought keep recurring...this > is a really > quite long and complicated process for a Poll product. As much as I like > Zope and thing it is a great platform on which to develop web > applications, > I often wonder about the complexity and obscurity of some of the > procedures > that need to executed while making what are, on the face of it, > often quite > simple web objects or applications. Consequently I have honestly > had quite a > hard time convincing PHP-savvy colleagues that the path to Zope Zen is > something worth starting on. You need to make a delineation between making products and using zope. One can use the power of zope without building a zope product. A couple of ZSQL Methods, some PythonMethods, and a little DTML go along way in building a cool dynamic website. So my methodology has been to show them the simple power of zope and then later expose them to building products. ___ 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] FYI: Python product tutorial updated
To address some adjectives: Complex - it's complex because there's a lot going on. Consider the nature of the security machinery. What other platform lets you grant permissions on such a granular basis? How would you lend people the ability to script things through the web securely in, for example, PHP? I know that in many situations it's overkill, such as in creating a Poll product. There are a lot of hoops to jump through that you may not care about while creating such a simple product. But in more complex applications, those hoops are requirements. One of the goals of ZClasses is to reduce the amount of work required to create a Product. They don't succeed on all levels, but the scope of this Poll product is somewhere that I think ZClasses would shine. Obscure - it's obscure only because it's not documented properly. Once it's documented properly, it will no longer be obscure. - Original Message - From: "Darcy Clark" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, September 25, 2000 11:49 AM Subject: re: [Zope] FYI: Python product tutorial updated > This tutorial looks great...it explained a lot of things to me that I wasn't > able to put together before. > > But...on looking at it, a nagging thought keep recurring...this is a really > quite long and complicated process for a Poll product. As much as I like > Zope and thing it is a great platform on which to develop web applications, > I often wonder about the complexity and obscurity of some of the procedures > that need to executed while making what are, on the face of it, often quite > simple web objects or applications. Consequently I have honestly had quite a > hard time convincing PHP-savvy colleagues that the path to Zope Zen is > something worth starting on. Does anyone else experience these nagging > doubtful thoughts occasionally ? > > Darcy > -- > > From: Shane Hathaway <[EMAIL PROTECTED]> > Date: Fri Sep 22, 2000 11:56am > Subject: [Zope] FYI: Python product tutorial updated > > The Python product development tutorial has been updated to reflect > current practices. It is accompanied by a working product that contains > all the sample code (which should also replace the "Boring" product.) > > It will likely be included in the Product Developer's Guide. > > See http://www.zope.org/Members/hathawsh/TutorialUpdate . > > Shane > > ___ > Zope maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) > > ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] ZWiki RecentChanges don't work in Zope 2.2.x
On Mon, Sep 25, 2000 at 04:14:03PM +0100, Chris Withers wrote: > ...you get an authorization error :-( > > This is because this Wiki isn't (and shouldn't) be publicly viewable or > editable. > > So, Anonymous doesn't have 'View' permission on the folder. I've given > Anonymous 'Access Contents Information', the usual nasty hack I had to > do before, but now that just changes the error message :-S (it's in a PS > below) > > I guess the Interfaces Wiki does pretty much this, but RecentChanges > works there. What tweaks to permissions and code have been made there? > > This all stems from the fact that DTML in Wiki code _always_ executes > with the Anonymous role. That's stoopid :-( > Wouldn't it make more sense for it to execute with whatever Proxy Roles > that Wiki Page has? > I would code this myself, but I don't know how. Any ideas? > > Any other thoughts about the problem? I have seen the same problem; the getSize method isn't accessible to RecentChanges, even though the Authenticated User has the View permission. Only when you explicitly give Anonymous the View permission on the Folder (or every individual ZWiki page), will RecentChanges render. This is caused by specific 'safetybelting', implemented by Jim Fulton, to mitigate the risks of ZWikis becoming an easy entry point for a Trojan Horse attack. With the new security policy in Zope 2.2, this is no longer necessary, and you can comment out the restriction. Just remove or comment out the 'validate' method in the file Products/ZWiki/ZWikiPage.py and restart your Zope server. Note that on a pre-2.2 server, this means that any DTML code executed in a ZWiki page will be executed with the rights of the viewer! If you still have problems, make sure that the Owner of the RecentChanges object has rights to 'View' the ZWiki pages. The Interfaces Wiki (and all other Zope.org Wikis) allow Anonymous to View, only Editing and Adding new Wiki pages is restricted. -- Martijn Pieters | Software Engineer mailto:[EMAIL PROTECTED] | Digital Creations http://www.digicool.com/ | Creators of Zope http://www.zope.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] FYI: Python product tutorial updated
This tutorial looks great...it explained a lot of things to me that I wasn't able to put together before. But...on looking at it, a nagging thought keep recurring...this is a really quite long and complicated process for a Poll product. As much as I like Zope and thing it is a great platform on which to develop web applications, I often wonder about the complexity and obscurity of some of the procedures that need to executed while making what are, on the face of it, often quite simple web objects or applications. Consequently I have honestly had quite a hard time convincing PHP-savvy colleagues that the path to Zope Zen is something worth starting on. Does anyone else experience these nagging doubtful thoughts occasionally ? Darcy -- From: Shane Hathaway <[EMAIL PROTECTED]> Date: Fri Sep 22, 2000 11:56am Subject: [Zope] FYI: Python product tutorial updated The Python product development tutorial has been updated to reflect current practices. It is accompanied by a working product that contains all the sample code (which should also replace the "Boring" product.) It will likely be included in the Product Developer's Guide. See http://www.zope.org/Members/hathawsh/TutorialUpdate . Shane ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] WorldPilot has the bits...
[EMAIL PROTECTED] wrote: > > Any ideas how the sync would be done? > WorldPilot has the ability to do this, allegedly. Might be a good starting point... 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] Re: Why no full Zope?
Chris> Why not just use all of Zope and be done with it? That's *much* easier said than done as far as I can tell. I am maintaining long-lived web site (> five years old), which is a mixture of flat html files, CGI scripts, ZServer-published methods and XML-RPC. On the middle end, we use an XML-RPC server to support Perl, Python and Java clients. On the backend we just recently switched to MySQL from a homegrown database system. While most of these bits are supported by Zope, it would be a major undertaking to replace all of what we have with Zope at this point. I just don't have the time or energy sufficient to do this. Added to that, my business partners out on the left coast (the Mojam half of my signature) use Mason (our CTO was one of the original Mason developers), so any major reimplementation of Musi-Cal will use Mason, simply so we can have a common development platform for our web sites and I can get out of the web site maintenance business altogether. Note that most of the inertia has absolutely nothing to do with Zope's qualities. Mostly it has to do with the realities of doing business in a small dot com. I actually do use Zope proper for another non-work-related web site. -- Skip Montanaro ([EMAIL PROTECTED]) http://www.mojam.com/ http://www.musi-cal.com/ ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] personal portal and Palm syncronization
I was building a personal site to weblog my engineering and personal stuff (based on Squishdot and Event Folder), and the thought occurred to me that it would be really neat if I could syncronize my Palm to this personal site. Using the Event Folder, I have a calendar, Squishdot provides the memos, I would need some other product to do the ToDos, and some other product could provided the contact management list. All that would be needed would be a way to sync between the Palm and the Zope site. Any ideas? (Heck, I could even see a company providing this as MyPalmPortal or something like that! Then I would not have to depend on a particular computer to sync my Palm with and I would have a better way of entering memos when I had access to a web browser. Any ideas how the sync would be done? ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] ZWiki RecentChanges don't work in Zope 2.2.x
...you get an authorization error :-( This is because this Wiki isn't (and shouldn't) be publicly viewable or editable. So, Anonymous doesn't have 'View' permission on the folder. I've given Anonymous 'Access Contents Information', the usual nasty hack I had to do before, but now that just changes the error message :-S (it's in a PS below) I guess the Interfaces Wiki does pretty much this, but RecentChanges works there. What tweaks to permissions and code have been made there? This all stems from the fact that DTML in Wiki code _always_ executes with the Anonymous role. That's stoopid :-( Wouldn't it make more sense for it to execute with whatever Proxy Roles that Wiki Page has? I would code this myself, but I don't know how. Any ideas? Any other thoughts about the problem? cheers, Chris PS: Unauthorized You are not authorized to access getSize Traceback (innermost last): File /mnt/data/2/zope/2-2-2_base/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /mnt/data/2/zope/2-2-2_base/lib/python/ZPublisher/Publish.py, line 187, in publish File /mnt/data/2/zope/2-2-2_base/lib/python/ZPublisher/Publish.py, line 171, in publish File /mnt/data/2/zope/2-2-2_base/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: RecentChanges) File /mnt/data/2/zope/2-2-2_base/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: RecentChanges) File /usr/local/zope/2-2-2_base/lib/python/Products/ZWiki/ZWikiPage.py, line 178, in __call__ (Object: RecentChanges) File /usr/local/zope/2-2-2_base/lib/python/Products/ZWiki/ZWikiPage.py, line 223, in render_htmldtml (Object: RecentChanges) File /mnt/data/2/zope/2-2-2_base/lib/python/OFS/DTMLDocument.py, line 177, in __call__ (Object: RecentChanges) File /mnt/data/2/zope/2-2-2_base/lib/python/DocumentTemplate/DT_String.py, line 528, in __call__ (Object: RecentChanges) File /mnt/data/2/zope/2-2-2_base/lib/python/DocumentTemplate/DT_In.py, line 691, in renderwob (Object: aq_parent.objectValues(spec='ZWiki Page')) File /mnt/data/2/zope/2-2-2_base/lib/python/DocumentTemplate/DT_Util.py, line 337, in eval (Object: _.getitem('sequence-item').getSize()) (Info: _) File , line 0, in ? File /mnt/data/2/zope/2-2-2_base/lib/python/DocumentTemplate/DT_Util.py, line 140, in careful_getattr File /usr/local/zope/2-2-2_base/lib/python/Products/ZWiki/ZWikiPage.py, line 501, in validate (Object: RecentChanges) Unauthorized: (see above) ___ 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] Help - Weird stuff.
Hi all, Sorry for the subject but I don't really know how to describe this. I have a folder 'hp' which has loads of stuff in it, if I try to copy and paste into it though I get this error: 'The object index_html does not support this operation ' with this traceback: Traceback (innermost last): File D:\zope221\lib\python\ZPublisher\Publish.py, line 222, in publish_module File D:\zope221\lib\python\ZPublisher\Publish.py, line 187, in publish File D:\zope221\lib\python\Zope\__init__.py, line 221, in zpublisher_exception_hook (Object: Traversable) File D:\zope221\lib\python\ZPublisher\Publish.py, line 171, in publish File D:\zope221\lib\python\ZPublisher\mapply.py, line 160, in mapply (Object: aspire_personal_pasteObjects) File D:\zope221\lib\python\ZPublisher\Publish.py, line 112, in call_object (Object: aspire_personal_pasteObjects) File D:\zope221\lib\python\OFS\DTMLMethod.py, line 172, in __call__ (Object: aspire_personal_pasteObjects) File D:\zope221\lib\python\DocumentTemplate\DT_String.py, line 528, in __call__ (Object: aspire_personal_pasteObjects) File D:\zope221\lib\python\DocumentTemplate\DT_Util.py, line 337, in eval (Object: manage_pasteObjects(cb_copy_data=SESSION['cbdata'])) (Info: manage_pasteObjects) File, line 0, in ? File D:\zope221\lib\python\OFS\CopySupport.py, line 203, in manage_pasteObjects (Object: Traversable) File D:\zope221\lib\python\OFS\CopySupport.py, line 406, in _verifyObjectPaste (Object: Traversable) Copy Error: (see above) Any Ideas? Phil [EMAIL PROTECTED] ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] ImportExportFavorites
Hi guys i've got a small prob. I have the ImportExportFavorites util from microsoft. If that util post the bookmarks of an user then it sends with http_user_agent "FAVORITES" and file name "img.fav" Is there a way that zope get this file so I can save it in the ZODB. The source for sending the file is: Import Now
[Zope] Why no full Zope?
Skip Montanaro wrote: > Thanks, interesting, but in my case, probably not immediately useful. It > slipped my mind when posting that I need to qualify all my zope posts with, > "I'm not using full-blown Zope. I only use ZServer + DocumentTemplates." > Still, knowing that there is some mechanism for Zope doing this, gives me > hope that I can perhaps do it just by twiddling bits in my code. Why not just use all of Zope and be done with it? cheers, Chris ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] What options exist for dealing with tracebacks?
John> Although Didier Georgieff has given a thorough reply, I couldn't John> resist a quick plug... ;-) John> http://www.zope.org/Members/JohnC/StandardErrorMessage John> which has info on using and customising error pages, including John> e-mailing of errors. Thanks, interesting, but in my case, probably not immediately useful. It slipped my mind when posting that I need to qualify all my zope posts with, "I'm not using full-blown Zope. I only use ZServer + DocumentTemplates." Still, knowing that there is some mechanism for Zope doing this, gives me hope that I can perhaps do it just by twiddling bits in my code. -- Skip Montanaro ([EMAIL PROTECTED]) http://www.mojam.com/ http://www.musi-cal.com/ ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Guess Who . . .
. . . has a opening posted on their Web Site for a C/C++ programmer with Zope / Python experience? http://www-3.ibm.com/employment/us/empl/jofK23137.html Email Software Engineer (CA-K23137) Category: Software Location: CA Division: Other Divisions Work as a part of a small team developing a hosted domain e-mail service for small businesses. Desired Skills Excellent C/C++ coding skills, Unix Development experience (FreeBSD, AIX, Linux a plus), Experience with OPEN SOURCE code (or work with legacy code), Working knowledge of SMTP, sendmail, POP3, IMAP, LDAP, Experience with scripted HTML languages (ZOPE, Python) a plus Education Required Bachelors Degree Computer Science (or equivalent) required Experience Required Six years work related experience ___ 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] multiple ZOPE ...
Hi, How can I provide ZOPE Hosting? I have successfully tried SiteAccess and Apache Proxying, but that´s not what I like - it´s a little bit ZOPE "light", no control panel for clients... I think it´s best to provide a zope installation for any of our clients, but, wouldn´t that be eating up my servers memory? Today i´ve set up three installations by simply having 3 zope installations running on different ports in different folders (/www/domain/zope). Is there any more advanced way to do (virtual) hosting with zope AND provide control panels to the clients or is it okay to have one installation per costumer running? MfG / best regards, Peer Dicken IMD GmbH Softwareentwicklung & Unternehmensberatung Edisonstr. 1 59199 Bönen Tel.: +49 23 83 - 9191-0 Fax.: +49 23 83 - 919191 ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] DTML Loop, is there a 'continue'?
>On Fri, Sep 22, 2000 at 12:39:52PM -0500, Spicklemire, Jerry wrote: >> I'm about searched out trying to find any discussion about calling a normal >> "continue" statement, as in Python, from DTML. Any ideas? >> >> I just want to short circuit a dtml-in loop for one pass, and then finish >> the rest of the loop, based on a parameter. to which Martijn replied: > There isn't, other than using a nested . You could also use > a and combo, where raising an > exception would take you to the except clause and then out. Thanks Martijn, It dawned on me that, since I'm iterating through a temporary list, it is simpler to test the parameter once, and delete non-valid list members prior to the loop. That eliminates testing during every pass. 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] Fulltext Searching? Newbies Problems with ZCatalog...
Hi, well, I have added a ZCatalog and ZSearch Interface, searching for id,title etc. works perfect, but - how can I do fulltext-searches with ZCatalog? MfG / best regards, Peer Dicken IMD GmbH Softwareentwicklung & Unternehmensberatung Edisonstr. 1 59199 Bönen Tel.: +49 23 83 - 9191-0 Fax.: +49 23 83 - 919191 ___ 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] Help: Zope2 all threads frozen...
Hello, I have zope2.2 with whats look like all thread frozen(on linux, using zserver). Netstat reports a lot of connections ESTABLISHED or CLOSE_WAIT to the zope port. Of course zope is not responding. Who to solve this (of course I can kill+restart), is it possible to set a connection timeout limit? Gilles ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] How to apply arbitrary methods to objects?
Hi, I'm trying to create an inline interface to manage_edit. If a user is authenticated, instead of seeing the default views of each snippet of content, they get a textarea with a submit button for each snippet. I'm still new to all this, so I'm not sure how I should be going about it: a zclass with the content as a property? a product that subclasses DTMLDocument and overrides the __call__ method? I settled on creating a DTML method, "editable", which works fine if you call it from the url (code included at bottom of mail): http://mysite.com/snippet/editable Inside "editable", when I call the content of the parent object is returned, which is what I wanted. The plan was, whenever I had a snippet which I wanted to be editable, I would call it inside my dtml thus: which of course doesn't work. Eventually I found I had to do... ...because the editable method doesn't inherit the context of snippet like it does when you call it from the URL, and I needed to authenticate the user. But now I'm finding that the inside the editable method is actually rendering the content of the page that the snippet is in, rather than the snippet itself. How should I call the editable method of snippet in such a way that it inherits the context of snippet rather than the context of its parent? I've tried but then editable can't access any other objects, e.g. update_content, in the folder. Perhaps I should be going about this completely differently? Thanks Seb -- editable is a DTML method: update_content is an external method: def update_content(self,REQUEST): self.manage_edit(data=REQUEST.form["data"],title=REQUEST.form["title"]) return REQUEST.form["data"] ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] DTML Loop, is there a 'continue'?
On Fri, Sep 22, 2000 at 12:39:52PM -0500, Spicklemire, Jerry wrote: > Hi Zope Fans, > > I'm about searched out trying to find any discussion about calling a normal > "continue" statement, as in Python, from DTML. Any ideas? > > I just want to short circuit a dtml-in loop for one pass, and then finish > the rest of the loop, based on a parameter. There isn't, other than using a nested . You could also use a and combo, where raising an exception would take you to the except clause and then out. -- Martijn Pieters | Software Engineer mailto:[EMAIL PROTECTED] | Digital Creations http://www.digicool.com/ | Creators of Zope http://www.zope.org/ - ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: Zope 2.2.x (wood) under potato
On Fri, 22 Sep 2000, Giuseppe Pagano wrote: > Yes, it works too but you need the new site root: > http://www.zope.org/Members/4am/SiteAccess2 > enjoi it > [EMAIL PROTECTED] Hi Giuseppe, Sorry for writing directly to you but I would like to know what kind of virtual domain are you using? I have the following installation: apache + mod_pcgi + virtual domains + mod_rewrite for v.d. This used to work with Zope 2.1.6 and the old site access. Now, I'm no longer able to access my virtual domains with the same config. That is, I upgraded zope to 2.2.1 and site access to 2.0b3 (irc). I have a SiteRoot object in the folder of my virtual domain, a DTML method in my zope root directory, with the rules for split the incoming HTTP_HOST env.variable, but I can't add an access rule. It complains about something. The msg is bellow: Zope has encountered an error while publishing this resource. ERROR TYPE: ATTRIBUTEERROR ERROR VALUE: 'STRING' OBJECT HAS NO ATTRIBUTE 'NAME' Do you know something about this? BTW, I can add access rule to any other folder but root! []s, Mario O.de Menezes"Many are the plans in a man's heart, but IPEN-CNEN/SP is the Lord's purpose that prevails" http://curiango.ipen.br/~mario Prov. 19.21 http://www.revistalinux.com.br ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Data.fs
Problem solved. Somebody installed a new version of ZNolkWizard product, which I wasn't aware of. It looks like this new version gives some problems with Interbase. Q: Since ZNolkWizard merely creates pages, how come then, that when you import a piece of Zope into Zope which doesn't has ZNolkWizard, Zope complains about not having ZNolkWizard installed? Why does Zope still needs this reference to ZNolkWizard? ZNolkWizard created some stuff, but isn't there anymore. Tom. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Using ZPublisher separately
Hello! Can anyone give me an advice on how to use ZPublisher with CGI? We in Interenet department of our company developed publication (conent management) system based on Python CGIs, ZTemplates and MySQL. This is actually second system we've developed, and it is big step forward. But there is a problem - the system is a bit too generic. When I edit an object through the web the handler puts all data from a form into the object as strings, where I want integers, dates etc. I want to use ZPublisher's ability to convert name hints () into python types. Can I do that in pure CGI using ZPublisher? How? Thanks in advance. Oleg. Oleg Broytmannhttp://phd.pp.ru/[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 )
[Zope] String problem with structured text
Hi, I am having a number of problems in a Python product displaying a property 'description' as structured text. 'description' is: Test structured text Link to the "Zope website":http://www.zope.org - Dot point If I update 'description' from my manage_editForm (which does self.description = description), gets rendered in HTML as: Test structured text Link to the http://www.zope.org">Zope website - Dot point The hyperlink has been rendered properly but the heading and dot point haven't. If I update 'description' from the properties page of the management interface, looks like: Test structured text Link to the http://www.zope.org">Zope website Dot point which is exactly what it should be. Any ideas what is going on here? Background information: - Using a clean installation of Zope 2.2.0. - My Python product inherits from Folder and has properties 'title' and 'description'. These are made available via the Properties page using: _properties=({'id':'title', 'type':'string', 'mode':'w'}, {'id':'description', 'type':'text', 'mode':'w'}, ) - The manage_edit() method is: def manage_edit(self, title, description, REQUEST=None): "Edits the AdminFolder's characteristics" self.title = title self.description = description if REQUEST is not None: return MessageDialog( title='Edited', message='%s has been edited.' % self.id, action ='manage_main', ) Any suggestions gratefully accepted! Stephen ___ Stephen Simmons HealthArena B.V. phone +31 20 486 0555 mobile +31 6 1505 3086 [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] Not Patch to let Authorized Exceptions use standard_error_message ;-)
Andy McKay wrote: > > Well theres the thing, its not really a patch. I doesnt allow Authorized > Exceptions to use standard_error_message, thats a whole different kettle of > fish. > > /lib/python/ZPublishers/HTTPResponse.py line 482 to 523 contains HTML text > for the error message. So you can rewrite that. Thats all I have done. Ah well, there you go, getting my hopes up :-( *grinz* 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] 2 objects per folder whatever...
Andy McKay wrote: > > > Sure it works but Im creating 2 objects a folder and a index_html for > every > > > one occurence. Im doubling my database for every object. Ugh! > > > > I really wouldn't worry about that... > > I would, I have a lot of objects. Yes, but given you're going to end up with those two objects however your solve the problem, there's not a lot you can worry about ;-) Out of interest, what is your index_html in these folderish objects going to do? 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] More image problems?
Dieter Maurer wrote: > At work, I now have a reproducible image problem: > * Shift-Reload shows the image > * Reload: correctly shows the image > * Reload: broken image What version of Zope? What browsers? Any idea where to look for the problem? 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] Zope-2.2.0: ZSQL problem
Hi all, after upgrading from Zope-2.1.5 to Zope-2.2.0 (Windows) I have some problems with ZSQL-methods: gives an error: Missing input variable, AUTHENTICATED_USER It used to work properly in 2.1.x. Is this already fixed in Zope-2.2.2 or is there any workaround for this? Regards, Andreas ** This email message has been swept by MIMEsweeper for the presence of computer viruses. Francotyp-Postalia AG & Co. ___ 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] Error shouldn't be appended :-S
Skip Montanaro wrote: > > Having only recently upgraded from Zope 2.0 to 2.2.1 I see that the default > behavior for traceback reporting is still to embed them in an HTML comment > (or display them when debugging). Yeah, and in production mode it sticks it after the end of your ...which I'm sure is bad. Does anyone know how to hack this off? Why is it there anyway? I'm sure it exposes some information you really don't want h4x0r5 to have about your software setup... cheers, Chris ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] HTML Widgets, In-place editing in Zope
Phill Hugo wrote: > www.opencookie.org/widgets/index_html > > www.opencookie.org/widgets/index_html?editmode=1 Cool :-) > widgets is an external method which will be on Zope.org next week if all > goes well. Looking forward to it... 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] Can't export only an ObjectManager
Andy McKay wrote: > How do I export a folder using the Import/Export tab with exporting all the > subobjects? You do mean 'wihout', don't you? > (Stupidest suggestion so far: delete all subjects, export, undelete) That's the only way I can think of... A patch that added a checkbox and a little more logic to the export code should do the job... cheers, Chris ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] What options exist for dealing with tracebacks?
> I would love it if I could set some debug environment variable, run with > -D="[EMAIL PROTECTED]" or subclass some Error class and have tracebacks > mailed > to me. I wouldn't even care about the flood of email. At least I'd > have > all the inputs. Although Didier Georgieff has given a thorough reply, I couldn't resist a quick plug... ;-) http://www.zope.org/Members/JohnC/StandardErrorMessage which has info on using and customising error pages, including e-mailing of errors. Hope that's also of interest. John -- John Chandler / Software Developer / New Information Paradigms Ltd [ Linux in the office, AmigaOS in the home, PalmOS in the pocket ] The opinions above aren't those of my company... ...but then, they aren't really mine either. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Data.fs problem!!!
Hi, I've some problems with my Zope database! I don't know what I've done wrong, but the only thing I did was installing the beta of MP. After the installation everything was still normal. Then I wanted to shutdown Zope and restard it in debug mode. Restarting in debug gave an error, but zope restarted. After this strange things happened : eg. I've a folder QC in which another folder Mammo is. Looking on the left panel (thus the Zope tree). I see QC but no subfolder Mammo. However, if I look into the folder of QC then Mammo folder is still their, although clicking on it gives the error that the Zope resource can't be found. Ok. Lucky I had a backup of QC.zexp. Unfortunately importing this file results in the same problem. I also moved the data.fs file and all the other things to another place and Zope created a new Data.fs file. I also removed the beta of MP and installed the old MP. To no offence, it still give this strange error. Now, I'm sure my exported file is not corrupt, but how can I install it so that it works! Important, because this was a service being used and I don't like to write it again. Thanks for any advice. Tom. ___ 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] Use of the :records variable type and ZSQL methods
> > Error Type: Bad Request > Error Value: ['Field1', 'Field2'] > > Here is the code I used and sqlTest is the ZSQL Method that just inserts the > two fields into a test DB: > > > > > > What am I doing wrong? > you'll have to feed a named argument to your Zsql method (that is in its definition). In this case that would be testlist. Then it should work as expected hth Rik ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Single html checkbox as list?
just do something like: good luck Jerome ALET - [EMAIL PROTECTED] - http://cortex.unice.fr/~jerome Faculte de Medecine de Nice - http://noe.unice.fr - Tel: 04 93 37 76 30 28 Avenue de Valombrose - 06107 NICE Cedex 2 - FRANCE On Mon, 25 Sep 2000 [EMAIL PROTECTED] wrote: > Hi, > > since I didn't find anything on that topic, the solution might be > obvious but I ran into the following problem: > > I have a html form with several checkboxes. If one checkbox is > selected, the variable containing the result is represented by a > string, if two or more checkboxes are selected the variable is > represented by a list. > > Is there a way to force the variable to be a list, even if only one > checkbox is selected? > > greetings > clamor > > > ___ > 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] Single html checkbox as list?
+---[ [EMAIL PROTECTED] ]-- | Hi, ... | Is there a way to force the variable to be a list, even if only one | checkbox is selected? | name="foo:list" will force it to be a list. -- 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 ABN: 83 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] Single html checkbox as list?
Hi, since I didn't find anything on that topic, the solution might be obvious but I ran into the following problem: I have a html form with several checkboxes. If one checkbox is selected, the variable containing the result is represented by a string, if two or more checkboxes are selected the variable is represented by a list. Is there a way to force the variable to be a list, even if only one checkbox is selected? greetings clamor ___ 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 )