Maciej Wisniowski schrieb:
In a PostgreSQL DB I have a Numeric data type with a precision of two
decimal places. If I have 1.33 in as the result from my query, it's
everything is good. However, if I have 1.30 it reduces the precision
to one decimal place and I get 1.3. Not so good when dealing
I'm trying to upload a Photo into a newly create object in my product
class. The code looks something like this::
def manage_addSomething(dispatcher, id, title, photofile):
destination = dispatcher.Destination()
instance = Something(id, title)
destination._setObject(id, instance)
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Peter Bengtsson wrote:
> I'm trying to upload a Photo into a newly create object in my product
> class. The code looks something like this::
>
> def manage_addSomething(dispatcher, id, title, photofile):
> destination = dispatcher.Destination()
>
Tres Seaver wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Peter Bengtsson wrote:
I'm trying to upload a Photo into a newly create object in my product
class. The code looks something like this::
def manage_addSomething(dispatcher, id, title, photofile):
destination = dispatcher.De
I've got a page template that I'd like to display some information
contained in the properties of another page. Can I do this?
I'd like to do something like:
Though that obviously doesn't work. :)
Does anyone know if something along these lines is possible?
__
Dyyryath wrote:
I've got a page template that I'd like to display some information
contained in the properties of another page. Can I do this?
I'd like to do something like:
Though that obviously doesn't work. :)
should work without problems.
Hth,
Michael
--
http://zope.org/Members/d
A little bit of legacy DTML fun here... Zope 2.9.3
On save of a DTML Method, why would this dtml-call fail:
With the error:
"Expression (Python) Syntax error: invalid token"
Whereas this works fine:
Any insight is appreciated.
--
Harlow Pinson
Indepth Learning
Email: [EMAIL PR
[EMAIL PROTECTED] schrieb:
A little bit of legacy DTML fun here... Zope 2.9.3
On save of a DTML Method, why would this dtml-call fail:
With the error:
"Expression (Python) Syntax error: invalid token"
Whereas this works fine:
I doubt any of that really "works". So you happen
t
En/na [EMAIL PROTECTED] ha escrit:
A little bit of legacy DTML fun here... Zope 2.9.3
On save of a DTML Method, why would this dtml-call fail:
AR - DA - 08
^ octal literal
HTH
___
Zope maillist - Zope@zope.org
http://mail.zope.
+---[ Tino Wildenhain ]--
| [EMAIL PROTECTED] schrieb:
| >A little bit of legacy DTML fun here... Zope 2.9.3
| >
| >On save of a DTML Method, why would this dtml-call fail:
| >
| >
| >
| >
| >
| >With the error:
| >
| >"Expression (Python) Syntax error: invalid token"
| >
Hi Tino. Yes, that is correct. This application has variables named
like:
'AR-DA-08'
This also fails in a Page Template:
With the error:
Compilation failed
TAL.TALDefs.TALError: Python expression error:
invalid token (Python expression "data.set('AR-DA-08',AR-DA-08)",
line 1) in expre
- Original Message -
From: <[EMAIL PROTECTED]>
To:
Sent: Tuesday, October 24, 2006 1:04 PM
Subject: Re: [Zope] DTML Call Fails
Hi Tino. Yes, that is correct. This application has variables named
like:
'AR-DA-08'
This also fails in a Page Template:
With the error:
Compilat
[EMAIL PROTECTED] wrote:
A little bit of legacy DTML fun here... Zope 2.9.3
On save of a DTML Method, why would this dtml-call fail:
With the error:
"Expression (Python) Syntax error: invalid token"
Whereas this works fine:
Any insight is appreciated.
hpinson,
Maybe you
Yep, changing to a underscore from a dash does the trick.
Thanks to everyone who helped me understand this.
--
Harlow Pinson
Indepth Learning
Email: [EMAIL PROTECTED]
Phone: 505 994-2135
Fax: 505 994-3603
___
Zope maillist - Zope@zope.org
http://ma
Changing the dash to an underscore in the variable name solved the
problem.
--
Harlow Pinson
Indepth Learning
Email: [EMAIL PROTECTED]
Phone: 505 994-2135
Fax: 505 994-3603
___
Zope maillist - Zope@zope.org
http://mail.zope.org/mailman/listinfo/zop
[EMAIL PROTECTED] schrieb:
Hi Tino. Yes, that is correct. This application has variables named
like:
'AR-DA-08'
Not very clever.
This also fails in a Page Template:
you still have to quote if you mean the variable with that
weird name. Otherwise its an expression in python.
_['AR-
[EMAIL PROTECTED] schrieb:
Changing the dash to an underscore in the variable name solved the
problem.
I'm quite sure you could solve it even better - if we would know
where these variables come from and what their meaning is.
I suspect some kind of form?
Regards
Tino Wildenhain
_
17 matches
Mail list logo