In a SkinScript COMPUTE statement, should I be allowed to supply
different names in the OTHERWISE LET section as in the attributes section?
For example:
WITH some_query() COMPUTE
foo,bar,baz
OTHERWISE LET
foo='There is no foo',
spoon='There is no spoon'
Looking at the ZPatterns code,
"Phillip J. Eby" wrote:
> DataSkin is strictly a mix-in class. Sometimes I forget to remind people
> of that, and sometimes I even forget it myself. :(
DataskinAddons provides a nice DataSkin-derived class for debugging purposes
- it has a debug() method that prints out __dict__, and lets you
At 04:42 PM 10/31/00 +0100, Joachim Schmitz wrote:
>Hi Steve,
>
>On Tue, 31 Oct 2000, Steve Spicklemire wrote:
>
>>
>> Joachim> By the way, it only work if specify a DataSkin derived ZClass
>> Joachim> under the Storage tab.
>>
>> Yes... did you attempt to use a 'pure' DataSkin?
>>
>aft
Hi Steve,
On Tue, 31 Oct 2000, Steve Spicklemire wrote:
>
> Joachim> By the way, it only work if specify a DataSkin derived ZClass
> Joachim> under the Storage tab.
>
> Yes... did you attempt to use a 'pure' DataSkin?
>
after your advise not to use a 'pure' DataSkin, I did all the tes
Hi Joachim,
> "Joachim" == Joachim Schmitz <[EMAIL PROTECTED]> writes:
Joachim> Hi Steve,
Joachim> that did it, many thanks, how did you debug this ?
The debugger is your friend. ;-). Seriously I'd be lost without it:
http://www.zope.org/Members/michel/HowTos/TheDebuggerIsYourFri
Hi Steve,
that did it, many thanks, how did you debug this ? By the way, it only work
if specify a DataSkin derived ZClass under the Storage tab.
it solved also the problem with the following setup, which
didn't work before applying the patch, with an setup like this:
SkinScript method:
WITH Q
At 09:16 AM 10/31/00 -0500, Steve Spicklemire wrote:
>
>OK I think I found the problem(s):
>
>*** Expressions.py 2000/10/18 23:11:55 1.1.1.3
>--- Expressions.py 2000/10/31 14:14:09
>***
>*** 133,139
> def eval(self,mapping):
> """Return the result of lo
At 12:32 PM 10/31/00 +0100, Joachim Schmitz wrote:
>
>I changed the SkinScript to:
>
>WITH QUERY getevent() COMPUTE event_id ,datum_von
>
>that does not work, I get an key error: event_id
>
>but finally last try:
>
>WITH QUERY getevent() COMPUTE event_id=event_id ,datum_von=datum_von
>
>that worke
OK I think I found the problem(s):
*** Expressions.py 2000/10/18 23:11:55 1.1.1.3
--- Expressions.py 2000/10/31 14:14:09
***
*** 133,139
def eval(self,mapping):
"""Return the result of looking up/calling the name from 'mapping'.
If the object was
Hi Steve,
somehow I got the first part working, I donĀ“t exactly remember, what was
wrong, but it worked anyhow.
my setup was:
SkinScript method in defaultRack, Data-Skin:
WITH ['a','b'] COMPUTE event_id=RESULT[0],datum_von=RESULT[1]
and under Storage I specified my ZClass and loaded accessin
Hi Joachim,
Hmm... I just put all the code in myself... to be *really* sure, and
it does work. What do you see for 'current attribute handling' in the
Data PlugIns tab of the default rack? I would try to simplify. Take
out all the skin script execpt for the one line.
-steve
> "JS" == Jo
Hi Steve,
I did exactly (hopefully) as you sugested, but the dtml-method fails with:
(I moved the SkinScript with first to the top)
Error Type: KeyError
Error Value: movie_link
...
File /usr/local/Zope-2.2.0/lib/python/DocumentTemplate/DT_String.py, line 528, in
__call__
(Object: testz
My Experience with 'raw' DataSkins is that you'll quickly
run afoul of the Zope Security system. Using a ZClass that has
ZPatterns:DataSkin as a base class avoids this, and gives
you an easy way to put a 'user interface' on your objects.
-steve
> "Joachim" == Joachim Schmitz <[EMAIL PROTECT
Hi Steve,
thanks for the tips, I try to do it without the ZClass, according to my
understanding, and Phil Eby's reply that should work too, but apparently I
the first one to try it. I try it out.
On Mon, 30 Oct 2000, Steve Spicklemire wrote:
>
> Hi Joachim,
>
>Hmm.. I would start start
Hi Joachim,
Hmm.. I would start start really simple here, and then 'work up'
to the sql query Create a default rack with the following
SkinScript.
WITH ['a','b','c'] COMPUTE movie_link=RESULT[0],movie_title=RESULT[1], zeiten=RESULT[2]
Set the storage for this rack to be a DataSkin der
On Mon, 30 Oct 2000, Steve Spicklemire wrote:
>
> Hi Joachim,
>
>rackList just refers to the racks in the 'racks' tab
> of the Specialist. Do you have any racks defined for
> this Specialist? The rackList is managed magically
> with the plug-in-group stuff.
>
Yes that's what I found too,
for debugging I inserted in Specialists.py in getItem:
return str(self.rackList) <-- inserted
for rack in self.rackList:
item = rack.__of__(self).getItem(key)
if item is not None: return item
this alway returns an empty list, when calling it from the dtml:
returns "[]"
I tried to fo
On Sat, 28 Oct 2000, Phillip J. Eby wrote:
> At 05:17 PM 10/28/00 +0200, Joachim Schmitz wrote:
> >
> >select e.event_id as event_id
> >,e.zeiten as zeiten
> >,v.firma as firma
> >,v.tel as tel
> >,e.movie_id as movie_id
> >,m.movie_title as movie_title
> >,m.movie_link as movie_link
> >,m.movie_
At 05:17 PM 10/28/00 +0200, Joachim Schmitz wrote:
>
>select e.event_id as event_id
>,e.zeiten as zeiten
>,v.firma as firma
>,v.tel as tel
>,e.movie_id as movie_id
>,m.movie_title as movie_title
>,m.movie_link as movie_link
>,m.movie_text as movie_text
>,e.datum_von as datum_von
>,e.datum_bis as d
At 03:39 PM 10/27/00 +0200, Joachim Schmitz wrote:
>I trying to understand ZPatterns and using it for a real world example which
>uses a SQL-based storage.
>
>can I do it just by defining the appropriate SkinScript Method in my
>defaultrack as data plugin. Do I define everything in one SkinScript
I trying to understand ZPatterns and using it for a real world example which
uses a SQL-based storage.
can I do it just by defining the appropriate SkinScript Method in my
defaultrack as data plugin. Do I define everything in one SkinScript Method,
and what must be the name of that method. Can I
Steve Alexander wrote:
>
> "Phillip J. Eby" wrote:
> >
> > Just out of curiosity, did you find this out by reading the draft
> > SkinScript reference documentation on the ZPatterns Wiki?
>
> No. I just guessed.
> I think I might have read it in the source the other day too.
>
> I'll take a look
"Phillip J. Eby" wrote:
>
> Just out of curiosity, did you find this out by reading the draft
> SkinScript reference documentation on the ZPatterns Wiki?
No. I just guessed.
I think I might have read it in the source the other day too.
I'll take a look at the wiki now:
http://www.zope.org//Memb
Just out of curiosity, did you find this out by reading the draft
SkinScript reference documentation on the ZPatterns Wiki?
At 03:45 PM 10/4/00 +0100, Steve Alexander wrote:
>I just found out that you can access all sorts of useful methods in
>SkinScript from the magical "_" namespace variable.
>
I just found out that you can access all sorts of useful methods in
SkinScript from the magical "_" namespace variable.
Let's say I have a DataSkin that has a propertysheet "journey", which
has a "steps" property of type "lines". I can expose its "steps"
property as an attribute, and also a neatl
25 matches
Mail list logo