Re: [Zope-dev] getting request variables values

2000-07-21 Thread Steve Alexander
Chris Withers wrote: Evan Simpson wrote: The value you're after is stored in the 'environ' section of the request. Unlike 'other' and 'cookies' keys, 'environ' keys can't generally be fetched as attributes or keys of REQUEST. You need to access them as REQUEST.environ['keyname'].

Re: [Zope-dev] getting request variables values

2000-07-21 Thread Steve Alexander
Steve Alexander wrote: However, looking in the code, it starts off by looking in "other", and doesn't look in "environ" at all. I suggest a patch to go right after the method's docstring: def __getitem__(self,key, default=_marker, # Any special internal marker

Re: [Zope-dev] getting request variables values

2000-07-21 Thread Steve Alexander
Steve Alexander wrote: My question is "why was __getitem__ of HTTPRequest.py designed this way?". Is there a good reason that it filters the keys according to membership of a standard-cgi-keys list, or whether they start with 'HTTP_' ? Would there be any disadvantage to altering

[Zope-dev] zzLocale 0-0-3a released on Zope Japan

2000-07-21 Thread Yves-Eric Martin
Hi Zopistas, This is the second alpha release of zzLocale, a Zope locale support Product. zzLocale provides a framework for Zope interface internationalization (Zope and Products management screens). The localization is done on a per request basis, which allows developers from

Re: [Zope-dev] getting request variables values

2000-07-21 Thread Shane Hathaway
Steve Alexander wrote: My question is "why was __getitem__ of HTTPRequest.py designed this way?". Is there a good reason that it filters the keys according to membership of a standard-cgi-keys list, or whether they start with 'HTTP_' ? Would there be any disadvantage to altering

Re: [Zope-dev] Redirecting from the manage interfaces.

2000-07-21 Thread Dieter Maurer
Erik Enge wrote: call, it won't redirect. So you should be able to achieve the same results just by invoking manage_addImage without including the REQUEST object. But I have to pass something with the REQUEST, or else it won't add the image, right? I do not think so. "manage_addImage"

[Zope] HowTo use LoginManager

2000-07-21 Thread Wolfgang Klinger
Hi! There's no HowTo ... so my question is ... (my friend who runs the server hasn't installed it yet) How do I use LoginManager? I'm relatively new to Zope .. so please be quite detailed in your explanations. Thx! (What I'm searching for are details or whatever) TIA Wolfgang

Re: [Zope] gvib InterBase DA, undefined symbol crypt

2000-07-21 Thread David Trudgett
At 2000-07-21 00:40 -0400, Jeff Hoffman [EMAIL PROTECTED] wrote: On Thu, 20 Jul 2000, David Trudgett wrote: Hi all, After having successfully installed the gvib InterBase DA on a test machine running Red Hat Linux 6.1, I'm not having the same luck on the production box running RH

[Zope] all DTML Methods of current folder and subfolder

2000-07-21 Thread Wolfgang Klinger
Hi! I have a dtml method in a folder which should display all "document_title"s of all "DTML Method"s in the current folder and all sub folders! (should work as navigation frame) How can I do that? I tried dtml-in "Info.objectValues(['DTML Method'])" where "Info" is the current folder where

Re: [Zope] Broken products in 2.2 - bug?

2000-07-21 Thread Peter Arvidsson
Unfortunately I deleted the product and then made an equal product (after that it worked) so I cant tell if this was a bug. I'll let someone else who has the same problems try it. Peter Dieter Maurer skrev: Peter Arvidsson writes: The strange thing is that the product itself is not broken

[Zope] Datebug?

2000-07-21 Thread Peter Arvidsson
I have encountered a strange and irritating problem. As I live in Sweden we use timezone 'GMT+1'. I have a form like this: dtml-var standard_html_header form action="a" input type="text" size="15" name="date:date" value="dtml-var ZopeTime fmt=%Y-%m-%d" input type="submit" /form dtml-var

Re: [Zope] Display the icon of a meta_type

2000-07-21 Thread Gerard Metrailler Jr.
Hello, At 22:42 20.07.2000 +, Maik Roeder wrote: I am using a ZCatalog object on my site. When I do a query, I want the results do display the meta_type of the document found with it's icon. I've seen that on Zope.org and loved this idea... the only problem is that it is a method on

[Zope] a very simple question

2000-07-21 Thread pbiot
Sorry for this question, but I want to understand a DTML example which is in the DTML.pdf The sendmail example oblige to put the different variables on : - the variables subject and body are supplied from the FeedbackForm - the variables support and feedback are supplied from Folder

Re: [Zope] Datebug?

2000-07-21 Thread Chris Withers
Peter Arvidsson wrote: It cant really be a timezone issue because it is decreasing the date by 24 hours and I only live 1 hour from GMT. The date on my computer and the server are correct. Does someone knows why this happens when I use "fmt" or is this a DateTime bug? It could be one of a

Re: [Zope] Enitity syntax and 2.2

2000-07-21 Thread Chris Withers
[EMAIL PROTECTED] wrote: And how about: dtml.missing-REQUEST.form['foo']; over my dead body! ;-) I thought the point of the entity syntax was to keep it simple... which including python expressions does not... cheers, Chris ___ Zope maillist

RE: [Zope] URL quoting in python

2000-07-21 Thread Duncan Booth
I often create an external method for this... em: def url_quote(s): import urllib return urllib.quote_plus(s, safe='') Silly, but it works. I think the alternative is to hack the DT_Util.py module in the DocumentTemplate directory to expose urllib or a derived function.

Re: [Zope] Entity syntax and 2.2

2000-07-21 Thread andres
On Fri, Jul 21, 2000 at 10:05:08AM +0100, Chris Withers wrote: [EMAIL PROTECTED] wrote: And how about: dtml.missing-REQUEST.form['foo']; over my dead body! ;-) I thought the point of the entity syntax was to keep it simple... which including python expressions does not...

[Zope] (XML-RPC) Calling Database.manage_pack

2000-07-21 Thread Oleg Broytmann
Hello! I wrote a simple script to pack Data.fs on a regular basis. It is very simple, actually, just urllib.urllretrieve("http://my.zope/Control_Panel/Database/manage_pack?days:float=3") (a little bit harder than that, but I did it) Now I am trying to achieve the same with XML-RPC. No

Re: [Zope] second step (many of You are going to laungh ;-)

2000-07-21 Thread Peter Bengtsson
Use the QuickStart tutorial included in the Zope. Or. Go back to zope.org and download various tutorials A really useful thing to do, is to understand how Zope is built and what you can do with it. There are lots of good article links on the .org site. - Original Message - From: Vincent

[Zope] zzLocale 0-0-3a released on Zope Japan

2000-07-21 Thread Yves-Eric Martin
Hi Zopistas, This is the second alpha release of zzLocale, a Zope locale support Product. zzLocale provides a framework for Zope interface internationalization (Zope and Products management screens). The localization is done on a per request basis, which allows developers from

Re: [Zope] Entity syntax and 2.2

2000-07-21 Thread Andrew Kenneth Milton
+[ [EMAIL PROTECTED] ]- | | Perhaps you can suggest a simple way to do something like the following: | | dtml-if "REQUEST.form.has_key('foo')" | dtml-let previouslyEnteredValue="REQUEST.form['foo'] | input type=text ...

Re: [Zope] all DTML Methods of current folder and subfolder

2000-07-21 Thread Gerard Metrailler Jr.
Hello, At 07:21 21.07.2000 +, Wolfgang Klinger wrote: I have a dtml method in a folder which should display all "document_title"s of all "DTML Method"s in the current folder and all sub folders! (should work as navigation frame) How can I do that? I tried dtml-in "Info.objectValues(['DTML

[Zope] ZEO

2000-07-21 Thread Sven Hohage
Hallo, is the filesize of the Zope Storage Server also limited to 2 GB? Thanks ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related

Re: [Zope] all DTML Methods of current folder and subfolder

2000-07-21 Thread George Donnelly
sorry to butt-in on this thread :^) how can i get the contents of sub-folders as well? i tried ZopeFind but i am just getting errors. thanks Regards, GEORGE DONNELLY [EMAIL PROTECTED] http://cyklotron.com/ The first precondition of self-esteem is that radiant selfishness of soul which desires

Re: [Zope] ZEO

2000-07-21 Thread Martijn Pieters
On Fri, Jul 21, 2000 at 12:46:11PM +0200, Sven Hohage wrote: is the filesize of the Zope Storage Server also limited to 2 GB? If you are running on a default Linux filesystem, the answer is yes. ZODB FileStorage isn't limited to 2GB, it's the filesystem that can't handle larger files that is

Re: [Zope] Entity syntax and 2.2

2000-07-21 Thread andres
Thanks guys, Replace the whole mess with:- input type="TEXT" value="dtml.missing-foo;" input type=text ... value="dtml-var "REQUEST.for['foo']" html_quote missing -- Andres Corrada-Emmanuel Email: [EMAIL PROTECTED]

[Zope] ZUBB/Ztree permission problem

2000-07-21 Thread Riku Voipio
Unless the ZDiscussion object has Anonymous/access information permission, nobody, including manager and owner, can't access the The Zdiscussion which has any content. running ZDiscussions-0.3.2 on Zope 2.1.6-5 Debian/Frozen. traceback follows: Traceback (innermost last): File

Re: [Zope] Entity syntax and 2.2

2000-07-21 Thread Shane Hathaway
[EMAIL PROTECTED] wrote: Perhaps you can suggest a simple way to do something like the following: dtml-if "REQUEST.form.has_key('foo')" dtml-let previouslyEnteredValue="REQUEST.form['foo'] input type=text ... value="dtml-previouslyEnteredValue;" /dtml-let dtml-else input

Re: [Zope] zzLocale 0-0-3a released on Zope Japan

2000-07-21 Thread Peter Bengtsson
IN SWEDISH - ABOUT SWEDISH Finns det ett intresse av fler an mig att jobba med detta? Om, det gor det, hur manga blir vi, och hur ska vi lagga upp arbetet? Smidigast vore ju att ge deltagare access till .dtml filer, med version'ing, pa en och samma server. Syftet ar nog mest att skriva om sidor

RE: [Zope] ZCatalog dynamic sites

2000-07-21 Thread Chris McDonough
Dimitris, Yes, ZCatalog cannot index methods which require call arguments. Pages generated from SQL data either use "brains" of SQL methods or squery string arguments of a DTML method, and therefore need to be passed arguments and cannot be cataloged. -Original Message- From: [EMAIL

Re: [Zope] Zope-killer: zSQL method that crashes Zope

2000-07-21 Thread Daniel Rusch
If it matters to anyone, Andy isn't the only one with Zope killing ZSQL Methods I just spent way too much time trying to figure out why our stage enviroment was crashing. Turns out to be a ZSQL method which fails. Of course it wasn't wrapped in a try/except . Oh well, so much for

[Zope] Zope and Mac

2000-07-21 Thread Tom Scheidt
Hi, I'm having problems installing products from a Macintosh. I downloaded them onto my hard drive and uncompressed the .tgz files with Stuffit Expander. I then FTPed them with Fetch to my server, then restarted Zope. The products were listed in the Product Management folder, but they had broken

Re: [Zope] Datebug?

2000-07-21 Thread Erich Seifert
Hi Peter, I had the same problem. The fmt tag outputs GMT time but the methods of DateTime, i.e. day(), month(), year(), etc. do not. So I used them. Peter Arvidsson wrote: Forgot to say that... I run 2.2 final :/ Chris Withers skrev: Peter Arvidsson wrote: It cant really be a

Re: [Zope] Zope and Mac

2000-07-21 Thread Peter Bengtsson
Have had similar problems, but not on Mac, but on Windows98. My problem has been that IE saves files from zope.org with a different extension than that show on the Products page. This has caused archives to be incomplete, hence broken products. If you download a xxx.tar.gz, make sure it's called

[Zope] Catalog contains items, but no results

2000-07-21 Thread ed colmar
Hmmm, more catalog strangeness.. I've finally gotten my product to add objects to a catalog correctly (with the correct URL) Whee! On my 2.2 development machine all appears fine, but on the 2.1.6 production server all searches come back with no results. When I look in "cataloged objects"

[Zope] Zope with Apache

2000-07-21 Thread James W. Howe
We are running Zope behind an Apache server. We've got things configured so that it mostly works. However, we noticed that the "breadcrumbs" list at the top of a workspace screen doesn't work correctly. For example, if I'm looking at the object /Foo/Bar/Baz, the list of items in the

Re: [Zope] Zope and Mac

2000-07-21 Thread Tom Scheidt
Thanks for your help. It seems to download an uncompress fine. It's alos showing up in the Zope management interface, but I get this when I look at the product in the Product Management Folder: Traceback (innermost last): File "/usr/local/Zope-2.1.5-src/lib/python/OFS/Application.py", line

[Zope] RE: [ Zope] ZCatalog dynamic sites

2000-07-21 Thread Corey Zimmet
Write a brains class that you would call to catalog and uncatalog insert/update/delete ZSQLmethods: For example: class MyObject: """ Some arbitrary object - MyObjectID - the id of your object MyCatalog - the catalog you want to use to index the sql

Re: [Zope] Zope and Mac

2000-07-21 Thread Phil Harris
Peter, If you mean that IE renames the file to xxx.ar instaed of xxx.tar.gz then all you have to do is rename it after you have downloaded and all will be well. hth Phil - Original Message - From: "Peter Bengtsson" [EMAIL PROTECTED] To: "Tom Scheidt" [EMAIL PROTECTED] Cc: [EMAIL

RE: [Zope] ZBabel performance??

2000-07-21 Thread Albert Langer
Wow! From 1) to 2) - both you and Zope DELIVER 1) "I can look at adding caching into ZBabel, but, it's not high on my priority list at the moment... I'm currently pounding the bricks. I'll try to make time over the weekend to have a look (I may be able to use the Zope Machinery to do the

[Zope] more catalog issues

2000-07-21 Thread ed colmar
Strange... Now my 2.2 catalog is giving me the problems were supposed to be bugs in zope (catalog) 2.1.5 and lower... Inconsistancy, and missing indexes...??? When I update the catalog it corrects itself. h Any clues as to why my objects get cataloged incorrectly to start with? Is there

[Zope] LoginManager ... USER SOURCE

2000-07-21 Thread Wolfgang Klinger
Hi! LoginManager needs a User Source ... what can I use as User Source? I need detailed instructions ;-) Wolfgang ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! **

[Zope] request for advice

2000-07-21 Thread Seb Bacon
Hello folks, I'm just beginning to design my first big Zope application. I'm writing to ask zopististitiatatas for some advice, since I'm a bit of a newbie and I want to make sure: [a] I reuse as much code as possible [b] I make my code as reusable as possible [c] my application is stable and

[Zope] Wiki apps other than ZWiki 0.6.1

2000-07-21 Thread Geoff Gardiner
I've been happily adding ManagedMode functionality to ZWiki 0.6.1 but wonder what other Wiki-on/in-Zope technologies there are that I should consider working with. I'm looking for cataloging, graphics upload, differencing, rename and delete and don't really want to have to work on them myself if

Re: [Zope] Re: Folderish objects and that BASE tag...

2000-07-21 Thread R. David Murray
On Mon, 17 Jul 2000, Chris Withers wrote: If you go to: http://my.zope/site/file.html/ It will just return the DTML document :-) I wonder if it is redirecting to http://my.zope/site/file.html? I belive that it is returning: http://my.zope/site/file.html/index_html --RDM

Re: [Zope] request for advice

2000-07-21 Thread Patrick Lewis
On Fri, Jul 21, 2000 at 04:29:01PM +0100, Seb Bacon wrote: Hello folks, I'm just beginning to design my first big Zope application. I'm writing to ask zopististitiatatas for some advice, since I'm a bit of a newbie and I want to make sure: [a] I reuse as much code as possible [b] I

[Zope] Monitor

2000-07-21 Thread darryl
Isn't anyone using the medusa/monitor_client.py script to debug their zopes? I can start it up fine and view the sequence of objects I have created, but my question is how do I access the return value of a DTML method? The Zope Debugging how-to is a little scant on the subject. -D

RE: [Zope] request for advice

2000-07-21 Thread Chris McDonough
Steve Spicklmire has also written the ZCVSMixin product (which I've never actually used) that might let you integration filesystem versioning with Zope more easily as well... -Original Message- From: Patrick Lewis [mailto:[EMAIL PROTECTED]] Sent: Friday, July 21, 2000 12:50 PM To:

Re: [Zope] ZServer Statistics

2000-07-21 Thread Robert Wohlfahrt
Hi, Is there way to determine how many (and which)pages ZServer serves? I am running ZServer as my primary Have a look into /path_to_your_zope/var/Z2.log Robert -- Robert Wohlfahrt ([EMAIL PROTECTED]) Tel: 0179 / 2980074 Fax: 0351 / 2880145 ___

RE: [Zope] ZBabel performance??

2000-07-21 Thread Albert Langer
For non-cacheable pages that can't be speeded up by a reverse proxy, there might be two other possibilities worth looking at as well. If Zbabel is mainly needed for the production/maintenance of translations rather than for really dynamic pages it might be possible to use ZMirror for semi-static

[Zope] review product proposal

2000-07-21 Thread kamon ayeva
Hi, "J. Atwood" (I was unable to get his email from the mailing list search interface) wrote some days ago: On my list of products that I would like to build / help build ZCLassifieds: A product that allows users to post classifieds for sale with categories, pictures, start and end dates,

Re: [Zope] Monitor

2000-07-21 Thread Shane Hathaway
[EMAIL PROTECTED] wrote: Isn't anyone using the medusa/monitor_client.py script to debug their zopes? I can start it up fine and view the sequence of objects I have created, but my question is how do I access the return value of a DTML method? The Zope Debugging how-to is a little scant on

Re: [Zope] Re: [Zope-dev] Datebug?

2000-07-21 Thread Bill Anderson
Peter Arvidsson wrote: try this: input type="text" value="dtml-var "date+0.5" fmt=%Y-%m-%d" I think it's a round problem with the float representation of the date. martin Since it is adding 24 hours Are you _sure_ it is adding 24 hours? The string you gave only shows

Re: [Zope] all DTML Methods of current folder and subfolder

2000-07-21 Thread Dieter Maurer
Wolfgang Klinger writes: I have a dtml method in a folder which should display all "document_title"s of all "DTML Method"s in the current folder and all sub folders! I tried dtml-in "Info.objectValues(['DTML Method'])" where "Info" is the current folder where the method

Re: [Zope] ZCatalog dynamic sites

2000-07-21 Thread Dieter Maurer
I have a Zope site that uses MySQL to dynamically create some pages. What I want is the ability to search throughout the site, INCLUDING the pages that are database-driven. It seems to me that ZCatalog only=20 finds items that exist *in zope*. Is it something ZCatalog can't do or am

[Zope] dumb dtml-in question

2000-07-21 Thread Tom Scheidt
I'd like to use the dtml-in tag to get the number of files in a specific folder. Tom Scheidt | www.falsemirror.com | [EMAIL PROTECTED] --- ___ Zope maillist - [EMAIL PROTECTED]

Re: [Zope] dumb dtml-in question

2000-07-21 Thread Andy McKay
dtml-in "objectValues()" dtml-var sequence-length /dtml-in This prints out the value every time though so you might do a return or do a request set depending upon what you are doing, or use a first / last system... dtml-in "objectValues()" dtml-if sequence-end dtml-var sequence-length /dtml-if

[Zope] An observation about manage_* methods

2000-07-21 Thread albert boulanger
This has a question to it if I am not overlooking something. I often want to design dtml_methods that allow the end user to manage content under his control. An example of a typical manage method that you often see is like: From TinyTable.py: def manage_editData(self, data, REQUEST=None):

Re: [Zope] How to require an @ symbol in email form field??

2000-07-21 Thread R. David Murray
On Tue, 18 Jul 2000, Duncan Booth wrote: Use javascript to check that all required fields are present before the form is actually submitted. Here is some of the code I use: Note, however, that using Javascript to do the checking client side is only useful as a user convenience. If you have

Re: [Zope] A Better Way (Stupid DTML code)

2000-07-21 Thread Andy McKay
Other smug answers include: - dont put - in your SQL methods - use your SQL to give the variable a different name - use python - Original Message - From: "Phil Harris" [EMAIL PROTECTED] To: [EMAIL PROTECTED]; "Dennis Baker" [EMAIL PROTECTED] Sent: Friday, July 21, 2000 4:29 PM Subject:

Re: [Zope] dumb dtml-in question

2000-07-21 Thread Jonothan Farr
How about just: dtml-var "_.len(folder.objectIds())" --jfarr "Perl is worse than Python because people wanted it worse." Larry Wall, 14 Oct 1998 - Original Message - From: Andy McKay [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, July 21, 2000 3:53 PM Subject: Re: [Zope] dumb

[Zope] packing on ZSPs (was Re: [Zope] zope.org down)

2000-07-21 Thread Simon Michael
ethan mindlace fremen [EMAIL PROTECTED] writes: Well, folks, zope.org is down again, because the site was packed without enough space on the device. ... To keep this from happening again, we will be adding an additional 40gb drive that should do us just fine until the Data.fs hits 2 GB. This

[Zope] Re: Zope pcgi

2000-07-21 Thread Bill Anderson
Michael Arndt wrote: Hi Bill this seems to address our Problem: Response: Some platforms may require setting: PCGI_CLOSE_FDS=0 in the pcgi resource file, since configure cannot reliably discover this at compile

Re: [Zope] URL quoting in python

2000-07-21 Thread Kapil Thangavelu
Thanks for the tip Duncan, I find it strange that this utility function is not in the _ namepace... time to make a trip to the Tracker. It seems like a url-encoding function should be directly accessible from zope. Thanks Kapil Duncan Booth wrote: I often create an external method for

Re: [Zope] packing on ZSPs (was Re: [Zope] zope.org down)

2000-07-21 Thread Loren Stafford
- Original Message - From: "Simon Michael" [EMAIL PROTECTED] Related, though specific to Codeit users: I need to pack to avoid the above, but fear the data-corrupting packing bugs which were fixed in more recent versions of zope. Codeit, perhaps time for an upgrade ? At least to

Re: [Zope] Working with Lists

2000-07-21 Thread Dieter Maurer
Terry Babbey writes: Here is my code and my error. dtml-in "_.getitem(ProgCode,0).CL" dtml-let item=sequence-item dtml-var "item[0]" /dtml-let BR /dtml-in Zope has encountered an error while publishing this resource. Error Type: IndexError

Re: [Zope] NESTED IN STATEMENTS AND PASSING VARIABLES in DTML

2000-07-21 Thread Dieter Maurer
[EMAIL PROTECTED] writes: This is FAQ material and should be inserted into either the DTML programmer's guide or the ZSQL Methods guide. It bites everyone who uses SQL methods eventually. ZSQL methods do not perform acquisition, but will look at REQUEST, change it to. A minor

Re: [Zope] GUF Authentication Problems

2000-07-21 Thread Andy McKay
Nope that was a lie. I still have the same problem. Damn. - Original Message - From: "Andy McKay" [EMAIL PROTECTED] To: "Mario Premke" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, July 19, 2000 4:39 PM Subject: Re: [Zope] GUF Authentication Problems Thanks to you, and