[Zope] How to prevent the user from going "Back" to a page???

2001-01-25 Thread Daniel Rusch
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

[Zope] Urgent Help, raise CorruptedTransactionError, message

2000-12-28 Thread Daniel Rusch
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

Re: [Zope] How to pass parameters to dtml methods in making

2000-12-15 Thread Daniel Rusch
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 > > _

Re: [Zope] Search and replace

2000-11-20 Thread Daniel Rusch
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

Re: [Zope] Sorting 'in'

2000-11-06 Thread Daniel Rusch
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 > ~~~

[Zope] Local Time Zone

2000-11-03 Thread Daniel Rusch
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

[Zope] Re: sending query output as an attachment

2000-11-03 Thread Daniel Rusch
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

[Zope] redirect on Authorization

2000-11-02 Thread Daniel Rusch
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

Re: [Zope] Check for JavaScript:

2000-11-02 Thread Daniel Rusch
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

Re: [Zope] images in directories

2000-11-02 Thread 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

[Zope] Check for JavaScript:

2000-11-02 Thread Daniel Rusch
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:/

[Zope] Re: [Image-SIG] Properly integrating PIL, reportlab, and zope

2000-11-01 Thread Daniel Rusch
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

[Zope] [Fwd: [Zope] Not grocking RESQUEST.set syntax]

2000-10-25 Thread Daniel Rusch
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

Re: [Zope] redirect

2000-10-24 Thread Daniel Rusch
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>')"> > > ___

Re: [Zope] Looking for short term Zope contractor

2000-10-24 Thread Daniel Rusch
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

Re: [Zope] urgent

2000-10-17 Thread Daniel Rusch
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

[Zope] Error List

2000-10-10 Thread Daniel Rusch
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/

Re: [Zope] pop back namespace from stack ?

2000-10-10 Thread Daniel Rusch
> 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. > > -

[Zope] Subtracting DateTimes?????

2000-10-05 Thread Daniel Rusch
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

Re: [Zope] Detecting Roles not working

2000-10-04 Thread Daniel Rusch
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

[Zope] Getting properties of objects

2000-09-28 Thread Daniel Rusch
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

Re: [Zope] DTML Loop, is there a 'continue'?

2000-09-22 Thread Daniel Rusch
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

[Zope] Desperate Zope is crashing ....

2000-09-18 Thread Daniel Rusch
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

Re: [Zope] How to Pass values to a DTML method ??

2000-09-12 Thread Daniel Rusch
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

Re: [Zope] How to Pass values to a DTML method ??

2000-09-11 Thread Daniel Rusch
'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

[Zope] Sub Class Question

2000-08-25 Thread Daniel Rusch
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

[Zope] It Works!!!! I think I'm close, Product Creation and other threads

2000-08-25 Thread Daniel Rusch
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

[Zope] What does context.registerBaseClass() do ???

2000-08-24 Thread Daniel Rusch
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.

[Zope] I think I'm close, but still no luck

2000-08-24 Thread Daniel Rusch
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

[Zope] Product creation question

2000-08-23 Thread Daniel Rusch
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

[Zope] I'm really confused: Creating an object from within another

2000-08-21 Thread Daniel Rusch
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. > &

Re: [Zope] Fourth Posting, is this really that difficult or have I been blackballed :)balled :)

2000-08-21 Thread Daniel Rusch
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

Re: [Zope] Creating an object from within another

2000-08-21 Thread Daniel Rusch
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

[Zope] Fourth Posting, is this really that difficult or have I been blackballed :)balled :)

2000-08-18 Thread Daniel Rusch
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

[Zope] Product question, third posting

2000-08-18 Thread Daniel Rusch
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

Re: [Zope] Creating an object from within another

2000-08-17 Thread Daniel Rusch
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

[Zope] Creating an object from within another

2000-08-17 Thread Daniel Rusch
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

Re: [Zope] getting base classes's (super class) _properties tuple

2000-08-17 Thread Daniel Rusch
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 -

Re: [Zope] Product inhetitance question

2000-08-17 Thread Daniel Rusch
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

[Zope] getting base classes's (super class) _properties tuple

2000-08-17 Thread Daniel Rusch
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

[Zope] Product inhetitance question

2000-08-17 Thread Daniel Rusch
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

Re: [Zope] How to assing a string value to a variable in DTML?

2000-08-17 Thread Daniel Rusch
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

[Zope] The mysteries of Product icons ?????

2000-08-16 Thread Daniel Rusch
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

Re: [Zope] Creating properties with a product.

2000-08-16 Thread Daniel Rusch
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'},

[Zope] Another Product question

2000-08-15 Thread Daniel Rusch
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

Re: [Zope] Product question

2000-08-15 Thread Daniel Rusch
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

[Zope] Product question

2000-08-15 Thread Daniel Rusch
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

[Zope] gif getting dumped...

2000-08-10 Thread Daniel Rusch
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

[Zope] CorruptedDataError

2000-08-08 Thread Daniel Rusch
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

Re: [Zope] while

2000-07-26 Thread Daniel Rusch
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! **

Re: [Zope] zope 2.2.0 simply dies

2000-07-24 Thread Daniel Rusch
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

Re: [Zope] Zope-killer: zSQL method that crashes Zope

2000-07-21 Thread Daniel Rusch
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...

[Zope] .dtml files

2000-07-12 Thread Daniel Rusch
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

Re: [Zope] HEELLPP - Please !!!

2000-07-11 Thread Daniel Rusch
> 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