I have noticed a buglet in the dtml-var expression evaluation:-
dtml-var "x/y*z"
Is the same as dtml-var "x/(y*z)" this is obviously wrong :-)
so I need to expressly put dtml-var "(x/y)*z"
--
Totally Holistic Enterprises Internet| P:+61 7 3870 0066 | Andrew Milton
The Internet (Aust) Pty
Bob:
You are 100% correct. I didn't want to write a DTD for dtml (though
this is probably the "right" solution) so instead I went searching for
other options. Here's what I found:
If you use hm--html-mode, there's a variable called:
hm--html-tag-name-alist where I added some definitions for
Ok, after poking around in the code and debug (!) I finally realized that
the ID being passed to manage_exportObject is not the filename, but the id
of the object to export.
So a couple of examples to clarify:
to export a folder from the top level (root), you can do two things:
1. Check the
On Fri, 26 May 2000 15:14:56 +0200, Martijn Pieters [EMAIL PROTECTED]
wrote:
Shame there's no "safe pickle option" that allows only numbers, strings,
lists, tuples and dictionaries.
There is actually. It's called marshal:
http://www.python.org/doc/current/lib/module-marshal.html
which
about RSS, the url is :
http://www.xml.com/pub/2000/02/23/zope/index.html
0,02$
- Original Message -
From: "Oleg Broytmann" [EMAIL PROTECTED]
To: "Zope Mailing List" [EMAIL PROTECTED]
Sent: Wednesday, June 07, 2000 10:22 AM
Subject: [Zope] News tickers
Hello!
I'm looking for
On Wed, 7 Jun 2000, Olivier Deckmyn wrote:
about RSS, the url is :
http://www.xml.com/pub/2000/02/23/zope/index.html
Thanks! Sure, good article. (Thanks, Amos.)
Oleg.(All opinions are mine and not of my employer)
Oleg Broytmann Foundation for Effective Policies
Hi,
I want to find the unique values from a search.
This first search return (among others) som keywords (emneord) which
unique values I want get(second search).
dtml-in "artikler.artikel_catalog(artikel_dato=[artikel_dato_fra,
artikel_dato_til], artikel_dato_usage='range:min:max',
Hi all!
I just have a problem of documentation does anyone know where I can
find the doc about all the manage_something primitives (like
manage_upload(), manage_clone()...)
My problem is that I want to insiantiate an abject from a method, but I
can't find the good primitive.
Thanks for
but I can't find the answer...
can I set a local variable in zope on a dtml page
eg
dtml-var variablename = 1
thanks josh on
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding!
josh on wrote:
can I set a local variable in zope on a dtml page
dtml-var variablename = 1
Yup:
dtml-call "REQUEST.set('variablename',1)"
Nice syntax, huh? ;-)
Chris
___
Zope maillist - [EMAIL PROTECTED]
+[ Chris Withers ]-
| josh on wrote:
| can I set a local variable in zope on a dtml page
| dtml-var variablename = 1
|
| Yup:
|
| dtml-call "REQUEST.set('variablename',1)"
|
| Nice syntax, huh? ;-)
Tsk tsk, that's global :-)
dtml-let
Is it global to the page, or local to the page ?!?!?
- Original Message -
From: "Andrew Kenneth Milton" [EMAIL PROTECTED]
To: "Chris Withers" [EMAIL PROTECTED]
Cc: "josh on" [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Wednesday, June 07, 2000 3:05 PM
Subject: Re: [Zope] stupid question I
Hello,
i'm trying to use the FSSession to have a little shopping cart for
e-commerce.
I can initialize the dictionary named "cart" and it is created in the
datafile.
When i try to update it with the data from my form i get the error:
Zope Error
Zope has encountered an error while
I have been trying to catalog a "News Item" and a "Product Release" inside
www.zope.org, but I get the error
===
System Unavailable
This site is currently experiencing technical difficulties. Please contact
the site administrator for more
At 12:05 am +1000 8/6/00, Andrew Kenneth Milton wrote:
+[ Chris Withers ]-
| josh on wrote:
| can I set a local variable in zope on a dtml page
| dtml-var variablename = 1
|
| Yup:
|
| dtml-call "REQUEST.set('variablename',1)"
|
| Nice syntax,
- Original Message -
From: Ian Sparks [EMAIL PROTECTED]
The conceptual problem I have is that DTMLMethods/Documents don't have a
parameters tag like SQLMethods do, so I don't see how I can "trap" parts
of
the URL like SQLMethods do and use them internally in my Method/Document.
There
Hi Marcello
On Wed, 7 Jun 2000, Marcello Lupo wrote:
and macically i obtain the same error.
this is the code i used:
dtml-call FSSession
dtml-unless "FSSession.has_key('cart')"
dtml-call "FSSession.set('cart',{})"
/dtml-unless
dtml-call "FSSession['carrello'].update(REQUEST.form)"
Newbie Question,
I wish to use use the date of a database file in my dynamic html code. For example,
this database was last updated on 06/06/2000. I suppose that there must be a dynamic
html tag that zope uses. What could it be? I looked at all the documentation and
have yet to discover
Luciano Ramalho wrote:
[snip]
The object-relational mapping mechanism WO uses, however, is very advanced and,
in a basic level, easy to use too. Classes are written in Java by a case-like
tool and automatically bound to tables. In fact, programmers rarely have any
contact with SQL: all
On Tue, 6 Jun 2000, Alexandre A. Drummond Barroso wrote:
We are posting e-mails about it on the list for a while and nobody answered,
so I must think that nobody on Zope universe is using Oracle 8i (neither NT
nor Linux Oracle 8i client).
I installed DCOracle for a client using 8i. The only
Evan Simpson wrote:
3. Use a SiteAccess Access Rule on the folder, having it check to see if
the next object to be traversed is your DTMLMethod. If so (and if the next
name doesn't start with 'manage'!) remove the rest of the traversal path and
store it in a REQUEST variable. Not too bad,
Michael Bernstein wrote:
As I recall (from a WebObjects demonstartion I sat through a
long time ago), WO creates the most godawful mangled URLs
that I had ever seen. As a result, a WO site cannot be
spidered by search engines, or converted to a static copy
using wget.
Zope's not too hot on
Zopists,
Does anyone know if it's possible to create a search in the ZCatalog
based on permission or role.
Such as:
Search of the things from the ZCatalog where the current user has the
'View' permission for the text 'smith'.
I love to push the envelope. :)
--
Jason Spisak
[EMAIL
CURTIS David wrote:
I wish to use use the date of a database file in my dynamic html code. For example,
this database was last updated on 06/06/2000. I suppose that there must be a dynamic
html tag that zope uses. What could it be? I looked at all the documentation and
have yet to
Hello,
I'm trying to get some doubleqoutes to the final document,
but I've been unsuccesful so far:
dtml-let hack="\"app\"
ONCHANGE=\'location.href=cookie?app=+this.options[this.selectedIndex].value\'"
/dtml-let
--
Riku Voipio
[EMAIL PROTECTED]
09-862 60764
I'm going to rewrite my web site in dtml and am using the latest stable
Zope. Well, I should say I'll rewrite it after I get over this infuriating
newbie problem I have. :-)
`
I'm trying to get Zope to display an image from a subdir. I've whipped up a
simple dtml document called "test". Test
wow great answer, thanks that has just peeled off another layer of zope
mystery for me.
can this be put in the dynamic faq?
josh on
- Original Message -
From: Tony McDonald [EMAIL PROTECTED]
To: Zope List [EMAIL PROTECTED]
Sent: Wednesday, June 07, 2000 3:17 PM
Subject: Re: [Zope]
snip
However, I want to keep all of my commonly used image files in a
subdirectory called /images. So I create a folder called "images", upload
another copy of logo.jpg into it, everything's fine. I change the dtml in
the "test" document to be "dtml-var /images/logo.jpg". And it
Hi all,
my question is what type or value is returned by a ZSQL method that is
invoked from Python?
Or, more precisely, how can I determine if a field contains a NULL value?
Sample code:
def myZSQLAccessFromPython(self, aParameter):
"""myZSQLAccessFromPython() returns a record set from a
At 11:35 am -0400 7/6/00, Randy Edwards wrote:
dtml-var standard_html_header
h2dtml-var title_or_id/h2
pThis is the dtml-var id Document./p
pNow show a graphic: br
dtml-var logo.jpg
/p
dtml-var standard_html_footer
That references an image file in the root directory called logo.jpg.
On Wed, 7 Jun 2000 [EMAIL PROTECTED] wrote:
So how do I export everything from root? Ok .. this is a real bugger, I
can't believe it's taken me so long to figure it out (I was first checking
file permissions etc).
Answer:
Make sure you are in the root folder and then click the Export...
- Original Message -
From: Riku Voipio [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 07, 2000 5:28 PM
Subject: [Zope] escaping with dtml?
Hello,
I'm trying to get some doubleqoutes to the final document,
but I've been unsuccesful so far:
dtml-let hack="\"app\"
I have a few Zope sites email me any error reports and both of the sites
(different machines) get this error about two or three times a day.
Traceback:
Traceback (innermost last):
File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 151, in
publish
File
Internet explorer is looking for an favicon.ico or a custom icon file that
customizes your bookmark entry into a users book mark list. If you get an
icon editor and make a custom icon 16x16, I think, icon then you can put it
in your home directory and when someone bookmarks the site they will
On Wed, 7 Jun 2000, J. Atwood wrote:
So even though there are no references to it in the HTML MIE is looking for
it? Is there anyway to fool it? Can I just put a blank DTML Document? Why
would MIE be checking the server for that file?
Becasue if it finds the file in a directory it would
Sorry, but...
Nevermind, I got it:
dtml-var "_['sequence-item'][0]"
^^^
!!!
On Wed, 07 Jun 2000 10:40:59 mikk wrote:
Hello all,
If I have a REQUEST variable that equals a list, like this:
['ITEM_NUMBER','PRICE']
How would I get
dtml-let hack="_.chr(34)+'app'+_.chr(34)+'
ONCHANGE='+_.chr(39)+'location.href=cookie?app=+this.options[this.selectedIndex].value'+_.chr(39)"
will do what you are trying to do
- Original Message -
From: Riku Voipio [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 07, 2000
On Wed, 7 Jun 2000, ethan mindlace fremen wrote:
CURTIS David wrote:
I wish to use use the data of the database file in my html code. For example,
this database was last updated on 06/06/2000. I suppose that there must be a
dynamic html tag that zope uses. What could it be? I looked at
I'm fairly new to Zope, so this may be a dumb question, and my vocabulary could
be wrong, so please bear with me.
I'm in the middle of building an e-commerce solution for my company, and we're
evaluating Zope (and PHP and Servlets, but that's immaterial) as the platform on
which to base this
I've got a newbie question that I can't seem to find an answer to after
checking docs/faqs. This is sort of design-related.
Presently I write web pages as tabled modules which are each put into
various *.html files. I then string pages together with various modules
using server side
Riku Voipio writes:
I'm trying to get some doubleqoutes to the final document,
but I've been unsuccesful so far:
In a Python expression, you can use "chr(34)" to add a quote,
e.g.
dtml-let quote="chr(34)"
/dtml-let
Dieter
___
Bryan Stillwell writes:
Here's the traceback I received:
Sorry, a Zope error occurred.p
!--
Traceback (innermost last):
File /usr/share/zope/lib/python/Products/WorldPilot/WorldPilot.py, line 1878, in
getpart
(Object: RoleManager)
File
On Wed, 7 Jun 2000, Dieter Maurer wrote:
Bryan Stillwell writes:
Here's the traceback I received:
Sorry, a Zope error occurred.p
!--
Traceback (innermost last):
File /usr/share/zope/lib/python/Products/WorldPilot/WorldPilot.py, line 1878,
in getpart
(Object:
eh tone, your using my name in vain again ;)
- Original Message -
From: "Tony McDonald" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; "Zope List" [EMAIL PROTECTED]
Sent: 07 June 2000 16:56
Subject: Re: [Zope] Newbie question: graphics in subdirs
At 11:35 am -0400 7/6/00, Randy Edwards
I've largely been able to ignore most of the Zope security mechanisms until now,
but I have this new intranet app that's causing me problems.
I have a folder called Reuters that has my application's methods; it has a
subfolder called Staging that has documents being reviewed and subsequently
- Original Message -
From: "Jason Lee" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 07, 2000 3:50 PM
Subject: [Zope] Dynamically Picking which object to display
I'm fairly new to Zope, so this may be a dumb question, and my vocabulary
could
be wrong, so please bear
Hello,
First off, sorry for the cross-posting of this message to admin and
to
development.
I'm a software developer for a major ISP in the Midwest region of the
USA.
Recently we began evaluating Zope for use in our web application
development,
internally and for our clients, and have
Dear All:
I'm using dtml-sendmail to send messages of Chinese characters from
Zope. From time to time I got wierd mail delivery behaviors. I was told
then that mail header/message body must follow RFC-822 and RFC-2047
standard with proper encoding, if not in US-ASCII. Basically these RFCs
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi,
I seem to get more than a few errors emailed to me, and am trying to
track down how they are occurring. I never see these errors myself
which makes it frustrating.
I know the url where these occur. Most of them occur at forms. How can
I get
"Dan L. Pierson" wrote:
You might want to take a look at the bottom of http://www.lfw.org/python/...
He finally released it! I've been waiting for this since IPC8.
--
Itamar S.T. [EMAIL PROTECTED]
"It don't get thingier than that!"
___
Hi Zopists,
I would like to use ZODB3 as an object DB to store my own objects. At
the beginning, I will make any text UI but later I want to put my
objects into a ZOPE Folder and store them inside ZOPE ZODB (Zope will
serve as GUI). Generaly I have 2 types of objects:
Container - object with
Petr Knapek wrote:
Container - object with some attributes and methods which can collect
other objects (also Containers)
For these you should inherit from OFS.ObjectManager.ObjectManager.
Item - an object with some attributes and methods which can not collect
any other objects but can be
Bill Anderson writes:
"Phillip J. Eby" wrote:
At 04:03 PM 6/6/00 -0600, Bill Anderson wrote:
I am using the deafult UserSource that comes with LM for the moment (one
step at a time ;)
LM or PTK?
LM
(Waiting for Dan's changes before trying _any_ LM with PTK ;)
Hello all,
You probably saw my yesterday post with the first alpha of
ReiserStorage. One of the questions that people tend to ask about it is
wheter they can use it without reiserfs.
There are two problems with not using reiserfs:
1. ReiserStorage (now renamed to
- Original Message -
From: "Itamar Shtull-Trauring" [EMAIL PROTECTED]
To: "Kevin Dangoor" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Wednesday, June 07, 2000 3:44 AM
Subject: Re: [Zope-dev] Getting to container from a method called by the
factory
Kevin Dangoor wrote:
I'm
- Original Message -
From: "Rik Hoekstra" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 07, 2000 4:28 AM
Subject: [Zope-dev] Recursively adding ZClasses (continued)
First I had a problem with nested ZClasses, which got me into trouble
when I wanted to add ZClasses to
Petru Paler:
This is the embodiment of my MutliFileStorage thingy on Jim's ZODB Wiki. I
droped it (Never picked it up) when Mountable Storage was announced. I'll
create a ReierFS partition some time this week and try it out. Excellent!
Hello all,
You probably saw my
snip
Thanks for replying Kevin, but it won't work ;-( I tried it ALL, and it
_will_not_work_. The nested ZClasses will apparently solve it (I used it
elsewhere), but it will get you into trouble in other situations - if
you want to add an instance of the nested zclass to an existing instance
of
Chip Vanek writes:
Hi,
I also tried to get the patch working with 2.2CVS PTK CVS and had little luck.
I also needed to manually apply the patch and worked through the errors until
I got a security violation with the PTK. I was no longer in any way able to
access any of my test
Rik Hoekstra writes:
This currently adds recursive ZClasses for me. All ZClasses are on the top
level of the Product, no nesting:
cut out untested
dtml-with "PermanentJobClass.createInObjectManager(REQUEST['id'],
REQUEST)"
dtml-call
60 matches
Mail list logo