[Zope] Calculate values?

2000-07-06 Thread Peter Arvidsson
I am about to do The problem is that I cant get the calculation right. a and b are text input in my form (int's) and I want to first calculate a-b and the take the answer times 15 before submitting the event. How can I do that?? ___ Zope maillist -

Re: [Zope] Calculate values?

2000-07-06 Thread Peter Arvidsson
Chris Withers wrote: > Peter Arvidsson wrote: > > > > I am about to do > > > > I presume that should be: > > ? ;-) > > Anyway, two options: > > 1. On your form, change your input to be: > > > 2. Change your call to be: > > > c

[Zope] Error tracing...

2000-07-06 Thread Peter Arvidsson
How do I trace errors in Zope? I get the following error message: "Empty entry when integer expected " It gives a hint of the problem but I cant see what value is empty.. how do I control the values? Is there some way to write out variables or do I just have to guess??? _

[Zope] Calculate difference between time input?

2000-07-07 Thread Peter Arvidsson
How do I calculate the difference between two times I get from a from? Lets say time a = 09:45 and time b = 11:15 Then I want to calculate the difference. How do I calculate it? I'd also like to know how to get the answers in differen formats. For example caculating the input above I want to be

[Zope] Date-bug in properties?

2000-07-10 Thread Peter Arvidsson
When I try to add a date-property and want to leave the Value-field empty i get the following error: Error Type: Invalid Date-Time String Error Value: When I write a date in the Value-field I can add the date. Is this a bug? Why cant I add a date with no default value? In several howtos they jus

Re: [Zope] Date-bug in properties?

2000-07-10 Thread Peter Arvidsson
Ah I saw that was a known bug. Forget this post :) Peter Arvidsson skrev: > When I try to add a date-property and want to leave the Value-field > empty i get the following error: > > Error Type: Invalid Date-Time String > Error Value: > > When I write a date in the Valu

[Zope] Wizards?

2000-07-10 Thread Peter Arvidsson
I am trying to create wizards but as usual I am running into problems.. To forward input to the next step I learned in the howto "Wizards made easy" that this was the way to do it: When I type that code in however I get the following error message: Error Type: TypeError Error Value: illeg

[Zope] Security problem i 2.2 final - Bug?

2000-07-19 Thread Peter Arvidsson
I have a very anoying problem... I have created a news-product and have several news-objects. Now I want to change the properties of a news-object. This is my code for that: 'newsEntries' is the folder where I store my news-objects. 'objId' is the id of the product as a string. Everytime

[Zope] Broken products in 2.2 - bug?

2000-07-19 Thread Peter Arvidsson
Is products treated in a different way in 2.2 final than in 2.1.6? When I restart Zope all instances of my (and some imported) products become broken because it cant find the product it is an instance of. 963996281 (This object from the unknown product is broken!) I have compared with Zope 2.1.

Re: [Zope] Security problem i 2.2 final - Bug?

2000-07-19 Thread Peter Arvidsson
? > (in case of: to do it, edit your method and choose proxy at the top of the > window), u can edit the role of your method. > > Piotr. > > Peter Arvidsson wrote: > > > I have a very anoying problem... > > > > I have created a news-product and have several ne

Re: [Zope] Security problem i 2.2 final - Bug?

2000-07-19 Thread Peter Arvidsson
s to your method... (manager, owner > and anonymous)... I had this problem, and it work like that > > Pierre > > Peter Arvidsson wrote: > > > Hi > > > > Thanks for the tip. I gave the method the correct roles but unfortunatelty the > > problem still

Re: [Zope] Broken products in 2.2 - bug?

2000-07-19 Thread Peter Arvidsson
The strange thing is that the product itself is not broken only all the instances become broken everytime I restart... Peter Dieter Maurer skrev: > Peter Arvidsson writes: > > Is products treated in a different way in 2.2 final than in 2.1.6? > > > > When I restart Zop

Re: [Zope] Broken products in 2.2 - bug?

2000-07-21 Thread Peter Arvidsson
Unfortunately I deleted the product and then made an equal product (after that it worked) so I cant tell if this was a bug. I'll let someone else who has the same problems try it. Peter Dieter Maurer skrev: > Peter Arvidsson writes: > > The strange thing is that the product

[Zope] Datebug?

2000-07-21 Thread Peter Arvidsson
I have encountered a strange and irritating problem. As I live in Sweden we use timezone 'GMT+1'. I have a form like this: And when I press submit I come to this page: The input field are correctly displaying the date (in GMT+1) but when I submit the form and use the "fmt" the date is

Re: [Zope] Datebug?

2000-07-21 Thread Peter Arvidsson
Forgot to say that... I run 2.2 final :/ Chris Withers skrev: > Peter Arvidsson wrote: > > It cant really be a timezone issue because it is decreasing the date by > > 24 hours and I only live 1 hour from GMT. The date on my computer and > > the server are correct. Does s

[Zope] Re: [Zope-dev] Datebug?

2000-07-21 Thread Peter Arvidsson
> > > try this: > > "> > > I think it's a round problem with the float representation of the date. > > martin Since it is adding 24 hours there is not enough to add 0.5 to the date. I could add 1 to the date but then I would get other problems on my site which is not good. I have reported the bug

Re: [Zope] Datebug?

2000-07-24 Thread Peter Arvidsson
The most hirrible thing is that I chunked it in the collector but the Zope developers rejected it! Apparently they seem to claim this is a feature. Feature or not I can't use dates in forms because of this. Peter Chris Withers skrev: > Erich Seifert wrote: > > I had the same problem. > > The fm

Re: [Zope] Datebug?

2000-07-24 Thread Peter Arvidsson
#1445 (http://classic.zope.org:8080/Collector/1445/view) Chris Withers skrev: > What was the issue number? > > Chris > > Peter Arvidsson wrote: > > > > The most hirrible thing is that I chunked it in the collector but the Zope > > developers rejected it! Appare

[Zope] Re: Datebug?

2000-07-24 Thread Peter Arvidsson
", which is what I think is the > 'horribel' bit of this :-) > > cheers, > > Chris > > Peter Arvidsson wrote: > > > > #1445 (http://classic.zope.org:8080/Collector/1445/view) > > > > Chris Withers skrev: > > > > > What was th

Re: [Zope] Re: Datebug?

2000-07-24 Thread Peter Arvidsson
I think I found the posting that you meant but he later said his patch unfortunately didnt do any good. Anyway I have posted the bug to the collector now. Chris Withers skrev: > Peter Arvidsson wrote: > > I already used the things in AlexR's howto but still he uses fmt or strftim

[Zope] [Fwd: Re: [Zope-dev] DateTime formatting with strftime: patch]

2000-07-24 Thread Peter Arvidsson
Original Message Ämne: Re: [Zope-dev] DateTime formatting with strftime: patch Datum: Mon, 24 Jul 2000 16:56:52 +0100 Från: Steve Alexander <[EMAIL PROTECTED]> Till: [EMAIL PROTECTED] Referenser: <[EMAIL PROTECTED]> This is now in the Collector, as bug number 1457. http://c

[Zope] Batchprocessing with multiple conditions?

2000-07-25 Thread Peter Arvidsson
I have objects of a certain meta-type. They have some properties and one of the properties is a boolean. How do I make a dtml-in loop among those objects with the boolean set to yes? I dont want it to traverse any other value at all only those that match the condition should be included in the seq

Re: [Zope] Your feedback: what should DateTime strftime() behavior be?

2000-07-25 Thread Peter Arvidsson
+1 > > > +1 == agree > > +/-0 == no strong opinion > > -1 == disagree > ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailm

[Zope] Problems with JavaScript in WinNT + Netscape! Urgent!

2000-07-27 Thread Peter Arvidsson
Hi I am using JavaScript's in zope and until now I havent experienced any problem. Today something strange happened though.. when editing a JavaScript it suddenly stopped working in WindowsNT with Netscape. It worked however in IE on the same computer and on Netscape running on Linux (RedHat 6.2)

Re: [Zope] search on www.zope.org

2000-07-28 Thread Peter Arvidsson
Well the fact is the searchengine on zope.org really s*cks. They really should do something about it... Peter Andy Pahne skrev: > Can anybody please tell me the search on www.zope.org does not find any > pages containing? > > - mod_pcgi2 > > In fact there are numerous pages including this te

Re: [Zope] Snapshots and Demo of Products

2000-07-28 Thread Peter Arvidsson
Totally agree with you. Screenshot are very important. I have also noticed the lack of information about many products. Sometimes I have to guess what the product does or search the mailing-list for more information. And think about creating enough documentation. Peter Peter Bengtsson skrev: >

Re: [Zope] dtml-in question

2000-08-01 Thread Peter Arvidsson
Hi I had the same problem and found out there is no way yet of making dtml-in with multiple conditions. Instead I had to do dtml-if's and make my own counter and previous/next attributes to handle the batches. Peter Webmaster skrev: > I have a bunch of zClass instances and I want to display o

[Zope] Custom error messages - bug?

2000-08-02 Thread Peter Arvidsson
I have customized the standard error message and placed it in a folder above root level. When a error occurs the error message at the root level still get executed though. I have named my own error message the same (standard_error_message) and I am sure that the error I get comes from inside the f

[Zope] Referring to objects with an integer as id?

2000-08-08 Thread Peter Arvidsson
How do I refer to an object that has an integer as id? I have pdf-files stored in a folder called "pdf". Now I want to be able to check their filesize. I looked in the API and found that this is done with getSize(self). I have no problem to refer to objects that do not have an integer as id. For

[Zope] Very strange problem with updating an objects properties

2000-08-09 Thread Peter Arvidsson
I have made two products, one news-product and one product for pressreleases. The products are exactly equal except that they have a bit different properties. All the code for processing these two products are equal (except then for the handling of their different properties). Everything works fin

Re: [Zope] Very strange problem with updating an objects properties

2000-08-09 Thread Peter Arvidsson
> You could save a line by calling this a little differently by using > manage_changeProperties instead: > > change this: > >"_[objId].propertysheets[1].manage_editProperties(REQUEST)"> > > to this: >"_[objId].propertysheets[1].manage_changeProperties(approved=1)"> Than

[Zope] MessageDialog with dtml?

2000-08-10 Thread Peter Arvidsson
Is it possible to display a MessageDialog with dtml only? I have searched the mailinglist archives and found some postings about this but the instructions there doesnt seem to work. Maybe MessageDialog has been changed to 2.2 or something? ___ Zope mail

Re: [Zope] No file in INPUT TYPE='file' field

2000-08-10 Thread Peter Arvidsson
Hi I use this code to check if the input is empty: Exists... To check if the input is a valid file you can store it as a temporary variable and then make a check if the size of the object is more than 0 bytes like this: 0"> Valid file... I hope this helps you :) Peter Alexander Chelnokov s

[Zope] Reloading file objects?

2000-08-10 Thread Peter Arvidsson
I have file-objects containing pdf-files. When I change the object to contain another pdf-file (with "manage_upload") I get a problem. When I want to view the file it still shows the old file. However when I choose save to disk I get the new object and if I take a look at its properties (size etc.

Re: [Zope] Reloading file objects?

2000-08-10 Thread Peter Arvidsson
EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]Namens Peter > > Arvidsson > > Verzonden: donderdag 10 augustus 2000 12:56 > > Aan: [EMAIL PROTECTED] > > Onderwerp: [Zope] Reloading file objects? > > > > > > I have file-objects containing pdf-files. When I change

Re: [Zope] Reloading file objects?

2000-08-10 Thread Peter Arvidsson
A very smart thing to do. Unfortunately this was not successful... when I sent an argument like this: /pdf/&dtml-entry;?x="> My pdf-file couldnt be displayed. It didnt recognize the argument and told me to download some stuff from Microsoft or something... is there any other way to do it? Or is th

Re: [Zope] Reloading file objects?

2000-08-10 Thread Peter Arvidsson
image to harddisk for > netscape to update its cache. > > Peter Arvidsson wrote: > > > I have file-objects containing pdf-files. When I change the object to > > contain another pdf-file (with "manage_upload") I get a problem. When I > > want to view the file

[Zope] Difference between manage_changeProperties and manage_editProperties?

2000-08-11 Thread Peter Arvidsson
What is the difference? Somewhere I read that one of them erased all properties and changed those that are sent to the method (causing properties that is not sent to the method to be empty) but I dont remeber where I read it or which one it was? Are there any other differences? __