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 Client.
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 on
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 o
Try
___
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
Both this one line python method:
raise 'Redirect', 'http://www.zope.org'
and this DTML method
http://www.zope.org
work.
P. S. the double quotes around Redirect in the DTML method are
significant. With single quotes, it shows up as an error named Redirect
Bill.
On Fri, 1 Sep 2000, Kapil T
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 r
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 Client.
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 t
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 -
http://lists.zope.org/mailman/listinfo/
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 - http://zope.org/Members/billw/
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
** No
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 P
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 m
Fixes a bug with records that have versions and a bug with records that
point to other records for data.
211c211
< self.vstring = f.c(vl - 16)
---
> self.vstring = f.c(vl)
214c214
< data = f.c(dl - 8)
---
> data = f.c(dl)
216a217,218
> s
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
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 PROTE
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 - [E
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
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]
http://lists.zope.org/mailma
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
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; root
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]
h
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
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 -
http://lists.zope.org/mailman/listinfo/zope-ann
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.
O
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 pa
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, 5
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 w
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
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 (s
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 emb
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
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 a
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 Th
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
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 tags. Does any
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 i
> 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 yo
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
this is my logout DTML method
Logout!!
On Mon, 18 Dec 2000, Mohan Baro wrote:
> Can you please give an example of this code or method?
>
> Mohan.
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
** No cross po
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, Ka
> 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
Just for the record.
Bill.
___
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/mai
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 s
On Tue, 19 Dec 2000, Tim Cook wrote:
> Mohan Baro wrote:
> >
> > Thanks,
> >
> > I have tried it.
> >
> >
> > Logout!!
> >
> >
> > 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?
> >
The login di
to test, too.
first,
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
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 ot
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, OF.
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 Linzbichler
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 gadf
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
en that works you should be able to reverse your product, let me
> hear if it worked for you
>
> thanls and good luck
> phil
>
> -- Original Message --
> From: Bill Welch <[EMAIL PROTECTED]>
> Date: Fri, 5 Jan 2001 11:47:29 -050
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.
Bil
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, h
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 a
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 starts,
56 matches
Mail list logo