[Zope] Can't get ZClient to work, zope 2.2.0

2000-08-11 Thread Bill Welch
hit http://zope.carbonecho.com/forum/sepServe to see the error ('expecting read-only buffer...') here's the external function: from ZPublisher import Client def ServePHP(url='http://www.yahoo.com', username='bill', password='xyz'): print 'Sep Serving ' + str(url) return

[Zope] (no subject)

2000-08-14 Thread Bill Welch
I'm having trouble with nested dtml-in. The outer ZSQL returns the coordinates of a zip code as zlat and zlong. The inner ZSQL takes zlat and zlong as well as Range and Otype as arguments. When I run it I get Error Type: Bad Request Error Value: ['zlat', 'zlong'] If I hardwire the inner

[Zope] Problem with nested dtml-in

2000-08-14 Thread Bill Welch
I'm having trouble with nested dtml-in. The outer ZSQL returns the coordinates of a zip code as zlat and zlong. The inner ZSQL takes zlat and zlong as well as Range and Otype as arguments. When I run it I get: Error Type: Bad Request Error Value: ['zlat', 'zlong'] If I hardwire the inner

Re: [Zope] is dtml-unless someIndirectVariable possible ?

2000-08-27 Thread Bill Welch
Try dtml-unless "_['myPropName']" ___ 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

Re: [Zope] a redirect of an url in Python

2000-09-01 Thread Bill Welch
Both this one line python method: raise 'Redirect', 'http://www.zope.org' and this DTML method dtml-raise type="Redirect" http://www.zope.org /dtml-raise work. P. S. the double quotes around Redirect in the DTML method are significant. With single quotes, it shows up as an error named

Re: [Zope] Ad banners in Zope anyone ?

2000-09-05 Thread Bill Welch
Check out the How-To athttp://www.zope.org/Members/Mamey/PHP. Doesn't handle redirection, authorization, or cookie passing, but it's a start. If you need the above mentioned features, I'll be posting my update by the end of the week. Bill. On Sat, 2 Sep 2000, Jason Cunliffe wrote: - Can one

Re: [Zope] ANN: Serving PHP/Perl from Zope update

2000-09-06 Thread Bill Welch
I had to dig a level deeper to support phorum (www.phorum.org), a PHP message board app. Here's my update to handle cookies, redirection, POST variables, and relative links. I'm new to python, so if I've done anything awkwardly, please let me know the more elegant way. First, a patch to

Re: [Zope] ANN: Serving PHP/Perl from Zope update

2000-09-06 Thread Bill Welch
Got authorization to work! First, another patch to Client.py to raise 'Unauthorized' when 401 is returned by PHP/Perl: after line that starts with if ec==200 add if ec==401: raise 'Unauthorized' Second, numerous changes to the external method that makes the request and receives

Re: [Zope] ANN: Serving PHP/Perl from Zope update

2000-09-06 Thread Bill Welch
oops! that should be username, password = req._authUserPW() ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists -

Re: [Zope] ANN: Serving PHP/Perl from Zope update

2000-09-06 Thread Bill Welch
oops, again :-( headers = {} if req.environ.has_key('HTTP_COOKIE'): headers['Cookie'] = req.environ['HTTP_COOKIE'] if req.environ.has_key('HTTP_USER_AGENT'): headers['User-Agent'] = req.environ['HTTP_USER_AGENT'] Also on my member page -

Re: [Zope] ANN: Serving PHP/Perl from Zope update

2000-09-07 Thread Bill Welch
Last bug. Promise. # user might not have signed in yet try: username, password = req._authUserPW() except: username = password = None ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope **

[Zope] How do I connect to a db from a PythonMethod?

2000-09-20 Thread Bill Welch
I have this in an ExternalMethod and it works fine: import MySQLdb conn = MySQLdb.Connection(user='', passwd='y', db='zzz') In a PythonMethod, it fails because of the import restriction. What's the easiest way to get around this. I'm not getting anything out of the documentation in

[Zope] Re: [Zope-PTK] Cannot import DemoPortal.zexp

2000-09-22 Thread Bill Welch
Bet you can't import Wizard.zexp either and the traceback shows the identical pickled data. I'm battling a very similar problem and so far I think it's subtle corruption of the ZODB having to do with ZDiscussion. Note that the pickled data contains references to ZDiscussion. The pickled data in

Re: [Zope] 'Offline' mailhost

2000-10-04 Thread Bill Welch
Techniques for effeciently sending a message to a large number of recipients are covered extensively in majordomo documentation - www.greatcircle.com/majordomo. Also check out ftp://cs.utk.edu/pub/moore/bulk_mailer Bill. On Wed, 4 Oct 2000, Chris Withers wrote: Also you could send just one

[Zope] improvement to ZEO/Zope how-to

2000-10-05 Thread Bill Welch
Thanks, kedai, for putting this together - it really helped. Now for an improvement - please note that custom_zodb.py needs to go in INSTANCE_HOME, which is not necessarily the same as the Zope installation directory. ___ Zope maillist - [EMAIL

Re: [Zope] ZODB question: get older object versions without undo

2000-10-10 Thread Bill Welch
A work around is to pack the DB regularly (Control_Panel/Database_Management). On Tue, 10 Oct 2000, Philipp Auersperg wrote: 2.Is it possible ( or will be ) to define ZODB objects for which updates are done by overwriting ___ Zope maillist -

Re: [Zope] Fw: mysqldb

2000-10-13 Thread Bill Welch
In Debian, this library is in a separate packge. On Fri, 13 Oct 2000, Dale Lance wrote: anyone know where mysqlclient is supposed to be? ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML

Re: [Zope] Z2.log question

2000-10-19 Thread Bill Welch
The classic unix trick for emptying a open file is cp /dev/null Z2.log On Thu, 19 Oct 2000, George Osvald wrote: Can I safely delete Z2.log file and replace it with an empty one? ___ Zope maillist - [EMAIL PROTECTED]

Re: [Zope] ssl w/ modrewrite

2000-10-30 Thread Bill Welch
Please say what Port, Listen, and VirtualHost directives you have in place. I think that's really where the trouble. On Sun, 29 Oct 2000 [EMAIL PROTECTED] wrote: but it works as typed in the server withour CRs.) I added modssl, but when I go in on an https I get the original apache root page,

Re: [Zope] how do I get rid of 'ghost' objects in Data.fs

2000-10-31 Thread Bill Welch
I had a similar problem a month ago with PTK and ZDiscussions and I consider this to be corruption of the ZODB not related to the particular products. You might be able to fix it by going into the DB directly through python; stop zope start python in zope/lib/python 'import Zope, ZServer;

Re: [Zope] Disabling SiteAccess/SiteRoot ..

2000-11-04 Thread Bill Welch
Try this: http://www.your-site.com/full/path/site-root/_SUPPRESS_SITEROOT/manage On Sat, 4 Nov 2000, [Windows-1252] Jørgen Skogstad wrote: Of course I did something wrong. ;) I need to disable the SiteRoot ___ Zope maillist - [EMAIL PROTECTED]

Re: [Zope] newbie

2000-11-04 Thread Bill Welch
New security measure in 2.2 - you only login as superuser (with the name and the password the install script gave you) long enough to create another user as manager. Out of the box, Zope doesn't use OS security. Also look at zpasswd.py. tutorial, I get a message something like superuser cannot

Re: [Zope] Need win32 dll for DynPersist !

2000-11-06 Thread Bill Welch
I bounced him the one I got from Itamar a couple weeks ago. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists -

Re: [Zope] Is data.fs corrupted?

2000-11-08 Thread Bill Welch
I think it is ZODB corruption. See my post of a couple of weeks ago for suggestions for recovery. This the fourth example of ZClass related DB corruption that I've seen in the past six weeks. In my own brush with this, it seemed to be triggered by uninstalling and reinstalling products. Bill.

Re: [Zope] Is data.fs corrupted?

2000-11-08 Thread Bill Welch
In my case, I couldn't import DemoPortal.zexp or Wizard.zexp from PTK because oid 1377 was already in use. The pickle dump that followed contained references to ZDiscussions, which I had deleted some time before. After deleting the offending products and their directories, restarting zope, and

Re: [Zope] Is data.fs corrupted?

2000-11-08 Thread Bill Welch
Here's my evidence. A record (OID 0) in the "Added Globals" transaction refers to a record (OID 57) in the "Installed product DemoPortal" transaction. From tranalyzer -r TID: 33140200A4749F8 @ 69694 obs 1 len 274 (status 'p') By [Zope] "Added Globals" OID: 0 len 204 2,

Re: [Zope] Is data.fs corrupted?

2000-11-09 Thread Bill Welch
Eyeballing my problem Data.fs (I kept a copy), I see something different than you describe. What I take to be the root object (OID 0) refers to a record in what appears to an instance of something to do with PTK (OID 57). A separate record in the PTK related instance (PRI) refers to a record in

[Zope] off toic, but... ange-ftp only works as unix root

2000-11-17 Thread Bill Welch
even though I can ftp into zope from unix root and non-root. As unix non-root, ange-ftp asks for password and then hangs emacs. Does respond to C-g. Same zope user in all cases. The obvious problem is some file or port permission, but I'm hoping someone can show me the way instead of me going for

Re: [Zope] Possible disaster upgrading to 2.2.4

2000-11-28 Thread Bill Welch
On Tue, 28 Nov 2000, Jonathan Cheyne wrote: Ah, I tried reinstalling zddiscussions, no joy, i tried deleting zdiscussions but when you restart zeop it reinstalls the two products as broken. You have to delete it from lib/python/Products as well, but it's a red herring for the real issue (see

Re: [Zope] META Tags in Zope Documents

2000-12-06 Thread Bill Welch
The robot, like any other user of your site, will only see the html that results from zope rendering the code you write. No viewer of the rendered html can tell how it was put together, so there is nothing to consider. Bill. On Wed, 6 Dec 2000, David Legg wrote: Hello, I am currently

Re: [Zope] Another Zope E-Commerce Site Online

2000-12-06 Thread Bill Welch
I found the shopping cart interesting. Did you start with an existing package or write it from scratch? Are you willing to share it? Bill. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML

Re: [Zope] Another Zope E-Commerce Site Online

2000-12-06 Thread Bill Welch
Maybe you just looked at the catalog and didn't notice what's in the checkout. Having spent the past month setting up a site with Etailer, I would have to completely disagree with you. If Brad started with Etailer (I suspect he did, the checkout sequence has an Etailer look), it would have taken

[Zope] Re: [Zope-ZEO] ZEO_CLIENT

2000-12-07 Thread Bill Welch
ZEO_CLIENT is a parameter of z2.py to let a zope instance know it's a client of a central ZEO and to not try to install products. Add to you invocation of z2.py Did you change the custom_zodb.py of the instance to connect a ClientStorage at the host and port that you started ZEO on? Bill. On

Re: [Zope] Broken LoginManager - Can't get it to install

2000-12-13 Thread Bill Welch
The source for DynPersist is in a sub-directory of ZPatterns. You have to go in and compile it. On Wed, 13 Dec 2000, Mohan Baro wrote: I can seem to figure out what wrong here. I have ZPatterns installed already 0.4.3b2 This is the latest LoginManager 0.8.8b1 LoginManager Import

RE: [Zope] site structure

2000-12-14 Thread Bill Welch
Well, just put them there. The head section is in standard_html_header, open it up and add your script section. Bill. On Thu, 14 Dec 2000, Farrell, Troy wrote: Though, I have a difficult situation: If I understand correctly, definition of JavaScript functions belongs in the head tags. Does

Re: [Zope] error by adding Poll

2000-12-15 Thread Bill Welch
Manage_addSamplePollItem is a 'legacy' mapped to addItem (see Poll/__init__.py) and Hotfix_2000-12-8 shuts down the legacy mechanism. I went into itemAdd.dtml changed it to use addItem directly. Bill. On Fri, 15 Dec 2000, Kaeidinejad, Shahram wrote: Hi i install Poll-0.7.1 and try to add

RE: [Zope] LoginManager - logging out

2000-12-18 Thread Bill Welch
authentication and that the browser caches the credential. This means unless you shut down your browser, whatever you do, you are back to square one. Besides shutting down your browser, you trash its credential. Create a simple DTML method that raises the 'Unauthorized' exception. Direct your

[Zope] passwords TTW - security hole?

2000-12-18 Thread Bill Welch
AFAIK, inputs of type password are sent to the server as plain text. In Login Manager, for example, that would mean that passwords are exposed every time someone logs in. In User Folder, the passwords would be exposed whenever they're changed. If my interpretation is correct, then it seems to me

RE: [Zope] LoginManager - logging out

2000-12-18 Thread Bill Welch
this is my logout DTML method dtml-raise type="Unauthorized" Logout!! /dtml-raise On Mon, 18 Dec 2000, Mohan Baro wrote: Can you please give an example of this code or method? Mohan. ___ Zope maillist - [EMAIL PROTECTED]

Re: [Zope] AW: [Zope] error by adding Poll

2000-12-18 Thread Bill Welch
Please note that the method is addItem, not manage_addItem. The current convention is to untar in the zope installation directory. For example, /usr/bin/zope. The files in the tar have a relative path - lib/python/Products. Other than that, yes - untar and restart. Bill. On Mon, 18 Dec 2000,

Re: [Zope] AW: [Zope] error by adding Poll

2000-12-18 Thread Bill Welch
For example, /usr/bin/zope. /usr/lib/zope, that is. ___ 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

Re: [Zope] adding Mail Host also legacy, broken by Hotfix_2000-12-08

2000-12-18 Thread Bill Welch
In SiteAccess, the legacy name and the method name are the same, so references to the legacy name still work. Bill. On Mon, 18 Dec 2000, Aleksander Salwa wrote: On Mon, 18 Dec 2000, Bill Welch wrote: Just for the record. As I grepped through sources, I see that SiteAccess (2.0.0b4

Re: [Zope] LoginManager - logging out

2000-12-19 Thread Bill Welch
On Tue, 19 Dec 2000, Tim Cook wrote: Mohan Baro wrote: Thanks, I have tried it. dtml-raise type="Unauthorized" Logout!! /dtml-raise I guess it logs me out. But it also gives me a login dialog box it does not accept any of the account. So I cannot log back in! Why?

Re: [Zope] LoginManager - logging out

2000-12-20 Thread Bill Welch
, http://yourSite/manage and login then http://garbage:x/yourSite/debug and check other/AUTHENTICATED_USER On Tue, 19 Dec 2000, Bill Welch wrote: Not true, depends on the browser. My tests indicate that Navigator and IE both trash the existing good credential with the garbage one and you're

RE: [Zope] LoginManager - logging out

2000-12-20 Thread Bill Welch
Up to this point, I've been talking about mechanisms for you, personally, to log out to switch between developer and user roles for testing. Clearly, these mechanisms aren't appropriate for the users of your site. I think LoginManager isn't the only choice, but I can't say, off hand, what the

Re: [Zope] The meaning of Zope

2000-12-26 Thread Bill Welch
Here's what some Americans think it means. From ARTFL Project, Webster's 1913 Unabridged at http://humanities.uchicago.edu/forms_unrest/webster.form.html Zope (?), n. [G.] (Zoöl.) A European fresh-water bream (Abramis ballerus). for completeness: Bream (?), n. [OE. breme, brem, F. br\'88me,

Re: [Zope] A Picture of Zope, The Fish

2000-12-27 Thread Bill Welch
Zope is no more named after a fish, much less an undistinguished fish, than python is named after a snake. I can see how you might invent a branding around coincidence, but I think we can do better. What animal is going on the O'Reilly book? Bill. On Tue, 26 Dec 2000, Takashi Veikko

Re: [Zope] is it possible to import from Excel

2000-12-27 Thread Bill Welch
Gadfly is a distinct product, www.chordate.com/gadfly.html, so you can, at least, write python to insert data directly into gadfly. You can get the data out of Excel through COM or export to csv. Bill. On Wed, 27 Dec 2000, K H Subrahmanyan wrote: Now we have developed some database using

Re: [Zope] SiteAccess / SUPPRESS_ACCESSRULE bad (urgent)

2000-12-27 Thread Bill Welch
Sounds like something's wrong with your apache conf. Please show us what that looks like. I'm running a similar setup on Debian, too, and it works fine. Bill. On Wed, 27 Dec 2000, Edwin Martin wrote: Hello, I'm running an Zope website behind an Apache proxy. Because Zope is running on

[Zope] zclassReverse problem

2001-01-08 Thread Bill Welch
-- From: Bill Welch [EMAIL PROTECTED] Date: Fri, 5 Jan 2001 11:47:29 -0500 in the moment dont install ZClassReverse on production machines since for now the client module comunicates unauthorized to Zope, but I will be working on it as I'll have time. Does

RE: [Zope] MySQLDA and MySQL-python - patch needed?

2001-01-11 Thread Bill Welch
I haven't been following this thread, so I apologize in advance for any redundancy. Several weeks ago I had an existing mysql fail as you describe after I upgraded mysqldb in /usr/lib/python. I fixed it by moving ZMySQLDA/MySQLdb-0.1.2/_mysqlmodule.so up one level as described in README.txt.

RE: [Zope] MySQLDA and MySQL-python - patch needed?

2001-01-11 Thread Bill Welch
A binary distribution comes with python built-in so that it will run without the installer having to also go get python. PYTHONPATH is the key to understanding module sharing. Unless you (or the packager) change something, a binary Zope uses only the modules in the built-in python (or, at least,

Re: [Zope] Authentication problems on FreeBSD with Apache

2001-01-11 Thread Bill Welch
First off, bypass apache and go straight to zope - typically port 8080. Did you make note of the superuser name and password the installation script produced? If not, use zpasswd.py to create a new one. I'm presuming that you're using 2.2.x. Don't forget to create a manager user and switch to it

[Zope] Access Problem - external method and aquisition

2001-01-24 Thread Bill Welch
Some time ago, I set up a site with SiteAccess and ZClient to pass through a request to legacy php a la Mamey's 'Serving PHP/Perl from Zope'. Works great, lasts a long time. I recently added Membership and restricted access to the folder. The AccessRule works and publishing of index_html