Re: [Zope-dev] Beginning Zope User

2000-07-13 Thread Steve Alexander

Hi John,

John Gunnar Carlsson wrote:
 
 Help!  I downloaded a product and uploaded it to my directory, but I don't
 know how to unzip it.  I'm using NT.  Whenever I load WinZip it will only
 let me unzip it to local places on the hard disk but nowhere on the Zope
 directory itself.
 
 ___
 Zope-Dev maillist  -  [EMAIL PROTECTED]


I'd really like to help you with this, but there's two reasons that I
can't right now.

1: You've posted this message to the [EMAIL PROTECTED] mailing list.
This list is for discussion about developing the innards of Zope and
really technical stuff like that.
The correct mailing list for your question is the more general
[EMAIL PROTECTED]

2: I'm not sure what you're asking.

When you ask again in [EMAIL PROTECTED], be sure to say all of the
following:

* Exactly which version of Zope you have installed

* Where on your harddisk you have installed it

* What the product is you have downloaded

* Exactly the steps you have tried to follow to install the software

* What documentation you are getting your steps from, and where you got
that documentation from

This might all sound like a lot, but it really is the minimum I'd need
in order to be able to answer your question correctly. Also, if you ask
on [EMAIL PROTECTED], others who might have a similar problem will benefit
from any answer.

--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




Re: [Zope-dev] ZPatterns: missing docstring in getItem()

2000-07-13 Thread Steve Alexander

"Phillip J. Eby" wrote:
 
 Changes checked in.  I should be releasing an alpha5 tomorrow.

That's great. Did you get my message about errors in triggered methods?
I realised that I only sent it to the zope-dev list, and not cc-ed to
you.

 I had hoped to finish my work on proxy roles, ZClass plugins, 

Does that increase the number of "Waaa!" comments in the code?

 and maybe even my local-roles stuff first and make it a "beta" release, 

*If* you get time, can you put a note on the ZPatterns Wiki, or to the
zope-dev mailing list briefly describing what proxy roles, and local
roles mean in the context of ZPatterns? Thanks.

(Of course, if any other ZPatterns gurus can answer that...)

--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




Re: [Zope-dev] External Method Missery

2000-07-13 Thread Chris Withers

Shane Hathaway wrote:
 Here's the logic: ExternalMethod sets up func_* attributes so it can
 masquerade as a function.  The trick works well enough to convince
 ZPublisher's mapply() to pass in a "self" argument as the first
 argument when needed.

What 'self' does mapply pass? I always though it would be the object
being rendered (the one that would appear before PARENTS[0] in PARENTS
if such a thing were possible ;-) but it appears to in fact be
PARENTS[0].

...which seems silly

So, apparently I have to pass this() to my external method to find out
what object I'm working on, which is a shame :(

My code which prepares a list of object that are in the URL path (does
this mean the objects that have been traveresed?) now looks like:

def navTree(self,startlevel,this):
# strip off acquisition wrappers, reverse the list... yum yum ;-)
objects = map(lambda o : getattr(o, 'aq_base',
o),self.REQUEST.PARENTS[:-startlevel])
objects.reverse()
objects.append(getattr(this, 'aq_base', this))

...which doesn't give quite what I want
objects[-1] should be the object getting rendered, however, for folders
getting rendered where index_html is a DTML document, it is the
index_html document.

I guess what I'm asking is, from PARENTS and this(), is there any way I
can tell when I'm rendering folder/ as opposed to folder/index_html?

If I can't, then how should I do this?

cheers,

Chris

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




Re: [Zope-dev] External Method Missery

2000-07-13 Thread Chris Withers

Steve Alexander wrote:
 Ah... but are you calling the external method from a DTML method? These
 are all methods, and therefore you'd expect the "self" object to be the
 object the methods are subobjects of.

The exact turn of events is that index_html is a DTML method which shows
a DTML _document_ with dtml-var doc_name

The header, in which the navtree is rendered, is a DTML method that's
called from the doc_name DTML document with another dtml-var

navtree is a DTML method which calls the external method.

So unravel all that, and you can decide for yourself ;-)

See my reply to my own posting which poses another interesting question.

It'd be nice to have some way of finding whether the object being
rendered to the browser is the result of rendering a DTML method _on_
the object or just the object itself...

cheers,

Chris

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




Re: [Zope-dev] ZPatterns: BTree folder w/ customizer support

2000-07-13 Thread Steve Alexander

Steve Alexander wrote:
 
 I want to combine Shane Hathaway's BTreeFolder product with ZPatterns to
 create a "BTree folder w/ Customizer support".

snip!
 
 Instead, why not make PlugInContainer a mix-in class, and have concrete
 classes for PlugInFolder and PlugInBTreeFolder ?
 
 Then, it is easy to have a CustomizerFolder and a CustomizerBTreeFolder.
 
 Then again, I wouldn't mind if things stay as they are, except that
 PlugInContainer is made to derive from BTreeFolder rather than Folder.
 Of course, that creates a dependency that you need the BTreeFolder
 product in order to use ZPatterns.

Or... I could alter Shane's BTree Folder product to split it into a
mix-in class and a usable folder class. Would that work, I wonder?

--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




[Zope-dev] Uploading a ImageFile

2000-07-13 Thread Andre Schubert

Hi,

i have a question on uploading an image from my Product.
I have a Product in http://server:8080/somewhere/Product.
In my Product i call:
self._setObject(id, File(id,title,'',content_type,
precondition))
self._getOb(id).manage_upload(file)
Now the image is on http://server:8080/somewhere/Product/image right?

But i want the following:

The Product at http://server:8080/somewhere/Product at the uploaded
Image should be stored at
http://server:8080/anotherplace/images/ .

Who could help to program this in my Product.

mfg




___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




Re: [Zope-dev] ZPatterns: BTree folder w/ customizer support

2000-07-13 Thread Phillip J. Eby

At 02:30 PM 7/13/00 +0100, Steve Alexander wrote:
Steve Alexander wrote:
 
 I want to combine Shane Hathaway's BTreeFolder product with ZPatterns to
 create a "BTree folder w/ Customizer support".

snip!
 
 Instead, why not make PlugInContainer a mix-in class, and have concrete
 classes for PlugInFolder and PlugInBTreeFolder ?
 
 Then, it is easy to have a CustomizerFolder and a CustomizerBTreeFolder.
 
 Then again, I wouldn't mind if things stay as they are, except that
 PlugInContainer is made to derive from BTreeFolder rather than Folder.
 Of course, that creates a dependency that you need the BTreeFolder
 product in order to use ZPatterns.

Or... I could alter Shane's BTree Folder product to split it into a
mix-in class and a usable folder class. Would that work, I wonder?


Probably.  I think the main problem you'll run into will be the UI, since
the BTreeFolder is going to probably display all its contents without
filtering out PlugIns.  You may have to do some work on that.  Other than
that, though, my guess is that a BTreeFolder mixin would layer nicely over
PlugInContainer.


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




Re: [Zope-dev] ZPatterns: missing docstring in getItem()

2000-07-13 Thread Phillip J. Eby

At 08:50 AM 7/13/00 +0100, Steve Alexander wrote:
"Phillip J. Eby" wrote:
 
 Changes checked in.  I should be releasing an alpha5 tomorrow.

That's great. Did you get my message about errors in triggered methods?

Yes, I did, but the solution requires some more thought.  I had thought I
had the "Transactional" machinery set up so that stuff was only called
during transaction phases where it was safe to throw errors.  So I'm going
to have to go back and review that.  However, I also think that errors in
triggers should result in a rollback-and-abort, rather than silently
failing, which could cause many other problems.

I realised that I only sent it to the zope-dev list, and not cc-ed to
you.

Not necessary; my reading rate simply varies.  :)


 I had hoped to finish my work on proxy roles, ZClass plugins, 

Does that increase the number of "Waaa!" comments in the code?

No, I hadn't even got that far yet.  :)


 and maybe even my local-roles stuff first and make it a "beta" release, 

*If* you get time, can you put a note on the ZPatterns Wiki, or to the
zope-dev mailing list briefly describing what proxy roles, and local
roles mean in the context of ZPatterns? Thanks.

The proxy roles stuff is for Generic providers and triggers, so that when
they execute your expressions they can have roles other than those of the
current user, which is important for constructing secure applications.  The
local roles stuff is the ability to have a DataSkin get local role
information from "local role providers", thus allowing rules-based local
roles to exist/co-exist with the standard Zope persistently-managed local
roles.

One aspect that will be considered in the local roles work is adjusting the
LoginUser class so that it can use more efficient ways of checking access
to an object if it's a DataSkin.  The built-in Zope approach has to look
for *all* local roles that a user has, even when it only wants to know
about one of them.  In general I'd like to see Zope's local role API's
tightened up in this fashion.  Another tightening would be to use the user
object rather than the user's ID or name when calling local-roles API's,
since a rule-based approach may need to consult data on the user object.


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




Re: [Zope-dev] ZPatterns: BTree folder w/ customizer support

2000-07-13 Thread Shane Hathaway

Steve Alexander wrote:
 Or... I could alter Shane's BTree Folder product to split it into a
 mix-in class and a usable folder class. Would that work, I wonder?

I just tried it and discovered some subtle problems with __getattr__. 
It could be the result of TransparentFolders, which is also running on
my system. The released versions of BTreeFolder and TransparentFolders
work together, but not when I decomposed BTreeFolder into base classes.

YMMV!

Shane

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




Re: [Zope-dev] ZPatterns: missing docstring in getItem()

2000-07-13 Thread Steve Alexander

"Phillip J. Eby" wrote:
 
 That's great. Did you get my message about errors in triggered methods?
 
 Yes, I did, but the solution requires some more thought.  I had thought I
 had the "Transactional" machinery set up so that stuff was only called
 during transaction phases where it was safe to throw errors.  So I'm going
 to have to go back and review that.  However, I also think that errors in
 triggers should result in a rollback-and-abort, rather than silently
 failing, which could cause many other problems.

Right. So the application designer has the choice of whether to put
their methods that are called by GenericTriggers in try-except blocks,
if it doesn't matter if the trigger fails. But it is generally assumed
that triggers need to run without exceptions for the application to work
consistently.

--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




[Zope-dev] zpatterns-0.4: default attributes, more

2000-07-13 Thread Ava

hello,

ignore my precedent post. too much caffeine, not enough sleep
my problem is solved if I use the class_default_for_X trick...

regards,
[EMAIL PROTECTED]

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




Re: [Zope-dev] zpatterns-0.4: defaults attributes, more...

2000-07-13 Thread Phillip J. Eby

At 07:11 PM 7/13/00 +0400, Ava wrote:

first generic attribute provider:
fromexpr = '(self.id[0] and sql_get_first(key=id[0]) or [NOT_FOUND])[0]'
attrsexprs = ['first_data=RESULT.data']

second generic attribute provider:
fromexpr = 'self.id[1] and sql_get_first(key=id[1]) or [NOT_FOUND])[1]'
attrsexprs = ['second_data=RESULT.data']

third generic attribute provider:
fromexpr = ''
attrsexprs = [
'which_one=self.id[1] and 1 or 0',
'data=[self.first_data, self.second_data][self.which_one]'
]

however, this does not work, because if which_one is 0, self.first_data is
ok but self.second_data is taken from NOT_FOUND. An error is raised and all
the attribute served by the third generic attribute provider are ignored.

any ideas to solve that problem??? thanks for any input.

Try:

data=(self.which_one and [self.second_data] or [first_data])[0]

Then only the correct one will be referenced.

Offhand, I'd guess that there is probably a lot easier way to do what
you're doing, and that you probably don't even need/want "id" to be a
sequence, let alone some of the other things you're doing here.  But
without knowing what your app is actually trying to do, I can't suggest
anything further.


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




[Zope-dev] ZPatterns alpha 5 released

2000-07-13 Thread Phillip J. Eby

Here's the details from the CHANGES file:

New Features/Bug Fixes in 0.4.0alpha5

 - Property Sheets for DataSkin-based ZClasses.  Now you can put define
   property sheets on a ZClass and still use AttributeProviders for the
   properties.  Just add a "DataSkin Property Sheet" to your ZClass
   instead of a "Common Instance Property Sheet".  (Note: you can only do
   this with *new* DataSkin-derived ZClasses.  If you have an already
   existing ZClass, you must either re-create it by hand or do the 
   "setbasesholdontoyourbutts" hack to re-create the ZClass.)

 - GenericTriggers now also pass a variable "ORIGINAL" which is a
   dictionary of the original values of changed attributes (or NOT_FOUND
   if the attribute did not exist before changing).  Note that if the
   values are complex or mutable, they cannot be guaranteed to be truly
   the same as their starting state, so this should really only be used
   for simple atomic values like strings and numbers.

 - Numerous bug fixes, including:

   - Specialists were always returning the result from the first Rack

   - setuid support for LoginManager was broken, and also didn't deal
 with executable-owner masking

   - _DelAttributeFor() was broken for persistently-stored attributes

   - Deleting a non-existent attribute no longer flags the attribute as
 changed

   - _constructPlugIn() was broken with latest 2.2 version that binds
 constructors to their products/factories

   - In the latest Zope, setting ownership after adding was causing a
 Changed event to fire instead of an Added event.


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




Re: [Zope-dev] zpatterns-0.4: defaults attributes, more...

2000-07-13 Thread Jephte CLAIN

"Phillip J. Eby" a écrit :
 Try:
 data=(self.which_one and [self.second_data] or [self.first_data])[0]

wow. what a *clever* idea to use [] around self.???_data. I used to
write:

data=self.which_one and self.second_data or self.first_data

but this failed because sometimes self.second_data is a "false" value
(eg 0, '', instead of None that I use for empty values), causing
self.first_data to be returned instead.
one learns about python every day. thanks for the tip.
As I wrote in an earlier post, my initial problem was solved using
class_defaut_for_X trick

 Offhand, I'd guess that there is probably a lot easier way to do what
 you're doing, and that you probably don't even need/want "id" to be a
 sequence, let alone some of the other things you're doing here.  But
 without knowing what your app is actually trying to do, I can't suggest
 anything further.
I'm writing an application to track issues. I can not just use DC's
tracker product, because my customer's needs are very specials.
Well, various entities in my application have a so called 'location'. I
wish to be able to re-use the application I'm writing, so I abstracted
the concept of 'location'. i have then a specialist to manage locations
got from a location rack.
The rack I wrote for my customer deals with two-headed locations: (site,
subdivision). Each part of the location is managed in a different way,
but I need the two to identify one's location.
Later, when I install that program for a different customer, I want to
be able to rip out the old location rack and put another location rack
which can be more 'normal' (ie, one-headed) No one will notice except
the key to get the location is now an integer (or a string) instead of a
tuple.

So, I think I'm doing right to have an id which is a sequence.

Thanks for your great help. I'm still fighting to acquire the principle
behind zpatterns, but once I get it, I wish I could help others to
understand it as well.

regards,
[EMAIL PROTECTED]

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




Re: [Zope-dev] zpatterns: how to specify default values?

2000-07-13 Thread Jephte CLAIN

"Phillip J. Eby" a écrit :
 Yes.  Name the attributes "class_default_for_X" where X is the attribute
 name.
Thanks very much.

 This works with the currently release ZPatterns, but alpha5 will go
 one better and let you create ZClass property sheets that transparently
 implement this.  That is, if you add a "DataSkin Property Sheet" to your
 ZClass instead of the standard "Common Instance Property Sheet", that
 sheet's attributes will be translated to/from the "class_default_for_X"
 names on the ZClass.
I don't use ZClass as I wrote only in Python. I really have to
understand how do propery sheets work.

What I don't understand is where the properties are stored. This is not
clear when I read the PropertyManager source. I guess property sheets
are for grouping some related attributes, but the actual work of
storing/retrieving the attribute is done by the attribute providers,
right?

If so, so be it :-)

By the way,

- is the python programmer have to mix PropertyManager in with DataSkin
to use property sheets? I guess so, but what, I seem to be the only one
who use zpatterns directly from python. All the ZClass junkies out there
do have all the mixin classes ready even before they start :-)

- I sometimes have a dataskin that is willing to get something from its
context. What is the preferred way to do this: try to acquire the
attribute from self._v_rack, wich is guaranteed to be wrapped in the
specialist's context, or just mix Acquisition.Implicit in with DataSkin?

regards,
[EMAIL PROTECTED]

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




[Zope-dev] ZEO and MountedStorage: Access DENIED!

2000-07-13 Thread Bill Anderson


Pardon the lawnmower man reference, but ZEO and MountedStorage do _not_
work together. I just tried, so this is just an initial report. 

What happens, is htat the local ZEO Client wil try to mount the
additional .fs-es on the local system, which will fail.

FYI, Bill

-- 
Bill Anderson (ARC)Unix/Linux System Administrator
HPSO Engineering Productivity Team Thursday, July 13, 2000  
Random Quote:
  A bug in the hand is better than one as yet undetected.

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




Re: [Zope-dev] ZEO and MountedStorage: Access DENIED!

2000-07-13 Thread Bill Anderson

Bill Anderson wrote:
 
 Pardon the lawnmower man reference, but ZEO and MountedStorage do _not_
 work together. I just tried, so this is just an initial report.
 
 What happens, is htat the local ZEO Client wil try to mount the
 additional .fs-es on the local system, which will fail.


OK,  I know I am replying to myself

I have been thinking, and I think I have got a good idea. So I figured I
woudl toss it out for commentary.

What we need now is a Mountable ZSS Product. This would be kind of a
MountedStorage meets ZEO breed, where you would specify the ZSS
host/port combo, and it could act like a mounted FileStorage, except it
would talk to a ZSS.

Whaddya think?
Any educated guesses as to the difficulty?

Bill

--
Do not meddle in the affairs of sysadmins, for they are easy to annoy,
and have the root password.

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




Re: [Zope-dev] ZEO and MountedStorage: Access DENIED!

2000-07-13 Thread Shane Hathaway

Bill Anderson wrote:
 I have been thinking, and I think I have got a good idea. So I figured I
 woudl toss it out for commentary.
 
 What we need now is a Mountable ZSS Product. This would be kind of a
 MountedStorage meets ZEO breed, where you would specify the ZSS
 host/port combo, and it could act like a mounted FileStorage, except it
 would talk to a ZSS.
 
 Whaddya think?
 Any educated guesses as to the difficulty?

It would be a simple, intermediate-level project.  MountPoint is a base
class.  You're supposed to provide the implementation of just one
method.  That method is supposed to return a DB object.  So your product
would be just like Anthony's, except it would accept host and port
parameters and return a DB derived from a ClientStorage object.

Shane

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




[Zope-dev] is there a way to pass namespace in to the page which is within a page?

2000-07-13 Thread danchik

is there a way to pass namespace in to the page which is within a page?

for example : how can I make this work??? 3 files the top one is the one
that  is suppose to be displayed currently


 the main dtml file has the following
line
dtml-var SomeVar  !-- there is a valid namespace SomeVar and this line
prints it out... --
  !-- the next line works fine with
Number 5, but not if I substitute SomeVar instead of 5 --
dtml-var "Some_Header(style=Some_Style_css(SomeKey=5))"

-
 the Some_header dtml file has the following
lines-
style
--!
dtml-var style
--!
/stile

-
 the Some_Style_css dtml file has the following
lines--
input{ position: relative;

  font-size: dtml-var SomeKey
}

--

Now the whole thing works great.. however, if I attempt to make NUMBER 5
by any variable from REQUEST or the current form
the KeyError comes up : if instead of 5 I put SomeVar (which was
passed to this dtml from some other form) I get "Error Type: KeyError Error
Value: SomeVar"



___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )