[Zope] How to use management tabs not for management
I want to create create HTML pages with my own Zopish looking tabs that have nothing to do with Zope management. Is there a simple way to use manage_tabs for this, or do I need to make my own version of it? Everything I've tried gets me caught up in the Zope management system. ___ Ron Bickers Logic Etc, Inc. [EMAIL PROTECTED] ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] ZopeTime().Date() confusion
This is driving me batty. I am trying to do something very simple. I want a method to perform an update no more than once a day. I know there are other approaches to this issue -- such as using bobobase_modification_time, not to mention Xron -- but I would like to use a date property for reasons I won't go into here. I am using Zope 2.2.1. Every time the method updates, I update the date property called last_updated with this: This gives me a date that appears to be accurate, such as 2000/10/01. Then, every time the page gets called, I want to check to see if it is time to call the method, so I use: don't update method update method store new last_updated This worked fine until, at the appointed hour, last_updated began to sense that even though it appeared to be "2000/10/01" (and even when I typed it in that way by hand), the time in Greenwich was actually more important to its sense of identity than was its appearance to me. So even when ZopeTime().Date() gave me 2000/10/01, last_updated.isCurrentDay() would evaluate to false(!). So the method would update every time the page was called. As a kluge, I changed my update command to , which works, but causes the update to occur, I presume, at midnight GMT, rather than midnight here, which would be nicer (actually, I'd love to be able to control the precise hour updates should occur, but I can't figure out how to do that). This is also complicated -- but not relevantly, I hope? -- by the fact that the Zope installation seems to think the time zone is GMT+2 rather than GMT-5 (I'm in Texas). I understand that the previously counterintuitive use of strftime was changed for 2.2.1 -- but I am not using strftime, I am using Date() and isCurrentDay(). I've tried all sorts of combinations of switching time zones but succeeded only in confusing myself. So three questions: 1. Is there a better way to do this (still using a property called last_updated)? 2. Does the use of Date() and isCurrentDay(), etc. still switch everything to GMT, even though strftime was changed? If so, what is the list of methods that compare GMT, and which that compare the local installation time? 3. This appears to be a perfect example of something that should be very simple becoming needlessly complicated. Couldn't some more user-friendly ("beginner") time or date objects be implemented in DTML? Thanks for any help! Larry Albert [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] Limited file size editing...
Just curious... I've seen several times on this list people pointing out that the limit on the size of files you can edit in Zope via the web interface is a result of your browser. The sizes I recall were somewhere in the vacinity of 64K. I currently have a 470K file open for editing in Netscape 4.75 (under Linux). What are the limits on various browsers? Ignore me if you think this is too far off topic Curtis. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Allright, who broke acquisition?
Hi everyone, I'm running Zope 2.2.2 on Linux. All of the sudden I've got some DTML methods that are no longer being acquired in subfolders. I changed the HTML a bit and the whole thing stopped working! I've got some little navigation menus that I'd like to reuse in subfolders by simply referring to them via and having them acquired from the parent folder. Anybody know when this is happening? Here's a sample of the code and the traceback: Quick Links Site map District Information Site feedback http://mail.isd197.k12.mn.us/servlet/webacc">E-Mail System About our site Web-devel Page Any ideas? -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 )
[Zope] How to use manage_addLocalFS
Hi all, I want to create an LocalFS object. I use but that doesn´t work. Simular to Any ideas? May I have to use a externel methode like in the mail I posted before?
[Zope] ANN: ZUBB/ZDiscussions 0.6.0 Released
http://www.zope.com/Members/BwanaZulia/ZUBB With the help of Jeffrey and Angel here is 0.6.0 Changes in Version 0.6.0 Fixed the problem (again) with 2.2.2 (submitted by Angel Garcia) Added message count to the main view (submitted by Jeffrey Harris) Added last post to main view (submitted by Jeffrey Harris) Modified thread view so it will show entire thread (Submitted by Jeffrey Harris) Modified both README and header of ZDiscussions.py Upgraded status to STABLE from DEVELOPMENT as it has now been in production on five of my sites with no problems. Example Sites: http://www.zope.org/Members/BwanaZulia/ZUBB/EXAMPLES Report bugs and such to: http://www.bwanazulia.com/discussions/test/ If you have a ZUBB/ZDiscussion installation and would like to be added to the list please let me know. Thanks, J ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] Hexcolors and DTML
On Sun, 01 Oct 2000, Peter Bengtsson wrote: > This might be a math-python question but... > All I want to do is to print out the hexvalue of all black/white colors for > a "fading HTML table". > > #ff, #fefefe, #fdfdfd, ... #020202, #010101, #00 > > I can do a loop from 1 to 255, but I don't know where to go from there. > ">BLAH > BTW, are there non-websafe greycolors? Can the loop be for only websafe > ones? > According to a recent study, there are approximately 13 'web safe' colours, out of the full 16,777,216. Can you be bothered restricting yourself to support the 'lowest common denominator' ? If you really want to know what they are, do a quick search back on www.slashdot.org for the link. Have a better one, Curtis Maloney ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] sendmail tag strangeness
Hi Scott ! Scott Burton wrote: > The problem is, I have to put in the recipient by hand. This method is > supposed to email a recipient after filling out a form so the recipient > has to be a variable. When I try using or &dtml-recipient; > or _[recipient] I still have errors or the SMTP log shows that the variable > does not get evaluated and shows up as a string of <&dtml-recipient;> > as being the recipient in the SMTP header. > > Is this a bug? Is there something else I could try? I have tested the following code on the ZDP site, and it works: To: <> From: The CommentClass constructor <[EMAIL PROTECTED]> Subject: A new Comment has been added to ZDP ! Dear Tom ! Under the following URL, a Comment has been added: URL: / Name: Nickname: Content: Have a nice day, The CommentClass constructor (http://zdp.zope.org/Control_Panel/Products/DocumentFolderProduct/CommentClass_add/manage_main) Zope version: Zope 2.1.3 (source release, python 1.5.2, linux2) Python version: 1.5.2 (#1, Sep 17 1999, 20:15:36) [GCC egcs-2.91.66 19990314/Linux (egcs- System Platform: linux-i386 Process ID: 1478 (1024) Running for: 34 days 4 hours 6 min 32 sec Maybe you can test the above code and see if it works. It may be possible to track down the bug by comparing the code from 2.1.3 with the code from your Zope version. Regards, Maik Röder -- Uzopia - Digging la vida Zopa - http://uzopia.editthispage.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] sendmail tag strangeness
Title: sendmail tag strangeness I have searched around about sendmail tag problems on the list and have found similar answers to my question. However none of them work. I have used this syntax To: <> From: <[EMAIL PROTECTED]> Subject: body I pay close attention to not having any whitespace before the To: and From: headers. I receive this error from multiple SMTP hosts: 503 must have sender and recipient first I can send an email with this syntax: body... The problem is, I have to put in the recipient by hand. This method is supposed to email a recipient after filling out a form so the recipient has to be a variable. When I try using or &dtml-recipient; or _[recipient] I still have errors or the SMTP log shows that the variable does not get evaluated and shows up as a string of <&dtml-recipient;> as being the recipient in the SMTP header. Is this a bug? Is there something else I could try? TIA Scott B.
[Zope] LocalFS manage_addFolder solution?
Hi all, while searching for a solution to add a folder to LocalFS, I found this message: __ > Folder creation isn't really supported in LocalFS at the moment. Very > low level support is there (module function _save_Folder) but it's not > intended to be called externally and there doesn't seem to be any path > to call it. There is certainly not a local definition of> manage_addFolder in LocalDirectory. This is on my list of stuff to do > for our site, but I don't know if it's on Jonothan's list for the real> product.It is. It's hard. I'm going to need some help with this one, I'm afraid.--jfarr__ My question: Is there now a solution to perfom manage_addFolder to LocalFS? Thank You Jens
Re: [Zope] SQL errors
Of course, thank you. That works just fine. - Original Message - From: "Dieter Maurer" <[EMAIL PROTECTED]> To: "Andy McKay" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, September 29, 2000 2:55 PM Subject: Re: [Zope] SQL errors > Andy McKay writes: > > Using ZODBC Database Adapter to connect to an MSSQL and I can call the sql > > method in dtml eg: > > > > > > > > > > Error! > > > > > > But does anyone know a way of trapping the specific error eg: database down, > > key violation etc...? Or do I have to hack ZODBC to return different errors? > You know the "error_value" variable defined inside the "dtml-except"? > > Maybe, it can give you additional information about the kind > of error. > If it is the wrong one, reraise the exception. > > > Dieter > > ___ > Zope maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) > ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] Z class complexities
Hi Nolan ! Nolan Darilek wrote: > > I'm having a kinda complex problem, and hopefully my explanation can > do it justice. :) > > I'm using zope to construct an XML document from the contents of a > folder. Basically, the folder's index.xml iterates through the > folder's contents, rendering each object to produce the final > document. The objects are separate z classes which combine various > properties into a small snippet of the larger XML document. > > The z class has a render() method which combines the properties into > the XML snippet. I have a Render view configured to run this method, > and it works. (Though for some reason it adds a ..., which > I'd really like to get rid of. How can I?) Attach the following code: > I've written the index_html to collect the individual objects and > concatenate their contents into an XML document. > > > > > > > > Something like this should work if you have a DTML Method to_xml: Place the to_xml in the ESPPackage ZClass Regards, Maik Röder -- Uzopia - Digging la vida Zopa - http://uzopia.editthispage.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] handling date properties in
Hi ! seb wrote: > > Hi, > > > ... I want to display only those jobs > > for which the current date is on or after the 'date_posted' and on or > > before 'offer_expires'. I've tried a bunch of things, but haven't hit upon > > the winning answer. Any takers? > > Try > > > > > Job: > > > I have added it to he ZSnippets: http://zdp.zope.org/projects/zsnippet/snippets/time/expiration Regards, Maik Röder -- Uzopia - Digging la vida Zopa - http://uzopia.editthispage.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] working crontab restart script on FreeBsd
I was trying to do this for a little while so in case anyone's interested, here it is. Most of the code was kindly sent to me by other people so do not blame me for the mistakes. This script(auto) checks ZOPE every 15'th minute and if it does not run, it will restart it. It has been working without a problem on FreeBSD 4.0 after I patched ZOPE's pidfile for LF's. (without that little operation it returns an error message and restarts ZOPE every time without checking it) I am running this from crontab: SHELL=/bin/sh 0,15,30,45 * * * * /home/user/auto And this script(auto) is sitting in my user directory: #!/bin/sh ZOPEDIR="/home/user/zope" INFOMAIL="[EMAIL PROTECTED]" STARTFILE="$ZOPEDIR/start" STOPFILE="$ZOPEDIR/stop" PIDFILE="$ZOPEDIR/var/Z2.pid" PID1ACTIVE=0 PID2ACTIVE=0 if [ -x $STARTFILE ]; then if [ -r $PIDFILE ]; then PID1=`cut -d" " -f1 $PIDFILE` PID2=`cut -d" " -f2 $PIDFILE` if kill -0 $PID1 2>/dev/null then PID1ACTIVE=1 fi if kill -0 $PID2 2>/dev/null then PID2ACTIVE=1 fi fi if [ $PID1ACTIVE -eq 0 -o $PID2ACTIVE -eq 0 ]; then $STOPFILE >/dev/null 2>&1 sleep 10 $STARTFILE date | mail -s"Zope restarted" $INFOMAIL >/dev/null 2>&1 fi fi Regards, George ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] handling date properties in
Hi, > ... I want to display only those jobs > for which the current date is on or after the 'date_posted' and on or > before 'offer_expires'. I've tried a bunch of things, but haven't hit upon > the winning answer. Any takers? Try Job: Seb. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] One page for different selections
I'm not sure exactly what you mean when you say > Is there a way to do this without having six files, one for each > other; just having one file with that variable? but one answer to what I think you're asking is Foo Bar and then in the next_page document: this will render the foo object if someone clicks on "Foo", etc. HTH, seb. "Rafael Sepúlveda" wrote: > > Is there a way to make a variable change its value depending which > 'href' the user clicks in order to change the contents of the next > page viewed? > > For example, I want to have a page with six links, and depending which > of them the user clicks, a variable will change its value so the next > page will display that data refered on the link clicked. > ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] One page for different selections
Is there a way to make a variable change its value depending which 'href' the user clicks in order to change the contents of the next page viewed? For example, I want to have a page with six links, and depending which of them the user clicks, a variable will change its value so the next page will display that data refered on the link clicked. Is there a way to do this without having six files, one for each other; just having one file with that variable? -- Rafael Sepúlveda <[EMAIL PROTECTED]> http://www.linuxmty.org/people/rsepulveda 1024D/1981FDE7 F13B C41C 739B 7233 F738 D68E 2947 D868 1981 FDE7 ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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 variable value by other file
Dieter Maurer <[EMAIL PROTECTED]> writes: > It is not necessary for "standard_html_footer" to be > in the same folder than your file. Yes, I realize that it was a mistake in the variable name: - instead of a _. -- Rafael Sepúlveda <[EMAIL PROTECTED]> http://www.linuxmty.org/people/rsepulveda 1024D/1981FDE7 F13B C41C 739B 7233 F738 D68E 2947 D868 1981 FDE7 ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] DTMLTemplate on Zope 2.2.1
I a trying to make the DTMLTemplate Product work on Zope 2.2.1 No luck so far ;( I can add a DTMLTemplate instance but when I try to edit it, I get: Zope Error Zope has encountered an error while publishing this resource. Error Type: TypeError Error Value: first argument must be sequence of strings Traceback (innermost last): File /usr/local/Zope-2.2.1-src/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /usr/local/Zope-2.2.1-src/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/local/Zope-2.2.1-src/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: MyBlocks) File /usr/local/Zope-2.2.1-src/lib/python/ZPublisher/Publish.py, line 165, in publish File /usr/local/Zope-2.2.1-src/lib/python/Zope/__init__.py, line 271, in recordMetaData TypeError: (see above) I believe it worked with Zope 2.1.6. Any hints appreciated. Stefan -- Stefan H. Holek, [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 )