Re:[Zope] Importing data

2000-06-15 Thread Jim Washington
by moving one and then the other into the appropriate var directory to do exporting, or importing as you want. Copies of the original files will come in handy if you confuse easily like me. -- Jim Washington Well, I meant that I have some products w/ data setup in the new .fs. If I copy the

Re: [Zope] DTML-IN Question

2000-06-21 Thread Jim Washington
from the DTML reference page 41, regarding dtml-in: the default setting for the orphan attribute is 3. So you might try: dtml-in ranked_stories size=3 orphan=0 -- Jim Washington Tom Scheidt wrote: Hi my problem is that Im setting my batch size to 3, yet I keep getting 5 items

Re: [Zope] Problem with _[xyz]

2000-07-07 Thread Jim Washington
ence syntax: "_['top']['German']['ActualPages']" or as "_['top'][aLanguage]['ActualPages']" assuming aLanguage is a variable which may be e.g., 'German' I hope this is a helpful hint. -- Jim Washington Of course I want to replace the 'top.German.ActualPages' with a varia

Re: [Zope] Changing my session identity

2000-07-20 Thread Jim Washington
How does one become Anonymous User without stopping/restarting the browser? Is there a special username/password for that? -- Jim Washington Chris McDonough wrote: Oops... sorry... dtml-raise Unauthorized Unauthorized. /dtml-raise Shortcuts on the brain. :-) -Original Message

Re: [Zope] QSurvey 0.23 and Zope 2.2.1b

2000-08-22 Thread Jim Washington
: 1. Upgrade a test zope to 2.2.1b that has the QSurvey working 2. Export that Product 3. See if the new export works with the new 2.2.1b ZODB in a different install. I would also submit a bug report to the Collector. -- Jim Washington Just installed Z2.2.1b, successfully imported some

Re: [Zope] List

2000-10-03 Thread Jim Washington
with (e.g.) theString = string.replace(theString, '[', ' ') (Yes, there are more efficient ways to do this!) Then, once you have a space-delimited list of items, you may use theList = string.split(theString) which will make a list of the words in the string. Return theList. -- Jim

Re: [Zope] help! dtml-if question

2000-10-04 Thread Jim Washington
t returns a list of the things of the type, so checking for a non-zero length of the list will do what you need. -- Jim Washington Dr. Anthony Monta wrote: Hi, I've tried to find a solution myself but now am stuck. I created a little "Blurb" product for a university departme

Re: [Zope] Base ZClass propertysheet management

2000-10-06 Thread Jim Washington
Hi, Seb Go to the "Views" tab of the ProductItem ZClass. You should be able to add another tab referring to propertysheets/Picture/manage. This has worked for me in a similar situation. -- Jim Washington Seb Bacon wrote: Thanks, I'll rephrase it using my real life problem:

[Zope] Re: [Zope-dev] build Zope on linux

2000-10-09 Thread Jim Washington
Hi, Kent Sin dpkg -S tells you what package contains a file: jwashin@vpave5:/$ dpkg -S mymath.h python-dev: /usr/include/python1.5/mymath.h So, it would appear the python-dev package is the one you need. -- Jim Washington Sin Hang Kin wrote: When building current zope cvs, cPickle.c want

Re: [Zope] how to include Flash/SWF objects in Zope website?

2000-10-16 Thread Jim Washington
N.B. You probably should add your Flash/SWF objects as "File" objects. DTML Method/Document objects can do amusing things with binary data, which is why there are "File" objects. -- Jim Washington J. Atwood wrote: You could just upload them into Zope and po

Re: [Zope] How to type check OR better list selector ways

2000-10-20 Thread Jim Washington
Hi, Robert BTW, this is a FAQ, but: use the :list extension in your html. e.g., select multiple name="dtml-var form_save_name:list" dtml-in thelistitems option value="dtml-var sequence-item"dtml-var sequence-item/option /dtml-in /select Works for checkboxes, too! -- Ji

Re: [Zope] QSurvey design

2000-11-01 Thread Jim Washington
and hard-wired the header). Standard_html_footer is still there, so that should already work. -- Jim Washington Stephan Goeldi wrote: How can I change the HTML design of QSurvey 0.25? I want it to use my standard_html_header and footer. ___ Zope

Re: [Zope] ZClasses inheriting property(sheets) : yes/no?

2000-11-10 Thread Jim Washington
are accessible just like any of the child class's properties. -- Jim Washington Aaron Straup Cope wrote: Hi, If I create a ZClass that inherits another ZClass, do I also inherit the latter's properties/propertysheet? From what I've read so far, I thought the answer was yes but I can't se

Re: [Zope] Newbie Question

2000-11-24 Thread Jim Washington
Dany: These should work: dtml-in objectIds dtml-var "_['sequence-item']" /dtml-in -or- dtml-in objectValues dtml-var sequence-item /dtml-in -or- dtml-in objectValues dtml-var some_attribute_of_the_sequence-item /dtml-in --Jim Washington Dany Rioux wrote: I'm pro

Re: [Zope] come see new.zope.org

2000-11-27 Thread Jim Washington
For the time being, most of us probably want to put 63.102.49.33 in the /etc/hosts file (I forget where it is in Win32) so all the links work. It seems pretty quick from here. Good show, Ethan! -- Jim Washington Chris Gray wrote: Then try 63.102.49.33. The new name just hasn't propagated

Re: [Zope] string splitting in dtml

2000-12-06 Thread Jim Washington
Just a thought: Have you tried using "_.str(thedate)" to convert it into a string? I am not using Access, but since Zope can handle the Access date stuff properly, it may be using something like _.str() internally. It's what I would try first. -- Jim Washington "Spicklemir

Re: [Zope] mySQL DA on Win32

2000-12-14 Thread Jim Washington
if this does not meet your needs. To answer your next question, the connection string is like 'db@host username password' hth, -- Jim Washington Lee Reilly CS1997 wrote: Hi, Zope is currently being installed on the Unix machines at my uni but it won't be available for a while. However, I

Re: [Zope] Anonymous user

2000-12-20 Thread Jim Washington
Put the username and password in the url like this: http://managername:[EMAIL PROTECTED]/manage -- Jim Washington Priya Ramkumar wrote: Hi Could anyone please help me with this problem? I changed the default permission for the Anonymous user by adding the permission "

Re: [Zope] Anonymous user

2000-12-21 Thread Jim Washington
screens do use them for the tree tags and height/width of edit boxes. You are still using basic authentication, I presume? Keep trying. All is not lost. One of the above or some combination ought to work. -- Jim Washington Priya Ramkumar wrote: Hi Jim I tried typing the following u

[Zope] html_quote in python methods?

2001-01-02 Thread Jim Washington
for redisplay, and I know some Bozo (TM) will somehow put in "table" and break the page. Can I keep this from happening? html_quote does not seem to be in the Python Method namespace. Regards, -- Jim Washington ___ Zope maillist - [EMAIL PR

Re: [Zope] html_quote in python methods?

2001-01-03 Thread Jim Washington
['varLoc1']['varLoc2'] print 'table' print 'trtd%s/td/tr' % hqnl(theitem=myitem.property1) print 'table' It turned out to be a bit better code than I thought I wanted :) -- Jim Washington - Original Message - From: "Jim Washington" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sen

Re: [Zope] How to split a string in a python method?

2001-01-05 Thread Jim Washington
aword return printed -- Jim Washington Juan Carlos Coruña wrote: Is there any way to split a string in a PythonMethod without passing the object _.string as an argument? I have tried to "import string" but Zope generates an ImportError: ImportError: __import__ not found

Re: [Zope] get property of type 'list'

2001-01-12 Thread Jim Washington
to you is that the string representation of the list, "[1, 2, 3]" is getting stored verbatim as your tokens property, and ZPublisher/Converters.py is then splitting it on the spaces when you ask for it. Which is how you get that weird '[1,' '2,' '3]'. -- Jim Washington Andrei Beli

Re: [Zope] ZClasses meet PythonScripts, sample request

2001-01-14 Thread Jim Washington
Hi, Tim I am not working through that example, but the below is a start on what you seem to need. Let me know what you think. good luck! -- Jim Washington *** You probably want the work to be done in the context of an instance of the class, so assure you

Re: [Zope] ZClasses meet PythonScripts, sample request

2001-01-14 Thread Jim Washington
;dtml-var title"/td /tr trthArtist/th tdinput type="text" name="artist" value="dtml-var artist"/td /tr trtd ! input type="submit" name="editCD" value=" Submit Edits " /td/tr /table /form !dtml-var standard_html_footer Hoping

Re: [Zope] ZClasses meet PythonScripts, sample request

2001-01-15 Thread Jim Washington
t; method="post" assuming the DTML Method that has the form is called editJobAction. Don't worry about passing REQUEST there; Zope takes care of that. -- Jim Washington Timothy Wilson wrote: This seems to almost work. :-) On Sun, 14 Jan 2001, Jim Washington wrote: !dtml

Re: [Zope] ZClasses meet PythonScripts, sample request

2001-01-15 Thread Jim Washington
form: You have id as a form variable. You will be disappointed by its behavior. Regards, -- Jim Washington Timothy Wilson wrote: Jim (or anyone else who's feeling charitable this morning), Thanks for all your help. I really appreciate it. I wonder if you'd have time to look one more time

Re: [Zope] ZClasses meet PythonScripts, sample request

2001-01-15 Thread Jim Washington
of 'container' inside the Python Script. -- Jim Washington Timothy Wilson wrote: On Mon, 15 Jan 2001, Jim Washington wrote: I have it. The Python Script I sent you: container.propertysheets['job_info'].manage_changeProperties(REQUEST) needs to be rewritten

Re: [Zope] ZClasses meet PythonScripts, sample request

2001-01-15 Thread Jim Washington
Timothy Wilson wrote: On Mon, 15 Jan 2001, Jim Washington wrote: Where is the editFormAction Python Script? It should be in your ZClass's /methods. If you are instead acquiring it from a Folder somewhere, you will need to use 'context' instead of 'container' inside the Python Script

Re: [Zope] ZClass Adding Magic Needed

2001-01-17 Thread Jim Washington
Script/Method. -- Jim Washington "Geoffrey L. Wright" wrote: So: I have a odd little problem that I can't seem to solve. I have two zclasses. We'll call them zclass1 and zclass2. zclass2 lives inside of zclass1. zclass1 has the following two properties: id and displayOrder

Re: [Zope] PythonScripts documentation

2001-01-26 Thread Jim Washington
The new online help in 2.3 may have some answers to your questions. Do you have that? It's in Zope Help-API Reference-PythonScript -- Jim Washington Gerald Gutierrez wrote: Where is the latest documentation for PythonScripts located? The closest I found is http://www.zope.org/Members

Re: [Zope] porting from Python Methods to PythonScripts in2.3.0;LoginManager too

2001-01-29 Thread Jim Washington
. -- Jim Washington begin code import string ids = container.objectIds('Python Method') #what suffix do we want on the old Methods? oldscriptsuffix='.old' #replace all self. with the following: #change to context if needed newself = 'container' #for future programmatic use just to be certain

Re: [Zope] porting from Python Methods to PythonScriptsin2.3.0;LoginManager too

2001-01-29 Thread Jim Washington
Hi, Fred I discovered another bug in it. Where it changes stuff with "self[", it changes it to "container.", which is wrong, but a simple edit. new code: import string ids = container.objectIds('Python Method') oldscriptsuffix='.old' #replace all self. with the following: #change to context

Re: [Zope] Picture of the day product

2001-01-30 Thread Jim Washington
Hi, Tim context.ZopeTime() or container.ZopeTime() ZopeTime is not in the PythonScript's namespace. It is available in most (all?) containers, however. -- Jim Washington Timothy Wilson wrote: On Mon, 29 Jan 2001, Tres Seaver wrote: I'd like to grab all instances

[Zope] Puzzling Import/Export problem

2005-07-23 Thread Jim Washington
pointers on that? I am having trouble figuring out how that file is organized. For completeness, I am using zope-2.8.0, but this happens on 2.7.6 as well. -Jim Washington ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope

Re: [Zope] how dump Zope database content into a file system directory tree?

2005-09-13 Thread Jim Washington
[EMAIL PROTECTED] wrote: Possible to dump content in Zope database into a file system tree? Yes. http://www.zope.org/Members/tseaver/FSDump --Jim Washington ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope

Re: [Zope] Re: Re: ZAjax anyone?

2005-10-11 Thread Jim Washington
some zope3 stuff? I think the zope community really needs zope-oriented how-tos and evaluations of the various AJAX libraries. zajax.net has the right name to be a prime focus of such activities, should you be willing to do that. Thanks! -Jim Washington

Re: [Zope] Some installation glitches

2006-04-17 Thread Jim Washington
the problem, I make a symlink from lib to lib64 after install, and things work OK. -Jim Washington ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http

Re: [Zope] Some installation glitches

2006-04-17 Thread Jim Washington
instead of a 'lib' directory. mkzopeinstance has trouble with that configuration. It needs a 'lib' directory instead of a 'lib64' directory, so mkzopeinstance fails unless I do something, like symlinking lib64 to lib. -Jim Washington ___ Zope

Re: [Zope] REMOTE_USER Security Issue

2006-05-18 Thread Jim Washington
from WSGI point-of-view. environ can be useful for middleware information-passing. -Jim Washington ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http

Re: [Zope] REMOTE_USER Security Issue

2006-05-18 Thread Jim Washington
Lennart Regebro wrote: On 5/18/06, Jim Washington [EMAIL PROTECTED] wrote: Completely immutable environ is not a good choice from WSGI point-of-view. environ can be useful for middleware information-passing. WSGI middleware would by definition get the environ and be able to modify it before

Re: [Zope] AJAX and Zope

2006-05-24 Thread Jim Washington
for this borrows heavily from zc.resourcelibrary) and instructions are at http://zif.hill-street.net/headincludes Development status: works for me. This is just a small piece of the AJAX puzzle for Zope, as I see it. -Jim Washington ___ Zope maillist - Zope

Re: [Zope] Import Modules

2006-06-23 Thread Jim Washington
clients. Thanks in advance, I recall seeing some documentation about this use case somewhere. I think it was in the folder with the python scripts product. -Jim Washington ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope

Re: [Zope] suddenly confused

2008-01-18 Thread Jim Washington
David Bear wrote: I'm doing my first zeo setup, and suddenly I'm not sure about my products directory. Do I put all products in a products directory of the zeo server or in each zope instance? IIRC, Products go in each zope instance. The zeo instance gets the ZODB. -Jim Washington

[Zope] ANNOUNCE: zif.sedna-0.9beta

2008-02-07 Thread Jim Washington
://pypi.python.org/pypi/ The readme came out a bit funny there. I know there were some and in the document when I wrote it, so you will have to use your imagination a bit to read the blurb. Or easy_install it and read the docs as they were intended. -Jim Washington

Re: [Zope] zip files corrupted with IE when opened, fine when downloaded

2008-03-17 Thread Jim Washington
get to it. I have had some success setting cache control to private. Something like: request.response.setHeader('cache-control','private') private,must-revalidate may also be a good value, depending on your situation. It's worth a try... - Jim Washington

Re: [Zope] zip files corrupted with IE when opened, fine when downloaded

2008-03-17 Thread Jim Washington
Jim Washington wrote: robert rottermann wrote: Hi there, we have a problem with an intranet that runs using plone 2.5.3 when users using IE want to open a zip file from the intranet by using the open option from the download dialog they get winzip complaining that the file is corrupted

[Zope] Experiment: Pyjamas with Zope

2008-12-20 Thread Jim Washington
to the page. Page loads. Push the button, and I get a Basic HTTP Authentication dialog. Nice. Overall Results: So far, so good. :) - Jim Washington ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts

Re: [Zope] Experiment: Pyjamas with Zope

2008-12-22 Thread Jim Washington
is mostly copy-paste from pyjamas.JSONService and pyjamas.HTTPRequest, but I'll provide it to anyone interested. It was really simple to do. Kudos to pyjamas for making fixes easy. - Jim Washington ___ Zope maillist - Zope@zope.org http://mail.zope.org

Re: [Zope] Zope and wxPython interface

2009-08-13 Thread Jim Washington
-archive.com/zope@zope.org/msg31618.html), it has improved substantially. Fewer gotchas. More joy. Worth a look. - Jim Washington ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding

[Zope-dev] Python Product Style - on-the-fly objects to DTML

2000-11-09 Thread Jim Washington
I created un-attached Persistent descendents on-the-fly while testing earlier? I presume they garbage-collected away when I was done with them. Is this correct? I have a nagging worry about ghost objects and the types of programming errors that might create them. -- Jim

[Zope-dev] Where to send patches?

2001-09-10 Thread Jim Washington
Hi, All Since the Collector is down, where do we send patches if we are not cvs-authorized? I just discovered a not-too-clever hack to make the Find tab recurse through methods of Z Classes, which the margin of this e-mail is too small to contain. -- Jim Washington

Re: [Zope-dev] Where to send patches?

2001-09-10 Thread Jim Washington
Michel Pelletier wrote: On Mon, 10 Sep 2001 12:16:51 -0400 Jim Washington [EMAIL PROTECTED] wrote: Hi, All Since the Collector is down, where do we send patches if we are not cvs-authorized? I just discovered a not-too-clever hack to make the Find tab recurse through methods of Z Classes

[Zope-dev] [Fwd: Re: [Zope] Python 2.1 for debian ?]

2001-10-03 Thread Jim Washington
Would it be smart to include the python header files in the zope binary distributions? That would seem to solve a few problems for the individuals using them. -- Jim Washington Original Message Subject: Re: [Zope] Python 2.1 for debian ? Date: Wed, 03 Oct 2001 12:51:37

[Zope-dev] More Zope 2.6 requests

2002-03-08 Thread Jim Washington
of where the client browser is. I realize that other proxies do not always follow the rules, etc., etc., but I think that using HTTP_X_FORWARDED_FOR if not null would be better than a log full of 192.168.1.1. Apologies if these have already been discussed under another heading. -- Jim

Re: [Zope-dev] more on the segfault saga

2002-03-14 Thread Jim Washington
not be read.' -- Jim Washington ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http

Support for X-HTTPD-FORWARDED-FOR Re: [Zope-dev] Speaking of 2.6...

2002-04-10 Thread Jim Washington
of how cvs works :). Anyway, here is the code FWIW. Apologies that it is not a patch per se. Now looking for a more clueful sponsor to take it from here to check-in (after vetting?) -- Jim Washington Brian Lloyd wrote: ...I sent out a note a while ago now trying to scare up some ideas on how

Re: Support for X-HTTPD-FORWARDED-FOR Re: [Zope-dev] Speaking of2.6...

2002-04-10 Thread Jim Washington
than just username and password, since Zope sees only *one* ip address coming from squid in the current situation. I'll have to do some more thinking... Regards, -- Jim Washington ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org

Re: Support for X-HTTPD-FORWARDED-FOR Re: [Zope-dev] Speaking of2.6...

2002-04-11 Thread Jim Washington
Toby Dickenson wrote: On Wed, 10 Apr 2002 12:16:35 -0400, Jim Washington [EMAIL PROTECTED] wrote: 2. If we want to get fancy about allowing authentication using that ip address like naked ZServers can do, to if request.has_key('HTTP_X_FORWARDED_FOR'): addr=request

Re: [Zope-dev] robustness in management interface.

2003-02-07 Thread Jim Washington
of dtml-try does have merit IMHO. Should the ZMI really assume existence of anything other than id for objects? -- Jim Washington ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML

[Zope-dev] 501 NotImplemented in Zope 2.7 beta1

2003-08-15 Thread Jim Washington
) that I could not decide the proper category in the bug collector or even what to search on to see if it had been reported previously. So, consider this an FYI should anyone want to take a stab at fixing it or reporting it to the collector. -- Jim Washington

Re: [Zope-dev] Zope on 64-bit Linux

2004-11-19 Thread Jim Washington
in Fedora Core 3. I have no experience with Fedora, but it is probably worth a try. I did not have to do anything special. -Jim Washington ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML

Re: [Zope-dev] Zope 3 without ZODB

2008-01-15 Thread Jim Washington
and configuration would be very much appreciated. -Jim Washington ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope

Re: [Zope-dev] Zope 3 without ZODB

2008-02-15 Thread Jim Washington
and utilities by using zope.component and zope.interface. :) zif.sedna (newly beta2 in pypi) now has instructions for using its zope3 database adapter with repoze.tm in pylons. - Jim Washington ___ Zope-Dev maillist - Zope-Dev@zope.org http

Re: [Zope-dev] z3c.jsonrpc relase

2009-02-24 Thread Jim Washington
somebody know a framework which supports such an implementation? Hi Roger Here's a hint I've been looking at. Maybe it will give you some ideas. http://ajaxpatterns.org/Direct_Login - Jim Washington ___ Zope-Dev maillist - Zope-Dev@zope.org http