All,
Has anyone figured out a way to prevent a user from going "Back" to a
page once they have passed it.
The situation:
We have an Order Entry/Billing intranet site where users fill out
several pages of data an then submit the information. After the order is
submitted we would like to
When I try to start zope I get the following error.
root@capsprodt1:/home/caps/test/zope$ Traceback (innermost last):
File "/home/caps/test/zope/z2.py", line 386, in ?
exec "import "+MODULE in {}
File "string", line 1, in ?
File "/home/caps/test/zope/lib/python/Zope/__init__.py", line
I tried your code and it works fine both ways for me, are you sure that
para exists in the second scenario.
DR
Dirksen wrote:
Hi,
The case is like this:
dtml-var "some_dtml_method(_.None, _, para='blablabla')"
Works fine.
dtml-call "some_dtml_method(_.None, _, para='blablabla')"
The
I have been following this thread with mild amusement. Those of you who
don't think that there is any need for a search and replace are being,
at the least, disingenuous. Have you never needed to replace a dtml var
that is on a hundred or more pages with another one, but replace it only
on some
If it's a database query sorting with sql first. i.e. ORDER BY X,Y
HTH
Dan
Yvonne Totty wrote:
Hi!
I need a query sorted by 2-3 different attributes. The
'in' sort only lets me do it by one. Is there a way to
get around it?
TIA
-y
~~~
Yvonne
This is what we do
dtml-sendmail mailhost="MailHost"
To:dtml-var to
From:dtml-var from
Subject: dtml-var subject
dtml-mime type=text/plain encode=7bit
!--#var comments--
dtml-boundary type="application/pdf;
name=jsp-syntax.pdf" disposition="attachment;
filename=EquipmentOrder.pdf"
Hey all,
I know I can get the users language preference like this:
dtml-var "REQUEST['HTTP_ACCEPT_LANGUAGE']"
The question then is, is there a similar method of getting the users
Local Time Zone???
Thanks,
Dan
___
Zope maillist - [EMAIL
Hey all,
Is there a way from zope to check to see if a user has Javascript
enabled
Thanks,
Dan
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
When you create your image object set the path correctly then your
dtml-var image1 should work :)
Dan
CURTIS David wrote:
Hi,
I check the archives but could not find an answer. How do you display images that
are burried in directories?
For example,
dtml-var image1 works with the image1
Advice: client issues should be dealt with on client side.
Great I agree completely, except if the client has Java/JavaScript
turned off it is pretty darn difficult to have client issues dealt with
on client side!!
Dan
Oleg Broytmann wrote:
On Thu, 2 Nov 2000, Daniel Rusch wrote
Is there a way of having all users redirected upon Authorization?
Let me explian. We have a very large site and many of Users bookmark
pages. This can cause several problems especially if the site layout
changes, security changes at different levels and a user bookmarks a
result pages that
I have no idea if this will help you. We use PIL, reportlabs and zope to
create P.O.'s, to place a logo on the page we use the following line of
code:
c.drawInlineImage("gclogo_color.gif", .5*inch, 10.*inch,4*inch)
where c is created thusly:
c =
Try:
dtml-in MyFavoiteZSQLMethod
dtml-call "REQUEST.set('filename', filename)"
dtml-call some_other_thing_that_uses_filename
/dtml-in
This assumes that MyFavoiteZSQLMethod returns the variable filename
Dan
Noah wrote:
I'm still not grocking the syntax for setting REQUEST fields.
I
If you don't find the person(s) you are looking for, let me know. I am
an experienced Zope/Python/SQL/HTML/JavaScript/Unix/Windows developer.
Additionally, I have an excellent working relationship with two other
developers with similar skills. Unfortunately, we are located in
Wisconsin.
Dan
dtml-call
"RESPONSE.redirect('http://zope.org/index.htm?cod='+_.str(test))"
You can't (and don't need to) put dtml tags inside dtml tags.
Joaldo Junior wrote:
how to for that function REDIRECT understand a variable.
ex.
dtml-call
dtml-sendmail mailhost="MailHost"
To:!--#var to --
From:!--#var from --
Subject: dtml-var subject
dtml-mime type=text/plain encode=7bit
!--#var comments--
dtml-boundary type="application/pdf;
name=jsp-syntax.pdf" disposition="attachment;
filename=EquipmentOrder.pdf" encode=base64dtml-in
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.
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 -
We backup our database every night at 3:00 AM CT. 15 minutes prior to
this (i.e. 2:45 AM) I would like to display a warning.
How do I compare the current time dtml-var
"(ZopeTime()).toZone('US/Central')" to 3:00 AM Central Time ?
dtml-if "(ZopeTime()).toZone('US/Central') - 0.3" doesn't
dtml-if "AUTHENTICATED_USER.has_role('Staff', this())"
This works for me, no pun intended :)
Dan
Kapil Thangavelu wrote:
Jonathan Cheyne wrote:
Hi all
I have built the basis of a site with full, form-based webediting of
objects. Coming round to cleanup time and I wanted to remove
I hope there is a dtml-continue, I also have not been able to find it
though.
What I have done is resorted to an dtml-if (or some times an
dtml-unless) that catches the condition I want to short circuit and
wrapped the code in the dtml-else. The dtml-unless probably the better
choice.
dtml-in
Hey all,
I have a major problem! Our Zope site is crashing every few hours. I've
grep'ed the python processes and they are still running but I can't
access any pages. It's very strange because it just started happening
last thursday. Prior to that we had no problems. No changes were made to
the
They pass in the current name space, the context if you will. Someone
posted a reply that had a link to the faq that attempts to explains
this.
DR
Stuart Foster wrote:
This is the way I had to do it what's up with the two extra params?
-Original Message-
From: [EMAIL PROTECTED]
dtml-var "some_method(param='Test')"
'Test' is single quoted if it is a string, if it is a variable then
don't quote it. Notice also the double quotes
"some_method(param='Test')"
Dan
Stuart Foster wrote:
I have a DTML method that is called from a document. I need to pass a value
to it like
ow if you get a good answer to your question.. I'm
trying to do something quite similar..
Thank you.
Chris
Daniel Rusch wrote:
Hello,
(See bottom of this message for all the iterations I have tried)
I've created a product called BasicDocument. I've installed it and it
works g
I've created a BasicMethod which is derived from the DTMLMethod.
everything works great until I try to have the sub class's
(BasicMethod) __call__ method call the super class's (DTMLMethod)
__call__ method.
class BasicMethod(DTMLMethod):
"""BasicMethod objects are DocumentTemplate.HTML
Hello,
(See bottom of this message for all the iterations I have tried)
I've created a product called BasicDocument. I've installed it and it
works great.
I've also created a folderish product (called SimpleSite). When a user
selects
the SimpleSite product from the available objects list,
I have searched the FM's and I cannot find anything on
context.registerBaseClass(). Can anyone explain what this does for me
and what the syntax of the argument list should be?
Thanks,
Dan
___
Zope maillist - [EMAIL PROTECTED]
I've created a product called BasicDocument. I've installed it and it works
great.
I've also created a folderish product. Installed. When a user selects
that product from the
available objects list, thus creating an instance of that product,
they have an option to
create sub folders which
I've created a product called BasicDocument. I've installed it and it works
great.
I've also created a folderish product. Installed. When a user selects
that product from the
available objects list, thus creating an instance of that product,
they have an option to
create sub folders which
you're in
Python.
On Fri, 18 Aug 2000, Kapil Thangavelu wrote:
Dieter Maurer wrote:
Daniel Rusch writes:
So far so good,
Next hurdle, at least the problems have been cut down to hurdles from walls.
I have a folderish product say myFolder, in the manage_addMyFolder
not sure what you mean by "subobject adding in your __init__ method"
Dan
Kapil Thangavelu wrote:
btw daniel,
i've looked at some your postings for the day and i thought i should
tell you that most of your problems would go away if you did subobject
adding in your __init__ method
wrote:
Dieter Maurer wrote:
Daniel Rusch writes:
So far so good,
Next hurdle, at least the problems have been cut down to hurdles from walls.
I have a folderish product say myFolder, in the manage_addMyFolder function I
want to create an object of my product B
I've created a folderish product. When I select that product from the
available objects list, thus creating an instance of that product, I can
create objects like dtml document and dtml method in the new folderish
object (very similar to what happens when you instantiate a folder
object, you can
I've created a folderish product. When I select that product from the
available objects list, thus creating an instance of that product, I can
create objects like dtml document and dtml method in the new folderish
object (very similar to what happens when you instantiate a folder
object, you can
dtml-let a="'a'"
b="'b'"
dtml-var "a+b"
/dtml-let
Notice the quotes. See the How to on Let tags:
http://www.zope.org/Members/michel/HowTos/LetTagHow-To
DR
"iap_y2fun.com" wrote:
Forgive me for this stupid question:
How to assing a string value to a variable in DTML?
for example:
Hey all,
Say I have a fully functional (and more importantly, working) Product
will call A.
I want to extend this Product's capabilities so I wish to derive another
class from it, call it B.
No problem,
class B(A):
.
The question is, (I think the answer is no) is there a way to
Say I have a fully functional (and more importantly, working) Product
will call A.
I want to extend this Product's capabilities so I wish to derive another
class from it, call it B.
No problem,
class B(A):
.
now in class B I want to add a new property.
Is the a way of getting
and it worked fine for me.
--
Andy McKay, Developer, ActiveState
http://www.ActiveState.com
Programming for the People
- Original Message -
From: "Daniel Rusch" [EMAIL PROTECTED]
To: "Andy McKay" [EMAIL PROTECTED]
Sent: Thursday, August 17, 2000 1
al Message -
From: "Daniel Rusch" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, August 17, 2000 11:30 AM
Subject: [Zope] getting base classes's (super class) _properties tuple
Say I have a fully functional (and more importantly, working) Product
will call A.
So far so good,
Next hurdle, at least the problems have been cut down to hurdles from walls.
I have a folderish product say myFolder, in the manage_addMyFolder function I
want to create an object of my product B. so I do this:
def manage_addmyFolder(self, id, title='',
wrote:
Not to sure there Im afraid. The obvious answer is the manage_addB doesnt
exist whereas manage_addDTMLDocument does.
--
Andy McKay, Developer, ActiveState
http://www.ActiveState.com
Programming for the People
- Original Message -
From: "Daniel Rusch&qu
Take a look at the doc string in the class definition of PropertyManager. It states
that:
An object may specify that it has one or more predefined
properties, by specifying an _properties structure in its
class::
_properties=({'id':'title', 'type': 'string', 'mode': 'w'},
I made an icon form my new product, Zope loaded it correctly.
Then someone had the brilliant idea to change it. I can not figure out
how to get Zope to load the new icon. I have deleted the product from
Product Management at /Control_Panel / Products, rm the *.pyc files,
bounced Zope, but it
for that product, so that
you are allowed to create it.
--
Andy McKay, Developer, ActiveState
http://www.ActiveState.com
Programming for the People
- Original Message -
From: "Daniel Rusch" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, August 15,
Stafford wrote:
From: "Daniel Rusch" [EMAIL PROTECTED]
I've created a product, installed it and it appears on the Product
Management at /Control_Panel / Products list.
The question is how do I get it to appear in the drop down of Available
Objects?
You have to register
Try:
dtml-in "_.range(1,10)"
dtml-var sequence-item
/dtml-in
"Leichtman, David J" wrote:
Is there an easy way to simulate the functionality of a while loop in DTML?
___
Zope maillist - [EMAIL PROTECTED]
Make sure that ALL your dtml-in's are wrapped in try/excepts
we have seen this happened when there is a problem with either the sql
or database adaptor.
DR
Andy Pahne wrote:
I have a Zope-2.2.0 installation running on a Redhat
6.0 Linux Box. It
simply dies sometimes. Three times in the last
If it matters to anyone, Andy isn't the only one with Zope killing ZSQL
Methods
I just spent way too much time trying to figure out why our stage enviroment
was crashing.
Turns out to be a ZSQL method which fails. Of course it wasn't wrapped in a
try/except .
Oh well, so much for
I've been digging into to the inner workings of Zope trying to gleen as
much Zen as possible, before I implement a write of our existing
framework.
During this process I have noticed that Zope's dtml pages are stored on
the file system as .dtml files (i.e. roleEdit.dtml) The question then is
how
I think this line:
where users.user_login=dtml-sqlvar name=login type=string
Should be:
where users.user_login=dtml-sqlvar login type=string --- no name=
DR
Hi,
I have the following ZSQL-Method:
arguments : login
-
select user_passwd as real_password
from users
51 matches
Mail list logo