HI!
I am having a slight newbie problem and for the life
of me cannot find any references for how to do it.
I have input boxes on a page. I want the information
from that box to be input into a database table upon
clicking the Submit button.
I cannot figure out how to get that information from
Today is not a good day:-( I've just spent 2 days trying to force
__call__ to render my product properly, got every error possible at least
seven times, and wasted last night working out what was wrong with Refresh
(I was calling refresh on the wrong product. Duh!).
Please, please, please,
On 10/10/00 11:33 AM, "Yvonne Totty" [EMAIL PROTECTED] wrote:
HI!
I am having a slight newbie problem and for the life
of me cannot find any references for how to do it.
I have input boxes on a page. I want the information
from that box to be input into a database table upon
clicking
Stephen Simmons wrote:
1.) How do you magically get the DTML context from 'dtml-var A' without
having to resort to 'dtml-var "A(_,REQUEST)"' in the templates?
Give your class a class attribute of isDocTemp=1. This tells the DTML
method calling machinery that you want to receive the
Stephen Simmons wrote:
2.) How to convert an arbitrary text string into rendered DTML inside a
python product method?
How do you get the object's properties, REQUEST and acquisition context all
in the namespace?
I've been trying code like:
template = 'span class="purpose"dtml-var
From: Stephen Simmons [EMAIL PROTECTED]
1.) How do you magically get the DTML context from 'dtml-var A' without
having to resort to 'dtml-var "A(_,REQUEST)"' in the templates?
A.isDocTemp = 1 # or make it a shared class attribute
2.) How to convert an arbitrary text string into rendered
Hi. I downloaded Zope 2.2.2 source and I am trying to compile it on
WinNT to run without pcgi and it fails (console output following this letter).
I tried to track down the problem but I don't seem to make any progress.
Could You help me please...
Hi,
Can someone please tell me what is going on. while querying a postgres
database i am unable to access any crap from zope. I have tried creating a
db connection in a enternal method and querying through that but it still
locks and wont serve any requests.
a
Mark
Hi,
I still need help about my product needing to know its namespace...
Look at the following piece of DTML Meth/Doc :
dtml-let STRING="'Hello, world !'"
dtml-var MyProduct
/dtml-let
Right.
MyProduct is my product's instance, defining the following method :
def __call__
Hi all,
I am new to Zope but worked for 2 years in a dev-env called Uniface so
Im fairly up to speed on Zope quickly. But I am having a problem writing
data through a REQUEST.set that is larger than its apparent limit.
(sorry can remember the exact error i get from Zope)
What I am trying to do
From: Lars Heber [mailto:[EMAIL PROTECTED]]
Sorry, I think you misunderstood me!
I _don't_ want to stop the gif, but it does after the last frame! --
Now I tried the same Zope page in NS and IE, this phenomenon appears only
with
NS...
I did understand you, but I could not replicate your problem
Francisco =?ISO-8859-1?Q?Jos=E9?= Esteban =?ISO-8859-1?Q?Risue=F1o?= writes:
this is the standard behaviour in a HTML form. To avoid this problem we
include
an line like this:
dtml-if "REQUEST.has_key('CheckBox_name')"
dtml-else
dtml-call "REQUEST.set('CheckBox_name', 'N')"
Roland Reumerman writes:
1) When I set a cookie with the path set to the root
dtml-call "RESPONSE.setCookie('account',AUTHENTICATED_USER,path='/')"
Be careful with "cookies"!
The value of a cookie it quite severely restricted (must not contain
many characters; you read the cookie
Brian Withun writes:
I have two ZClasses. One ("Album") is folderish, and serves as a photo
album. The other ("Photo") isn't and serves as a photo in an Album. Albums
can contain only Albums and Photos.
I would like to have a dtml-tree represent this hierarchy of Albums and
Seb Bacon writes:
I know how to create a form that does what I want (update properties,
whatever). What I don't know is how to include it as part of the rendered
content programmatically. At the moment users have to go to
www.widgets.com/manage_content, log in, and see a set of forms
Chris Withers writes:
Toby Dickenson wrote:
Those people were concerned that too many things were exposed via
ZPublisher also My interpretation was that the issue is one of
access control, not publishing protocol.
I think the issue is that you can't limit the visibility of
Well, beeing very straightforward, I read this, in
OSFP/Help/DTMLDocument.py :
"""
A DTMLDocument implicitly pass itself as a client argument in
addition to the specified client, so names are looked up in
the DTMLDocument itself.
Passing in a namespace to a
On Tue, 10 Oct 2000 10:51:09 +0200, Pierre-Julien Grizel
[EMAIL PROTECTED] wrote:
I still need help about my product needing to know its namespace...
You also need to read the answers already provided.
http://www.zope.org/Members/htrd/howto/FunctionTemplate
Toby Dickenson
[EMAIL PROTECTED]
At 2:03 PM + 10/7/2000, Stephan Goeldi wrote:
Is there something like webalizer for Zope?
I would like to create a statistic of my website's visits.
Webalizer and Analog will work great. Zope logs are standard.
J
___
Zope maillist - [EMAIL
Toby Dickenson wrote:
On Tue, 10 Oct 2000 10:51:09 +0200, Pierre-Julien Grizel
[EMAIL PROTECTED] wrote:
I still need help about my product needing to know its namespace...
You also need to read the answers already provided.
http://www.zope.org/Members/htrd/howto/FunctionTemplate
Dieter Maurer wrote:
Note, that probably Zope user names may contain characters not
allowed in Cookie values.
I wonder how hard it would be to implement the following:
dtml-var something cookie_quote Quote all characters not allowed in a
cookie
dtml-var somethinh id_quote Quote all
hi,
How can I pop back one namespace from the stack ?. In fact I need the id
from the
dtml-method I'm was called from.
thanks a lot.
-
Beuserie Frederic
DSI / Système et Exploitation - 3 Suisses Belgique
Tel: +3269/882485 / Fax: +3269/882491
Email:
Heymann William wrote:
I am trying to get rid of those question marks in my urls since it
seems to confuse the users but I am not sure really how to do that. I have
heard that it can but done but so far I have not found out how it can be
done. I want for the last piece of the url to be
Pierre-Julien Grizel wrote:
It seems that in fact the DTML document doesn't actually pass _.None and
_ to my object. WHY ??
This is deep voodoo that I don't fully understand. To me, it appears
that what you get depends on how your __call__ was called...
The arguments vary dependign on
Hi again,
Some extra info from reproducing the error again:
ValueError: PQsendQuery() -- query is too long. Maximum length is 16382
This error comes from the traceback AFTER the method is called to store the
list in the dbms so I assume that the error is actually the DBMS field size
and NOT
roland,
there is a precompiled Win32 version available to download at:
http://www.zope.org/Products/Zope/2.2.2/Zope-2.2.2-win32-x86.exe
use that instead.
jens
on 10/10/00 3:02, Roland Tepp at [EMAIL PROTECTED] wrote:
Hi. I downloaded Zope 2.2.2 source and I am trying to compile it on
I have two questons concerning ZODB:
1. Since ZODB does not overwrite objects on change one can get the older
versions when undoing the changes.
My question now: how can I access older versions of
objects without undoing transactions? (I had a short glance at the ZODB classes,
but found
This is because the thing which makes
the problem hard is that something like standard_html_header
wants to be
editable by Managers TTW, which means it also has to be visible TTW.
However, it's probably not something you want exposed to anonymous
users, especially as a TTW
dtml-var something cookie_quote Quote all characters not allowed in a
cookie
wouldn't dtml-var something url_quote do the job?
That reminds me, it's silly that there's not dtml-something url_unquote,
so I patched my zope to provide it. I was wondering if there's a mechanism
for getting this
Seb Bacon wrote:
dtml-var something cookie_quote Quote all characters not allowed in a
cookie
wouldn't dtml-var something url_quote do the job?
Dunno... Dieter?
That reminds me, it's silly that there's not dtml-something url_unquote,
so I patched my zope to provide it. I was
Philipp Auersperg wrote:
I have two questons concerning ZODB:
1. Since ZODB does not overwrite objects on change one can get the older
versions when
undoing the changes.
My question now: how can I access older versions of objects without
undoing?
transactions? (I had a short glance at
It would be really nice to know how many people are downloading the
products. This would also be a great feature to add to the actual
Zope distribution. I know you could get this from the logs (easily)
but you could also add a small counter to the product 'view' method,
something along the
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 -
Hello,
it's me again.
I found out what the matter of my problems was.
I tried the animGif on several other computers with different versions of NS,
on every of them it worked.
And here's the kicker: It also worked on another computer which had the same
version installed like me!
Therefore,
Hi together,
Could someone tell me where is the difference between
URL0 and BASE3 or
URL1 and BASE2 ...
Thanks for your helping hand, Hannes
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or
In fact I need the id from the dtml-method I'm was called from
Try dtml-var HTTP_REFERER
Dan
Beuserie Frédéric (stbrice dsi) wrote:
hi,
How can I pop back one namespace from the stack ?. In fact I need the id
from the
dtml-method I'm was called from.
thanks a lot.
Yes, it was a misunderstanding regarding basic user permissions and the
Anonymous role on my part.
I did not want to allow the Anonymous role *any* permissions, and the
site I am working in is contained in a folder beneath the root Zope
folder.
The problem was that I had disabled the "Access
From: Chris Withers [EMAIL PROTECTED]
Pierre-Julien Grizel wrote:
It seems that in fact the DTML document doesn't actually pass _.None and
_ to my object. WHY ??
This is deep voodoo that I don't fully understand. To me, it appears
that what you get depends on how your __call__ was
From: Paul Zwarts [EMAIL PROTECTED]
ValueError: PQsendQuery() -- query is too long. Maximum length is 16382
This is purely a PostgreSQL issue; Some (all? not sure.) versions of PostgreSQL have a
hard limit on
the length of query strings. You have to break your query into multiple smaller
Hello,
I'm using the photo-product, when one has created a photo-instance "image"
you can render this like so:
dtml-var "image(display='thumbnail')"
now I wanted to loop over all photos in a folder "Images" and did:
dtml-with Images
dtml-in "objectItems('Photo')"
dtml-call
Joachim Schmitz wrote:
dtml-call "REQUEST.set('bild',_['sequence-item'])"
Here's your problem, thanks to _'s 'itneresting' implementation of
__getitem__...
...what you really want is:
dtml-call "REQUEST.set('bild',_.getitem('sequence-item',0))"
cheers,
Chris
Evan,
The information you just provided about the DTML Method "call
signature" and the like is very useful. Is this kind of reference
material written down somewhere in a guide/how-to/wiki/...?
I tried to figure out the call signature of a Python method by having
the called function use just
Hi!
Is there somewhere I can get a list of errors and their
meanings?
Thanks!
Yvonne
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
Take a look at this
http://www.python.org/doc/current/lib/module-exceptions.html
Dan
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
Hi all,
I've just installed Zope-2.2.1 onto a clean Solaris 8 machine. I've
built Python 1.5.2 from source and have MySQL 3.22 on the server.
I've compiled up the ZMySQLDA product and put the MySQLModule.so in
the correct place (ie one directory up from the src directory).
I've restarted the
Of course the only problem with a hit counter is that high traffic requests
mean continually writing the object into the ZODB each time it gets hit /
downloaded, whatever. Thats why I release FSCounter which uses the file
system. I would like to expand this to cover multiple objects...
-
Yup... the ZODB does grow with each hit. Not much of course, but some. I am
sure for a site such as Zope.org it would not be unmanageable. They most
certainly have automated ways of packing the DB.
J
From: "Andy McKay" [EMAIL PROTECTED]
Date: Tue, 10 Oct 2000 10:05:24 -0700
To: [EMAIL
ZSQLMethods does exactly that, have a look at that.
Look at michel's wiki.
- Original Message -
From: "Chris Withers" [EMAIL PROTECTED]
To: "Heymann William" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, October 10, 2000 3:56 AM
Subject: Re: [Zope] How: /foo?var=bar equiv to
Hello Philipp!
1. Since ZODB does not overwrite objects on change one can get the older versions
when undoing the changes.
My question now: how can I access older versions of objects without undoing
transactions? (I had a short glance at the ZODB classes, but found nothing)
The code for
On Tue, Oct 10, 2000 at 04:58:46PM +0930, Mark Twiddy wrote:
Can someone please tell me what is going on. while querying a
postgres database i am unable to access any crap from zope. I have
tried creating a db connection in a enternal method and querying
through that but it still locks and
Howdy Zopsters,
I want to catalog some html files but I want to strip the html tags out.
htmlparser does a good job of that, but when I try to acces that from an
external method, I run into trouble.
import htmllib
import formatter
def index(self, html):
fmtr =
From: Fred Yankowski [EMAIL PROTECTED]
The information you just provided about the DTML Method "call
signature" and the like is very useful. Is this kind of reference
material written down somewhere in a guide/how-to/wiki/...?
The only thing I could find offhand is
On Tue, Oct 10, 2000 at 11:56:11AM +0200, Pierre-Julien Grizel wrote:
So - I had a look at DTMLDocument.py and saw the following method :
def __call__ (self, client = None, REQUEST = {}, **kw):
...
SO - I try to create this method for my product :
def __call__ (self, client =
Zopists,
Can anyone tell me off hand any big disadvantages to not using DTML
(Caching, etc...) and using a package like HyperText
http://dustman.net/andy/python/HyperText
to produce html display for your objects, and use python to process it?
Jason Spisak
[EMAIL PROTECTED]
Howdy Zopsters,
I want to catalog some html files but I want to strip the html tags out.
htmlparser does a good job of that, but when I try to acces that from an
external method, I run into trouble.
import htmllib
import formatter
def index(self, html):
fmtr =
I'd like to make a form that looks like the typical file
upload form, but will upload ONLY the header of the chosen
file.
Anyone know how / if this can be done?
--
.paul winkler..
slinkP arts: music, sound, illustration, design, etc.
web
Chris Withers writes:
Seb Bacon wrote:
dtml-var something cookie_quote Quote all characters not allowed in a
cookie
wouldn't dtml-var something url_quote do the job?
Dunno... Dieter?
I reread the cookie spec:
in cookie values forbidden are: semi-colon, comma and
Seb Bacon writes:
For me, the 'visibility' problem is a real bugbear. Apart from the
'security' issue of anon. users being able to list objectIds, it means I am
loathe to allow clients to manage their sites through the manage interface.
This is because they'll see it littered with
Aaron Straup Cope writes:
I did not want to allow the Anonymous role *any* permissions, and the
site I am working in is contained in a folder beneath the root Zope
folder.
The problem was that I had disabled the "Access contents
information" privilege for the Anonymous user (whose
Hey to everyone,
I'm shooting myself in the foot here with this
construct:
select name="begin_day" size="1"
dtml-in "_.range(1,32,1)"
option value="dtml-sequence-item;"
dtml-if expr="begin_day == _.getitem('sequence-
item')"
selected
/dtml-if
Andy McKay wrote:
Of course the only problem with a hit counter is that high traffic requests
mean continually writing the object into the ZODB each time it gets hit /
downloaded, whatever. Thats why I release FSCounter which uses the file
system. I would like to expand this to cover
Yes Apache and caching adds a whole new layer of complexity.
But most simple Zope installations dont use it and for quick rough counts it
can be useful, of course its rare to be able to replace the log files in
terms of accuracy.
- Original Message -
From: "mindlace" [EMAIL PROTECTED]
Try using a StringIO object as your file.
import htmllib
import formatter
from cStringIO import StringIO
def index(self, html):
file = StringIO()
fmtr = formatter.AbstractFormatter(formatter.DumbWriter(file))
p = htmllib.HTMLParser(fmtr)
p.feed(html)
file.seek(0)
return
"Manuel Amador (Rudd-O) Gerente de desarrollo Alpha Omega
Creative Solutions http://www.alomega.com/" wrote:
BUT, the comparison between the two, won't work. Even
comparing two _.getitems doesn't work. So it's
expected that at no point does the selected property
appear in my html source.
Ooops... sorry Ethan, didn't mean to send this to the wrong place. Just
wanted to see what others felt about it. If it is undoable, cool. If someone
figures out a way, it would be really appreciated and certainly a boost to
Zopista's and product developers to see how popular and used our products
Jonothan Farr,
Thanks very much! I am new to Python. I coded my first Zope app in
entirely DTML, so now I'm moving deeper. That's a handy thing to have.
All my best,
Jason Spisak
[EMAIL PROTECTED]
Try using a StringIO object as your file.
import htmllib
import formatter
from
Andy,
I am actually just starting working with it. As long as I can have help
futzing with the aq_parent stuff to get it to work, I'll be using it in my
intranet app.
My real desire is to find a way to construct these type of html objects
from html. Like a poor man's HyperDOM. :)
Cool, do I
Mark Twiddy writes:
Can someone please tell me what is going on. while querying a postgres
database i am unable to access any crap from zope. I have tried creating a
db connection in a enternal method and querying through that but it still
locks and wont serve any requests.
We saw a
Jason Spisak writes:
I want to catalog some html files but I want to strip the html tags out.
htmlparser does a good job of that, but when I try to acces that from an
external method, I run into trouble.
You may look at
Beuserie =?ISO-8859-1?Q?Fr=E9d=E9ric?= (stbrice dsi) writes:
How can I pop back one namespace from the stack ?. In fact I need the id
from the
dtml-method I'm was called from.
You can not (from DTML).
The caller must help you, e.g. by:
calling method:
dtml-let
Loibl Johann writes:
Could someone tell me where is the difference between
URL0 and BASE3 or
URL1 and BASE2 ...
URLn removes "n" URL path components from the right,
BASEn consists of the first "n+1" or "n+2" URL components.
Thus, if you URL is "host/u1/u2//un",
then URL0 is URL, URL1
Dennis Nichols writes:
dtml-var "myDoc.description" fmt=structured-text
And shouldn't the fmt specification tell how
myDoc.description is to be presented instead of how it is stored?
I agree with you that "fmt" should specify how the value should
be formatted and not how it
This is my second question:
Id like to run a dtml-in sqlquerymethod with specific
parameters to its namespace
This is the deal
I want to construct a dropdown list, with all values
retrieved from a SQL stored procedure, so if I open the
form with no variables, all of them appear, but if i
Hi,
Zope comes with the Medusa monitor (port 8099 by default) which is kind of
cute and allows one to get into the guts of Zope. But do people really use
it? How do people use it? Is there any document describing the usages of
this monitor? Are there some features of this monitor that makes
Tone,
What version of the MySQL DA are you using, there is a bug in one of them
that causes no data to be returned in specific circumstances, at least as
far as I can see.
I did at one time fix it, give me a few hours to see what I did and I'll
mail you back.
hth
Phil
- Original Message
Dieter:
Thanks Dieter.
Jason Spisak writes:
I want to catalog some html files but I want to strip the html tags out.
htmlparser does a good job of that, but when I try to acces that from an
external method, I run into trouble.
You may look at
Use it for debugging sometimes.
Is very easy to use. Basically
import Zope
z = Zope.app()
then z is the root of your zope tree so you can do anything. You will need
to import any other python modules you need too.
terry
Hung Jung Lu wrote:
Hi,
Zope comes with the Medusa monitor (port
Manuel,
You'll probably find that your comparing a string 'begin_day' to an integer
'sequence-item'.
Try something like:
dtml-if expr="_.int(begin_day) == _.int(_.getitem('sequence-item'))"
hth
Phil
- Original Message -
From: "Manuel Amador (Rudd-O) Gerente de desarrollo Alpha
Hi thanks for the reply
The problem is whenever i do really big query everything stops and waits.
im using
ZPyGreSQLDA-0.3-rjr2
and
py-PyGreSQL-2.4
thanks
Mark
On Tue, 10 Oct 2000, Mike Renfro wrote:
On Tue, Oct 10, 2000 at 04:58:46PM +0930, Mark Twiddy wrote:
Can someone please tell
this Postgres adapter is not multithreaded, check out the ZPoPyDA from zope.org.
That is an alternative Postgres adapter that is multithreaded and does not lock up.
phil
*** REPLY SEPARATOR ***
On 11.10.2000 at 08:48 Mark Twiddy wrote:
Hi thanks for the reply
The problem is
Hi all,
Thanks for all the help
Ive installed PoPy-1.36 and ZPoPyDA-0.64 and it works like a bastard :
Thanks all
Mark
On Wed, 11 Oct 2000, Philipp Auersperg wrote:
this Postgres adapter is not multithreaded, check out the ZPoPyDA from zope.org.
That is an alternative Postgres adapter
Thanks for the help! Still looking for that HOWTO.txt
So, now I have a UserSource Installed into my LoginManager. It is called
"pgcrypt" and is supposed to authenticate to a SQL database. The password
stored in the DB is encryputed using the same scheme. Any ideas why it
doesn't let me in?
Still haven't found an answer, after 4 hours searching the
egroups archive.
Just to clarify:
I need to read the headers of the files BEFORE I upload the
entire file, because the files may be very large and I need
to be able to give a warning if the file does not meet
certain criteria. Example: a
83 matches
Mail list logo