Perhaps I should be going about this completely differently?
Thanks
Seb
--
editable is a DTML method:
update_content is an external method:
def update_content(self,REQUEST):
self.man
expect that to work :)
And I get
Error Type: TypeError
Error Value: call of non-function (type string)
I've tried various combinations of ways of calling the sequence-item,
but they all return the same error. Could anyone suggest how I should
do this? Thank
lease* shoot me down ;)
With a furrowed brow,
Seb.
>
>
>
>
>
>
> seb <[EMAIL PROTECTED]> wrote:
> >
> > I'm using the Photo product, instances of which I can call, with
> > arguments, like this:
> >
> >
&
h for
mod_php + mysql, I suddenly find I've done something that would normally
take me a couple of days to implement in about 10 minutes. Welcome to
Zope, eh?
Seb
>
> what's happening, I guess, is that when you do
>
>
> sequence
Ahh, now I understand...
> If you do , it'll get called (real bitch
> of mine, that one :-( )
> And, apparently, if you do , it'll get
> called
Are the above two points bugs, then? Or is there a legitimate reason
fo
response = f.read()
f.close
else:
response = "oops."
return response
and then:
Seb.
> Hi,
>
> I want to include a HTML file from another server (e.g.
> www.foo.com/include.html ) into the output of one of my DTML methods
> (
how / where you can define them?
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
ave python and
> > python-devel installed.
>
> The easiest way is to fetch the ZPatterns binary release, and put
> the file "DynPersist.so" into your folder
Incidentally, the reason Extensions.h isn't in your python-devel
libraries is because
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
> pag
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?
t; "Template" that can be applied in the form of a "wrapper",
> and can be adjusted trough a forms based interface with
> options for colors, type style, background images, etc.
>
3) I understand skinnable CMS interfaces are on their way. At the
mo
http://www.zope.org/Members/BwanaZulia/cookies. Also, why
not install a session product (HappySession, FSSession, SQLSession...),
it'll probably make your life easier in the long run...
seb
___
Zope maillist - [EMAIL PROTECTED]
http://
w-To/ExternalMethods, but I'm
actually having to do a
>
to pass the context to 'self' in the External method. Explanations
gratefully received.
Thanks, seb.
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinf
> Is there a place to define a script execution timeout?
not in the urllib module.
Try setting an alarm using the signal module, wrapping the GET request
in a try clause, and then setting the alarm to 0 in the finally clause.
seb
___
Z
I've got a method which recurses through folders, copying their contents unless they
are of a certain type.
Is there a way of checking the base classes of an object from python?
Or perhaps I should be doing this differently...
Cheers,
ll pick up how to do all
this. Also refer to Zope Quick Reference (http://zdp.zope.org/projects/zqr/ZopeQR)
for more methods than you can shake a stick at, e.g.:
manage_addDTMLDocument(id, [title, file, REQUEST, submit])
manage_changePermissions
does /usr/Zope-2.2.0a1-src/var/z2.pid exist? if not, touch z2.pid and try
again.
seb.
> Hi All,
> I have installed Zope on a Linux server (Slackware 7.0) apparently
> without problems; but, when I start the server with the command:
> ./start, I have in continuous this m
r again and the error was *still* 'no module named
ProoopertyManager'.
Any clues, anyone?
-seb
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
> Lindell Alderman
> Sent: 24 May 2000 20:18
> To: Zope Developers; Zope Users
>
in the ZODB? Eeeeek I'm confused.
Seb.
> -Original Message-
> From: Chris Withers [mailto:[EMAIL PROTECTED]]
> Sent: 24 May 2000 21:03
> To: Seb Bacon
> Cc: Zope Users
> Subject: Re: [Zope] Reloading products
>
>
> Seb Bacon wrote:
> >(n.b. is
>
ne else ever seems to have had this problem, I can only assume I
am doing something wrong at a "doh!" basic level. Sounds to me like the
product is getting cached in the ZOBD. I'm only a poor newbie, so I don't
really know where to go from here in order
he code; I know there have been some
pointers recently, but which ZPatterns could I benefit from? or are they
too arcance to worry about for now?
iii) Is there any other miscellaneous advice? e.g. has anything like this
been done already?
Thanking you all, ladies and gentlemen.
Seb.
___
d on line 348 of Connection.py, which threw an error in
Transaction.py, blah blah, which threw an error in Publish.py, which caused
Zope to exit the publisher and print the stack trace.
seb.
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Tom
oads would be a nice thing too.
just thinking aloud.
seb.
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of J.
> Atwood
> Sent: 09 August 2000 16:16
> To: [EMAIL PROTECTED]
> Subject: [Zope] Requested Zope feature
>
>
&g
ill they interface with the zope api? have you
decided on the default skin functionality? when can we expect to see a
release? i'm all excited
seb.
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
** No c
What's the HTML you're using for the upload?
>
> Hi All,
>
> I'ved followed the online How-To on implementing a simple service for
> parsing uploaded files via the browser. But strangely, it
> only works for
> Netscape browsers. When I test the uploading using IE, the
> supposed file
> obj
on -> palm syncs, though, so you probably want MAL, the open source
networked application link thingum from avantgo:
http://www.mobilelink.org
don't know how it works or anything though :)
seb
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
http://www.zope.org/Members/hathawsh/Refresh
is the only way I know of to take away the pain of testing products.
Seb
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
Nestor A. Diaz L.
Sent: 05 October 2000 01:06
Cc: [EMAIL PROTECTED]
Subject: [Zope
I've got a ZClass "A" that subclasses another ZClass "B". I can use the
default propertysheets/B/manage method to update B's properties; but how do
I access the properties of A through the management interface?
Many thanks
Seb.
-Original Message-
From: [E
l the
properties of a ZClass, including those of its parent class? Or do I have
to code my own management screen to do this? And if so, what is the correct
way of refering to these properties in DTML?
Feeling a bit dumb...cheers,
Seb
___
Zope maillist - [
;d have to edit each object type's __str__ method
directly. Or patch the publishing mechanism, but I've not had the guts to
look at that yet. yuk. I'd rather not.
Can anyone shed any light? Cheers,
seb
___
Zope maillist - [EMAIL PROTECT
Does Zope security provide a way of restricting what objects are listed to
an authenticated user inside the Zope 'manage' interface? I'm getting my
head all twisted up over this security / proxy roles /local roles lark.
Thanks, seb
__
ct is rendered as
part of another document. The reason I was going on about __str__ is
because that seems to be the only place that you can interfere with how the
content is rendered inline?
Hope that's clearer,
seb.
>
> You have a form to edit the properties.
> ...
>
>
> I also tried to name the animGif explicitely animGif.gif instead
> of animGif - guessed what? - same problem!
>
> Any more ideas, please?
>
have you tried doing a diff on the zope and non-zope versions to see if
zzope's s
or your diff. is it
a browser-related issue? have you tried it in IE & netscape? if you want
to send me the gif i'll try it out, when i get some time (tomorrow probably)
seb
> -Original Message-
> From: Lars Heber [mailto:[EMAIL PROTECTED]]
> Sent: 09 October 2
url of the current page is URL0. Check out the environment variables in
the Zope Quick Reference or do a to dump them all.
You'll want to use the sendmail tag to send the link to the friend.
good luck, seb
___
Zope maillist - [EMAIL PROTECTED
>
I think you mean
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
h
id is a method. It's annoying, but there's talk of providing a
getId() method for every object to sort this inconsistency out.
seb
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
** No cross posts
a document through webDAV but *not* TTW. In my mind, you're either
authenticated to do a task, or you're not. It doesn't matter *how* you do
it. That's why 'listable' or something like it would be a better name for
the permission than 'URL Traversable
> Quote all characters not allowed in a
> cookie
wouldn't do the job?
That reminds me, it's silly that there's not ,
so I patched my zope to provide it. I was wondering if there's a mechanism
for getting this kind of simple tweak
om the cgi.
This is all off the top of my head, and I'm sure there must be a nicer way
of doing it than that. It's not nice having it all outside zope. but it
should be a start, at least.
seb
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf
if you're submitting from a form, you can coerce strings into other data
types by giving the form items special names, e.g.:
Your REQUEST then has variables called foo and bar which are ints and
floats, respectively.
also, don't post html mail - not everyone can read it.
seb.
---
ing a zope power user
myself, and have yet to appreciate the range of its potential.
What do you people think?
Seb.
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(R
ing able to list objectIds in any folder TTW. It would also allow
the developer more flexibilty in how they designed their application, which
can only be a Good Thing?
seb.
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/li
traversable"
> permission even to Anonymous in order to be useful.
OK, I think we're talking about the same thing now...but could you give me
an example of any object that would need to be traversable by Anonymous?
index_html, for example, doesn
In the Zope PTK there are a couple of products that have been packaged as
product.dats.
What format are these? How do I do it?
Cheers
seb
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTML
I needed to do this a while back and a kind fellow sent me some patches to
do just this. Unfortunately my old email is unavailable at the moment, so
I've forgotten who it was.
The syntax was
I'll dig out the patches as send them to you.
seb
> -Original Message-
&
t
consider something like that?
seb.
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Paul Winkler
> Sent: 26 October 2000 20:16
> To: Zope mailing list
> Subject: [Zope] Hosting?
>
>
> Hi,
>
> I'm wondering if anyone can
finite recursion, of course. But I can't think of how else I might do
it. Putting in tableise makes all the HTML in view_1
render html-safe (< > etc). I was tableise to display view_1's HTML
but not render its DTML.
Any idea, anyone?
Thanks, seb
, plus have the all the
benefits of a webmail type application.
Might be worth a look.
seb.
> [EMAIL PROTECTED] wrote:
> >
> > Has anyone thought of using SendMail (or any other e-mail
> program) to send
> > e-mail to Zope and have that e-mail be loaded directly into a
>
no avail.
Any hints received with gratitude.
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 )
ented (...), and lets you do things you shouldn't. Is there a HOWTO
on this anywhere? Should product management be easier? Should there at
least be some warnings added at appropriate places in the interface? Or
have I got the whole thing totally wrong?!
Hope that helped just a little bit a
permissions to specific methods in a ZClass by mapping them
to existing permissions in the 'define permissions' management tab.
cheers,
seb.
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or
> )">
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/mailm
If you need more help, post the
snippet you're working on again.
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
pendent on the quality of the adapters available,
or are all the adapters much the same?
any comments appreciated,
seb
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! *
> Is there any way you can see what the results are looking like without
> having to vote again?
Don't worry, there's no need actually to count the votes.
Despite the fact that this race went right down to the wire, according to my
complex computer-based prediction models (based on exit polls a
d junk on stderr. The only thing I couldn't do is
add ZClasses, for which I got the error message quoted by Alexander
below (could not load object oid=[random character]).
Please, can any Master Zopician give an explanation:
1) what causes this kind of error?
2) how do you debug it?
3) ho
n the ZODB.
Or perhaps I'm just particularly unlucky in the products I choose to
use?
cheers,
seb
>
> I'd argue that the ZODB is a very independent component of Zope, and it
> shouldn't be blamed for this. Devil's advocate question: if your Perl
> application
x for ange-ftp is
/user@localhost 8021:/your/zope/object
(you can get the space with C-q )
seb
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://lists
ry
This is not much
This is OK
This is very much
This is not 1000, 5000, or 1
the tag iterates over a list, which isn't appropriate here.
seb
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/
; delete the stuff.
for products that are not ZClass-based, the correct way to remove them
is to delete their folder in lib/python/Products.
seb.
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
** No cross post
as
comparing strings. But the if clause always evaluates true. Any ideas?
cheers,
seb.
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://lists.zop
This is strange: when I type
http://www.foo.com/roles
as an authenticated user, Zope thinks I'm just an Anonymous user. When I type
http://www.foo.com/roles/
It realises I'm authenticated.
I'm using Apache / ProxyPass on Zope 2.2.2.
>
> How can I remove this object from the zodb? How do I find it?
>
> Any idea why SQL_Method even cares about this?
there was a longish thread about this recently (search for something like 'Data.fs
corrupted?!'). the upshot was, i think, that products that haven't been written
carefully ca
ss to make it zope-manageable. It's a ZClass which has ZObject as
its only base class.
Am I missing something?
Cheers,
seb
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTML en
can just stick with
WorldPilot, for now at least. That's what I do, anyway.
seb.
- End forwarded message -
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
it working?
> TIA,
> BenO
umm, try reading the the README.txt file in that directory. and the
INSTALL.txt file in the docs directory.
seb
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTM
it working?
> TIA,
> BenO
umm, try reading the the README.txt file in that directory. and the
INSTALL.txt file in the docs directory.
seb
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTM
ter way?
I'd recommend doing imagemaps on the client side, and leave zope out
of it. No CGIs, no page reloads to find out the target url.
try http://www.december.com/html/demo/imagemap.html for an example.
seb.
___
Zope maillist - [E
pt is
client-side.
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_ in python than in php. python's a 'proper'
language suitable for writing whole apps (e.g. Zope, Medusa) - PHP's
going that way with Zend but it's not there yet.
seb
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.or
with the
stack trace in comments at the bottom of the page.
Please! Can anyone point me a what might be causing this to happen?
cheers
seb
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or
e_add_user(self,email,password):
conn = 'PoPy_database_connection'
self.sql_add_user=SQL('sql_add_user', '', conn, 'email password', _sql_add_user)
_sql_add_user = """
insert into tbl_user
rSource. Commented out is a
cheesey hardcoded username and password example:
def userAuthenticate(self,REQUEST,username,password):
if self.SQL_authenticate_user(username=username,password=password):
#if username=='seb' and password=='boogaloo':
return 1
else:
* Paul Winkler <[EMAIL PROTECTED]> [001127 19:54]:
> I want the user to be sent to a particular URL after calling the
> product's manage_add method. How can I do that?
> The URL I want is REQUEST['URL3'].
>
> I've tried RESPONSE.redirect(REQUEST['URL3']) but that's not it - the
> RESPONSE doesn't
have this permission in this product
or ZClass.
I'm probably being intellectually lazy or something, but that doesn't
make any sense to me at all.
seb.
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
** No
re using SSL, however. Anyone out there
> doing this?
mod_rewrite is your friend. You just make a Rule that redirects
anyone accessing your site on port 80 to port 443, something like
this:
ServerName www.foobar.com
RewriteEngine on
RewriteRule ^/(.*)https://www.foobar.com/
seb
ight unpleasant... perhaps it's just
ZClasses. It usually is :) I gave up and did it in a product eventually.
seb
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding
he section describing the AUTHENTICATED_USER object.
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
>
> ServerName www.foobar.com
> RewriteEngine on
> RewriteRule ^/(.*) https://www.foobar.com/
>
of course i actually meant:
ServerName www.foobar.com
RewriteEngine on
RewriteRule ^/(.*) https://www.foobar.com/$1
___
Zope
ve with my rewrite rules. Thanks for the tip.
FYI, in these situations I put bits I want to enforce SSL on in a
folder called secure, and then do mod_rewrite variations on
RewriteCond %{REQUEST_URI} ^/.*secure.*/
RewriteRule ^/(.*) https://www.foobar.com/$1
seb
__
headers from each browser through a telnet
session and I seem to get all the data every time.
Has anyone else seen this behaviour? You can check it out at
http://test1.jamkit.com
and if you're running IE you may see either a stray
on a white background.
Cheers,
seb
__
#x27;s no problem there
I imagine the fact that I can make it work by adding index_html is the
most telling point, but it's not telling me anything ;)
I'll continue my research by eliminating elements until I've nailed down
exactly the bit that's messing it up. Right now, th
t other servers when I get back
(mid Jan - long holiday :-)
cheers,
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/zop
ause there's a bug in zope that won't allow null values in DateTime
properties.
hth
seb
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://
lf.file = Image('file',title,'')
self.file.manage_upload(file)
Can anyone tell me what's wrong here?
Cheers,
seb
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HT
> - class browser for python, with expand/collapse of code (like the editor for
> Python 2)
would
http://www.beopen.com/products/oobrowser/oobrowser_overview.html
be any use?
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/li
ish the second task effectively you should look at
LoginManager; in doing so you will find answers to your first
question. however, you may find you need to refer a lot to the
mailing list archives to get LoginManager installed ;)
seb
http://www.zope.org/Members/
I've just been experimenting with the RAM Cache manager, and FWIW I thought
I'd share my findings:
I ran some simple tests using ab against a single, dynamic page which has
some display logic both in the filesystem product and dtml. I cached the
index_html using the default RAM Cache Manager set
gist, but
I'd be happier if some obi-wan could guide me with the api docs
promised in the fishtank proposal
seb.
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Relate
r own snippets of
logic, you would be wise to cache them all. Otherwise you would lose the
benefits of caching (a), because to build the page, Zope is still making
hits to disk each time.
well, that's how I assume it works, anyway. time for more tests, i think...
seb
__
91 matches
Mail list logo