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 preve
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 "", line 1, in ?
File "/home/caps/test/zope/lib/python/Zope/__init__.py", line 109, in
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:
>
>
> Works fine.
>
>
> The system complains the para being unknown. How come?
>
> cheers
> Dirksen
>
> _
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 of
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
> ~~~
Hey all,
I know I can get the users language preference like this:
The question then is, is there a similar method of getting the users
Local Time Zone???
Thanks,
Dan
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/z
This is what we do
To:
From:
Subject:
Dan
jacintha menezes wrote:
>
> Hi,
> I am developing a product in which a output report (tabular form with
> data) is produced in result of a query. I have to send that report to
> different people through the mail
> facility available in zo
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 depe
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
When you create your image object set the path correctly then your
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,
> works with the image1 at same level
> but
> do
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 -
http:/
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 = canvas.Canvas(fileName,(PAGE_WIDTH*inch,PAGE_LENG
Try:
This assumes that MyFavoiteZSQLMethod returns the variable filename
Dan
Noah wrote:
>
> I'm still not grocking the syntax for setting REQUEST fields.
> I want to set a REQUEST field "filename" to be the value returned
> by a ZSQL call. I want something like this (pseudo-code of w
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.
>
> http://zope.org/index.htm?cod= test>')">
>
> ___
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
Ro
To:
From:
Subject:
PrintServiceOrder is a folder
PrintPdfs is a localFileSystem Object
Hope this helps
Dan
jacintha menezes wrote:
>
> hi,
>i am using zope(2.2.1) for sending mails, but it is not possible to send
> attachment.
> kindly let me know the reason have made use of mime
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 -
http://lists.zope.org/
> In fact I need the id from the dtml-method I'm was called from
Try
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.
>
> -
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 to 3:00 AM Central Time ?
doesn't work.
Any thoughts???
Dan
___
Zope maillist - [E
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 certain
> > visible functions from the defa
I am trying to build a property seach engine that will search an entire
Zope site for a names property (i.e. color) and it would return a list
of all objects with that property and it's corresponding value.
Addtionally, as an option, I would like to display all properties of all
objects (i.e. pass
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 S
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 s
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
'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 a parameter would be passed to a
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 obje
x27;n:"
import traceback
traceback.print_exc()
Chris Beaumont wrote:
>
> Daniel,
>
> Would you let me know if you get a good answer to your question.. I'm
> trying to do something quite similar..
>
> Thank you.
>
> Chris
>
> Daniel Rus
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]
http://lists.zope.
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, thus
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 conta
on.
>
> 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.
> &
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 w
while 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 be
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 h
n
Andy McKay 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
>
> ----- Or
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='',
REQU
27;bb':'BB'}, ]
> _properties = _properties + A._properties
>
> b = B()
> print b._properties
>
> Works for me.
> --
> Andy McKay, Developer, ActiveState
> http://www.ActiveState.com
> Programming for the People
>
> - Original Message -
ies)
Andy McKay wrote:
> Hmm i just tested it in Zope and it worked fine for me.
> --
> Andy McKay, Developer, ActiveState
> http://www.ActiveState.com
> Programming for the People
>
> - Original Message -
> From: "Daniel Rusch" <[EM
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 the
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 i
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:
>
> b='b'>
>
>
>
> it causes error, not what I
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 stil
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'},
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
orrectly 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 PROTE
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?
Dan
___
Zope maillist - [EMAIL PROTECTED]
http://lists
Hey all,
I know this isn't exactly a zope question, but it is occuring in my zope
site so here goes:
I have a gif file (a company logo) that I use on pdf files. The pdf's
are created by a python app that I wrote which uses report lab. This
python app is called from my zope site. Everything works
My colleague had a dtml document turn itself into a folder. When we try
to delete it we get a "CorruptedDataError". Any thoughts on how to kill
the offending vermin?
DR
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zop
Try:
"Leichtman, David J" wrote:
> Is there an easy way to simulate the functionality of a while loop in DTML?
>
> ___
> Zope maillist - [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
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 standards...
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=
Should be:
where users.user_login= <--- no name=
DR
> Hi,
> I have the following ZSQL-Method:
>
> arguments : login
> -
>
> select user_passwd as real_password
> from users
> where users.user_login=
>
>
> when I now press "ch
54 matches
Mail list logo