[Zope-dev] Patch lets use Python expression syntax for attribute 'sort' in dtml-in .. tag. Discussion needed !

2000-07-12 Thread Adam Karpierz

Proposals for python expression syntax for sorting in dtml-in ... tag:

Currently is:
0) sort=literal, sort="literal"
Proposals:
1) sort=literalsort="expression" ,   # best, but 
compatibility problem !!!
2) order=literal order="expression",
3) sort=literal, sort="literal" sortexpr=expression,  sortexpr="expression",
4) sort=literal, sort="literal" sort="expr:expression"   sort=expr:expression

Last (4) syntax is currently implemented in my patch.
I can implement others proposals but I dont know which is correct,
best and accepted by community and Zope developers from DC.
Very please for discussion.

Note: Of course in Zope 2.2.0 has implemented multiple key sorting
  (Ross Lazarus nice job:) and my patch works with multiple sort
  keys too.

I think that my 4) or similar proposition will be useful for
dynamically (indirection) setting others DTML tag attributes
in the future too. In addition without serious compatibility issues.

I have attached both: patch and modified file for Zope 2.2.0b3/b4.
Patch was tested and I think that works ok.

--
Adam Karpierz
[EMAIL PROTECTED]



begin 666 DT_In.py.patch
M*BHJ(QI8B]P71H;VXO1]C=6UE;G1496UP;%T92]$5%]);BYP2YOF)
M5AU($UA2 R-2 Q,CHS,SHT,R R,# P"BTM+2!L:6(O'ET:]N+T1O8W5M
M96YT55MQA=4O1%1?26XN'D)5V5D($IU;" Q,B P-SHR-CHS,R R,# P
M"BHJ*BHJ*BHJ*BHJ*BHJ*@HJ*BH@,S@U+#,Y," J*BHJ"BTM+2 S.#4L,SDQ
M("TM+2T*("!?7W)CU]I9%]?/2D260Z($147TEN+G!Y+'8@,2XT," R,# P
M+S U+S(U(#$V.C,S.C0T('-H86YE($5X" D)PH@(%]?=F5RVEO;E]?/2D
M4F5V:7-I;VXZ(#$N-# @)"=;,3$Z+3)="B @"BL@9G)O;2!$5%]5=EL(EM
M]R="!%=F%L+"!E'!R7V=L;V)A;',*("!FF]M($147U5T:6P@:6UP;W)T
M(%!AG-E17)R;W(L('!AG-E7W!AF%MRP@;F%M95]P87)A;2P@W1R"B @
M9G)O;2!$5%]5=EL(EM]R="!R96YD97)?8FQO8VMS+"!);G-T86YC941I
M8W0L(%9A;ED871I;VY%G)O@H@(9R;VT@W1R:6YG(EM]R="!F:6YD
M+"!A=]I+"!J;VEN+"!SQI= HJ*BHJ*BHJ*BHJ*BHJ*BH**BHJ(#0P-2PT
M,3$@*BHJ*@H@( H@(-L87-S($EN0VQAW,Z"B @(" @(5LV5S/4YO;F4*
M(2 @(" @97APCUS;W)T/6)A=-H/6UA'!I;F]3F]N90H@(" @("!S=%R
M=%]N86UE7W)E/4YO;F4*(" @(" @F5V97)S93U.;VYE"B @(" @( HM+2T@
M-# V+#0Q,B M+2TM"B @"B @8VQAW,@26Y#;%SSH*(" @(" @96QS97,]
M3F]N90HA(" @("!E'!R/7-OG0]V]R=5X'(]8F%T8V@];6%PEN9SU.
M;VYE"B @(" @('-T87)T7VYA;65?F4]3F]N90H@(" @("!R979EG-E/4YO
M;F4*(" @(" @"BHJ*BHJ*BHJ*BHJ*BHJ*@HJ*BH@-#(P+#0R-R J*BHJ"B @
M(" @(" @("!H87-?:V5Y/6%R9W,N:%S7VME0H@( H@(" @(" @(" @:68@
M:%S7VME2@GV]R="I.@HA(" @(" @(" @(" @('-E;8NV]R=#US;W)T
M/6%R9W-;)W-OG0G70HA(" @(" @(" @(" @(EF('-OG0]/2=S97%U96YC
M92UI=5M)SH@V5L9BYS;W)T/2G"B @"B @(" @(" @("!I9B!H87-?:V5Y
M*"=R979EG-E)RDZ"B @(" @(" @(" @(" @V5L9BYR979EG-E/6%R9W-;
M)W)E=F5RV4G70HM+2T@-#(Q+#0T," M+2TM"B @(" @(" @("!H87-?:V5Y
M/6%R9W,N:%S7VME0H@( H@(" @(" @(" @:68@:%S7VME2@GV]R="I
M.@HA(" @(" @(" @(" @('-OG0]87)GULGV]R="=="B$@(" @(" @(" @
M(" @V]R=5X'(]3F]N90HA(" @(" @(" @(" @(EF('-OG0]/2=S97%U
M96YC92UI=5M)SH@"B$@(" @(" @(" @(" @(" @('-OG0])R*(2 @(" @
M(" @(" @("!E;EF('-OG1;.C5=/3TG97APCHG.@HA(" @(" @(" @(" @
M(" @("!S;W)T/7-OG1;-3I="B$@(" @(" @(" @(" @(" @('1R3H@V]R
M=5X'(]179A;"AS;W)T+"!E'!R7V=L;V)A;',I+F5V86P*(2 @(" @(" @
M(" @(" @(" @97AC97!T(%-Y;G1A$5RF]R+"!V.@HA(" @(" @(" @(" @
M(" @(" @(" @F%IV4@4%RV5%G)OBP@* HA(" @(" @(" @(" @(" @
M(" @(" @(" @("\W1R;VYG/D5X')EW-I;VX@*%!Y=AO;BD@4WEN=%X
M(5RF]R/"]S=')O;F^.B*(2 @(" @(" @(" @(" @(" @(" @(" @(" G
M7X\')E/EQN)7-;CPO')E/EQN)R E('9;,%TL"B$@(" @(" @(" @(" @
M(" @(" @(" @(" @)VEN)RD*(2 @(" @(" @(" @("!S96QF+G-OG0]V]R
M= HA(" @(" @(" @(" @('-E;8NV]R=5X'(]V]R=5X'(*(" *(" @
M(" @(" @(EF(AAU]K97DH)W)E=F5RV4G*3H*(" @(" @(" @(" @("!S
M96QF+G)E=F5RV4]87)GULGF5V97)S92=="BHJ*BHJ*BHJ*BHJ*BHJ*@HJ
M*BH@-#@Y+#0Y-B J*BHJ"B @(" @(" @(" *(" @(" @(" @(UA'!I;F]
MV5L9BYM87!P:6YG"B @"B$@(" @(" @("!I9B!S96QF+G-OG0@:7,@;F]T
M($YO;F4Z"B$@(" @(" @(" @(" @V5Q=65N8V4]V5L9BYS;W)T7W-E75E
M;F-E*'-E75E;F-E*0H@( H@(" @(" @(" @:68@V5L9BYR979EG-E(ES
M(YO="!.;VYE.@H@(" @(" @(" @(" @('-E75E;F-E/7-E;8NF5V97)S
M95]S97%U96YC92AS97%U96YC92D*+2TM(#4P,BPU,3$@+2TM+0H@(" @(" @
M(" @"B @(" @(" @("!M87!P:6YG/7-E;8N;6%PEN9PH@( HA(" @(" @
M(" @V]R=#US96QF+G-OG0*(2 @(" @(" @(EF('-OG0@:7,@;F]T($YO
M;F4Z"B$@(" @(" @(" @(" @:68@V5L9BYS;W)T97APB!IR!N;W0@3F]N
M93H@V]R=#US96QF+G-OG1E'!R*UD*0HA(" @(" @(" @(" @('-E75E
M;F-E/7-E;8NV]R=%]S97%U96YC92AS97%U96YC92P@V]R="D*(" *(" @
M(" @(" @(EF('-E;8NF5V97)S92!IR!N;W0@3F]N93H*(" @(" @(" @
M(" @("!S97%U96YC93US96QF+G)E=F5RV5?V5Q=65N8V4HV5Q=65N8V4I
M"BHJ*BHJ*BHJ*BHJ*BHJ*@HJ*BH@-C0T+#8U,2 J*BHJ"B @(" @(" @("!S
M96-T:6]N/7-E;8NV5C=EO;B @(" @(" @"B @(" @(" @("!M87!P:6YG
M/7-E;8N;6%PEN9PH@( HA(" @(" @(" @:68@V5L9BYS;W)T(ES(YO
M="!.;VYE.@HA(" @(" @(" @(" @('-E75E;F-E/7-E;8NV]R=%]S97%U
M96YC92AS97%U96YC92D*(" *(" @(" @(" @(EF('-E;8NF5V97)S92!I
MR!N;W0@3F]N93H*(" @(" @(" @(" @("!S97%U96YC93US96QF+G)E=F5R
MV5?V5Q=65N8V4HV5Q=65N8V4I"BTM+2 V-3DL-C8X("TM+2T*(" @(" @
M(" @('-E8W1I;VX]V5L9BYS96-T:6]N(" @(" @(" *(" @(" @(" @(UA
M'!I;F]V5L9BYM87!P:6YG"B @"B$@(" @(" @("!S;W)T/7-E;8NV]R
M= HA(" @(" @(" @:68@V]R="!IR!N;W0@3F]N93H*(2 @(" @(" @(" @

[Zope-dev] SQL-Methods

2000-07-12 Thread Andre Schubert

Hi,

i ave a problem, i do some sql-queries in my python product and would
return the results like the ZSQLMethods.
How do i have to return the data and field names from my python product
to an dtml document so that i can work with it like ZMYSQL.


___
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 -- trigger add events not working

2000-07-12 Thread Steve Alexander

Steve Alexander wrote:
 
 You could have a flag in DataSkin instances called _has_been_added. It
 is initially cleared. It gets set when manage_afterAdd is called on it.
 
 The DataSkin sends an _objectChanging event only if the _has_been_added
 flag is set.

Of course, the name of the attribute should be more like
_v_has_been_added :-)

--
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] ZSQL Question

2000-07-12 Thread Monty Taylor

Let me preface this by saying: this is an untested guess. I don't have 
Access around anywhere to play with.

But, my guess would be that since you're connecting using ODBC, you'll 
have to use standard SQL wildcards instead of Microsoft extensions. So 
try 
  select * from SomeTable where SomeField like '%project%'

Monty


 Original Message 

On 7/12/00, 6:51:31 AM, Daniel Sashko [EMAIL PROTECTED] wrote regarding 
[Zope-dev] ZSQL Question:


 Hello, is there a way in Zope to search on the pattern of the field 
in
 the database??

 for example::

 through ZODBC using ZSQL connected to ACCESS database I have a query that
 goes like this:

   select * from SomeTable where (SomeField Like '*project*')


 If I run this SQL in ACCESS directly it returns all the records where the
 field SomeField has the word "project" anywhere in the text... but when I
 run it through the ZSQL I get nothing in return.

 Is there another key word to be used with ZSQL or is it just imposible to
 query on the patterns

 What's weird, the ZSQL does not choke on the "Like" word... it just says
 that there was no data matching the query...


 any one has any ideas?


 ___
 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 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] External Method Missery

2000-07-12 Thread Chris Withers

I think this is a bgu so I'll chuck it into the collector unless someone
tells me otherwise...

I have an external method called navTree (dtml-tree was too broken to
fix in the time frame :( ) with a spec as follows:

def navTree(self,start):

It's called in some DTML as:

dtml-var "nav_tree(PARENTS[-2])"

which is fine, unless I call it with the following:

dtml-var "nav_tree(start=PARENTS[-2])"

in which case I get:
TypeError: not enough arguments; expected 2, got 0

which is not very helpful :(

Any ideas?

cheers,

Chris

PS:
Traceback (innermost last):
  File /mnt/data/2/zope/external/2-1-6/lib/python/ZPublisher/Publish.py,
line 214, in publish_module
  File /mnt/data/2/zope/external/2-1-6/lib/python/ZPublisher/Publish.py,
line 179, in publish
  File /mnt/data/2/zope/external/2-1-6/lib/python/Zope/__init__.py, line
202, in zpublisher_exception_hook
(Object: ElementWithAttributes)
  File /mnt/data/2/zope/external/2-1-6/lib/python/ZPublisher/Publish.py,
line 165, in publish
  File /mnt/data/2/zope/external/2-1-6/lib/python/ZPublisher/mapply.py,
line 160, in mapply
(Object: index_html)
  File /mnt/data/2/zope/external/2-1-6/lib/python/ZPublisher/Publish.py,
line 102, in call_object
(Object: index_html)
  File /mnt/data/2/zope/external/2-1-6/lib/python/OFS/DTMLMethod.py,
line 150, in __call__
(Object: index_html)
  File
/mnt/data/2/zope/external/2-1-6/lib/python/DocumentTemplate/DT_String.py,
line 502, in __call__
(Object: index_html)
  File
/mnt/data/2/zope/external/2-1-6/lib/python/DocumentTemplate/DT_Util.py,
line 335, in eval
(Object: _[REQUEST['lang']])
(Info: REQUEST)
  File lt;stringgt;, line 0, in ?
  File
/mnt/data/2/zope/external/2-1-6/lib/python/DocumentTemplate/DT_Util.py,
line 161, in careful_getitem
  File /mnt/data/2/zope/external/2-1-6/lib/python/OFS/DTMLDocument.py,
line 162, in __call__
(Object: en)
  File
/mnt/data/2/zope/external/2-1-6/lib/python/DocumentTemplate/DT_String.py,
line 502, in __call__
(Object: en)
  File /mnt/data/2/zope/external/2-1-6/lib/python/OFS/DTMLMethod.py,
line 146, in __call__
(Object: standard_html_header)
  File
/mnt/data/2/zope/external/2-1-6/lib/python/DocumentTemplate/DT_String.py,
line 502, in __call__
(Object: standard_html_header)
  File /mnt/data/2/zope/external/2-1-6/lib/python/OFS/DTMLMethod.py,
line 146, in __call__
(Object: left_menu)
  File
/mnt/data/2/zope/external/2-1-6/lib/python/DocumentTemplate/DT_String.py,
line 502, in __call__
(Object: left_menu)
  File
/mnt/data/2/zope/external/2-1-6/lib/python/DocumentTemplate/DT_Util.py,
line 335, in eval
(Object: nav_tree(start=PARENTS[-2]))
(Info: PARENTS)
  File lt;stringgt;, line 0, in ?
  File
/mnt/data/2/zope/external/2-1-6/lib/python/Products/ExternalMethod/ExternalMethod.py,
line 248, in __call__
(Object: nav_tree)
(Info: ((), {'start': lt;Folder instance at 86d4de0gt;}, None))

___
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-12 Thread Steve Alexander

Chris Withers wrote:
 
 I think this is a bgu so I'll chuck it into the collector unless someone
 tells me otherwise...
 
 I have an external method called navTree (dtml-tree was too broken to
 fix in the time frame :( ) with a spec as follows:
 
 def navTree(self,start):
 
 It's called in some DTML as:
 
 dtml-var "nav_tree(PARENTS[-2])"
 
 which is fine, unless I call it with the following:
 
 dtml-var "nav_tree(start=PARENTS[-2])"
 
 in which case I get:
 TypeError: not enough arguments; expected 2, got 0
 
 which is not very helpful :(
 
 Any ideas?

Ok.

I debugged this by creating an external method to see what it is
actually receiving:

  def navtree(*arg, **kw):
print 'navtree'
print 'arg= ', arg
print 'kw=  ', kw
print


For  dtml-var "navtree(PARENTS[-1])" we get:
navtree
 arg=  (Application instance at 858ac40,)
 kw=   {}

For dtml-var "navtree(start=PARENTS[-1])" we get:
navtree
 arg=  ()
 kw=   {'start': Application instance at 858ac40}

That is, no "self" argument is getting passed.

Now, I change the external method to have a "self" argument first:

  def navtree(self, *arg, **kw):
print 'navtree'
print 'self=', self
print 'arg= ', arg
print 'kw=  ', kw
print


For  dtml-var "navtree(PARENTS[-1])" we get:
 navtree
 self= Application instance at 858ac40
 arg=  ()
 kw=   {}

For dtml-var "navtree(start=PARENTS[-1])" we get:
 navtree
 self= Folder instance at 8589ea0
 arg=  ()
 kw=   {'start': Application instance at 858ac40}

So, in the first case, you're not getting the current context passed in,
but you are getting it in the second case.


One more try:

  def navtree(self, **kw):
print 'navtree'
print 'self=', self
print 'kw=  ', kw
print

For dtml-var "navtree(PARENTS[-1])" we get:
 navtree
 self= Application instance at 858ac40
 kw=   {}

For dtml-var "navtree(start=PARENTS[-1])" we get:
 navtree
 self= Folder instance at 8589ea0
 kw=   {'start': Application instance at 858ac40}


Looks like it is assumed that the first non-keyword argument should be
passed as the client (ie "self"). 



So, you can fix your exception by giving "start" a default value:

  def navTree(self,start=''):

However, you'll have to always use the keyword form of calling it:

  dtml-var "nav_tree(start=PARENTS[-2])"

Or otherwise, provide a client for it:

  dtml-var "nav_tree(this(), PARENTS[-2])"


As for why this is the case... I have other things to do this morning,
so I won't go rooting around in the DTML source just now. [ Although, it
sure is tempting :-) ]

--
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] Another mystery for you ;-)

2000-07-12 Thread Chris Withers

Hi Steve,

Since you found the external methods arguments thing interesting, here's
another challenge for you... ;-)

(it's actually from the same nav_tree method)

I was trying to use 'if o in REQUEST.PARENTS' to expand branches on the
way to the currently displayed object and was running into trouble which
lead me to try out the following code:

`REQUEST.PARENTS[0]`+`o`+`o==REQUEST.PARENTS[0]`+`o is
REQUEST.PARENTS[0]`

Now, this renders the following in the case where the branch _should_
expand:
Folder instance at 88cbb30Folder instance at 88cbb3000

What I don't understand is how two objects, apparently at the same
memory location, return false from both 'object1==object2' and 'object1
is object2'.

Again, any ideas?

cheers,

Chris

The only vaguely related thing I can think of is that this is happening
'cos I'm working in a version and the folder object has been changed and
REQUEST.PARENTS contains the unchanged version while o contains the
changed version. If this is causing it, it's a bug ;-)

___
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] Re: Another mystery for you ;-)

2000-07-12 Thread Steve Alexander

Chris Withers wrote:
 
 I was trying to use 'if o in REQUEST.PARENTS' to expand branches on the
 way to the currently displayed object and was running into trouble which
 lead me to try out the following code:
 
 `REQUEST.PARENTS[0]`+`o`+`o==REQUEST.PARENTS[0]`+`o is
 REQUEST.PARENTS[0]`
 
 Now, this renders the following in the case where the branch _should_
 expand:
 Folder instance at 88cbb30Folder instance at 88cbb3000
 
 What I don't understand is how two objects, apparently at the same
 memory location, return false from both 'object1==object2' and 'object1
 is object2'.

Smells like an Acquisition Wrapper misunderstanding :-)

 
http://www.zope.org/Members/michel/Projects/Interfaces/AcquisitionWrappedObject


Use the aq_self or aq_parent attribute to do your comparisons to get
your object out of its magic acquisition wrapper.


--
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] Re: Another mystery for you ;-)

2000-07-12 Thread Chris Withers

Steve Alexander wrote:
 Smells like an Acquisition Wrapper misunderstanding :-)

You should change your name to Jim...

...or have you been bitten by this before?

Do you know if objects in PARENTS are acquisition wrapped?

cheers and much we're-not-worthy'ing,

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] Zope 2.1.6 packages

2000-07-12 Thread Jens Vagelpohl

hi all,

from my own experience i know user nobody is 99 and group nobody is the
same on linux, but BSDs seem to have another convention there. on a
FreeBSD box i looked at right now nobody was user 65534 or so.

as chris mcdonough remarked earlier in this thread, it is much more
important to get acquanted to your version of tar and use it so that
your untarring user gets ownership. there is no way anyone could package
up a zope distribution to make the ownerships suitable for all possible
users out there.

i think common sense is, as always, a better guide than expecting that
things will magically be perfect.

jens



 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
 Steve Alexander
 Sent: Wednesday, July 12, 2000 06:40
 To: Alexandre A. Drummond Barroso
 Cc: [EMAIL PROTECTED]
 Subject: Re: [Zope-dev] Zope 2.1.6 packages
 
 
 "Alexandre A. Drummond Barroso" wrote:
  
  It would be a good idea to change the user/group that
  owns any file in the Zope tree to nobody.nobody before
  packaging the product (src and linux packages) instead
  of delivering with user 509. When this user number is
  already used, and someone is testing Zope as a simple
  user (not root) the user can loose the control of the
  files when unpack the package. Anyway, it's a simple
  task and will take almost no time from you.
  
  Thanks in advance,
 
 
 Is nobody always user/group 99 on unix systems in general?
 
 --
 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 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] Zope 2.1.6 packages

2000-07-12 Thread Leonardo Kenji Shikida

in this case, apache installation seems to be magically perfect :^)
or, in other words, zope is a great tool, but still needs a better
installation.

K.

 hi all,

 from my own experience i know user nobody is 99 and group nobody is the
 same on linux, but BSDs seem to have another convention there. on a
 FreeBSD box i looked at right now nobody was user 65534 or so.

 as chris mcdonough remarked earlier in this thread, it is much more
 important to get acquanted to your version of tar and use it so that
 your untarring user gets ownership. there is no way anyone could package
 up a zope distribution to make the ownerships suitable for all possible
 users out there.

 i think common sense is, as always, a better guide than expecting that
 things will magically be perfect.

 jens



___
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] Re: Another mystery for you ;-)

2000-07-12 Thread Steve Alexander

Chris Withers wrote:
 
 ...or have you been bitten by this before?

Nope -- I just like reading impenetrable documentation :-)


 Do you know if objects in PARENTS are acquisition wrapped?

I'm pretty sure that they are.

Anyway, I was wrong in my last email -- you should be comparing using
the aq_base attribute, not the aq_self attribute, as the aq_self
attribute could itself be wrapped.

--
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] Re: Another mystery for you ;-)

2000-07-12 Thread Chris Withers

Steve Alexander wrote:
  Do you know if objects in PARENTS are acquisition wrapped?
 
 I'm pretty sure that they are.

They are indeed, in fact, pretty much everything is :(

The only way to check if o is in PARENTS appears to be:

if o.aq_base in map (lambda o : o.aq_base,PARENTS):

..nice... :/

Two questions:

1. Is there a better way of doing the above?
2. Is there any case where a Zope object isn't going to have a .aq_base
   attribute?

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 )




[Zope-dev] Aquisition, in, == and is

2000-07-12 Thread Chris Withers

Chris Withers wrote:
 Steve Alexander wrote:
   Do you know if objects in PARENTS are acquisition wrapped?
  I'm pretty sure that they are.
 
 They are indeed, in fact, pretty much everything is :(
 The only way to check if o is in PARENTS appears to be:

 if o.aq_base in map (lambda o : o.aq_base,PARENTS):

Hmm, is there anyway the Acquisition ExtensionClass(right thing? I'm not
too hot here ;-) could be altered such that, if r1 and r2 are two
different acquisition wrappers for the same object that:

r1 == r2 and r1 in [r2,x,y]

would return true?

It might be best to leave (r1 is r2) returning false as it does now so
that you can actually tell if things aren't what you expected ;-)

Any ideas?

cheers,

Chris

PS: This question is still worrying me :(

 2. Is there any case where a Zope object isn't going to have a .aq_base
attribute?

___
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] Zope 2.1.6 packages

2000-07-12 Thread Martijn Pieters

On Wed, Jul 12, 2000 at 11:39:47AM +0100, Steve Alexander wrote:
 Is nobody always user/group 99 on unix systems in general?

As Chris pointed out, it's not. It's not on my Debian system. Just untar
without preserving the username and group.

-- 
Martijn Pieters
| Software Engineermailto:[EMAIL PROTECTED]
| Digital Creations  http://www.digicool.com/
| Creators of Zope   http://www.zope.org/
| ZopeStudio: http://www.zope.org/Products/ZopeStudio
-

___
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-12 Thread Shane Hathaway

Steve Alexander wrote:
 
 Chris Withers wrote:
  I have an external method called navTree (dtml-tree was too broken to
  fix in the time frame :( ) with a spec as follows:
 
  def navTree(self,start):
 
  It's called in some DTML as:
 
  dtml-var "nav_tree(PARENTS[-2])"
 
  which is fine, unless I call it with the following:
 
  dtml-var "nav_tree(start=PARENTS[-2])"
 
  in which case I get:
  TypeError: not enough arguments; expected 2, got 0
 
 So, in the first case, you're not getting the current context passed in,
 but you are getting it in the second case.
 
 ...
 Looks like it is assumed that the first non-keyword argument should be
 passed as the client (ie "self").
 
 So, you can fix your exception by giving "start" a default value:
 
   def navTree(self,start=''):
 
 However, you'll have to always use the keyword form of calling it:
 
   dtml-var "nav_tree(start=PARENTS[-2])"
 
 Or otherwise, provide a client for it:
 
   dtml-var "nav_tree(this(), PARENTS[-2])"
 
 As for why this is the case... I have other things to do this morning,
 so I won't go rooting around in the DTML source just now. [ Although, it
 sure is tempting :-) ]

The problem is near the bottom of ExternalMethod.py.  The PythonMethod
product is based partly on ExternalMethod, so I'm now familiar with the
invocation mechanism.

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.

However, if you invoke the method directly (as you're doing here),
mapply is not part of the mechanism.  So you're supposed to provide the
"self" argument manually.  This is nonintuitive IMHO.

BUT if you don't provide the "self" argument, and ExternalMethod can
see that the method signature includes "self" as the first argument,
ExternalMethod will try to call the method again with the self argument
prepended.

So if you have arguments with defaults or use variable argument lists,
that last algorithm falls to pieces.  The solution is to always provide
the "self" argument.

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] Re: Another mystery for you ;-)

2000-07-12 Thread Chris Withers

Steve Alexander wrote:
 Does the method aq_inContextOf() do what you want?

Not really, sicne it's not linked to the URL traversal, which PARENTS
is.

Or am I getting that wrong? ;-)

 However, someone could write a Product with a class that doesn't support
 Acquisition. I think I'd consider that a bug in their Product, though.

Me too...

Thanks for all you help,

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-12 Thread Steve Alexander

Chris Withers wrote:
 
 Shane Hathaway wrote:
  that last algorithm falls to pieces.  The solution is to always provide
  the "self" argument.
 
 When calling or in the signature of your external method?

Both.

Declare it like this:

  def external_method(self, ...other args...):

Use it like this:
 
 dtml-var "external_method(this(),...other args..." ?

--
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] Re: Aquisition, in, == and is

2000-07-12 Thread Jim Fulton

Chris Withers wrote:
 
 Chris Withers wrote:
  Steve Alexander wrote:
Do you know if objects in PARENTS are acquisition wrapped?
   I'm pretty sure that they are.
 
  They are indeed, in fact, pretty much everything is :(
  The only way to check if o is in PARENTS appears to be:
 
  if o.aq_base in map (lambda o : o.aq_base,PARENTS):
 
 Hmm, is there anyway the Acquisition ExtensionClass(right thing? I'm not
 too hot here ;-) could be altered such that, if r1 and r2 are two
 different acquisition wrappers for the same object that:
 
 r1 == r2 and r1 in [r2,x,y]
 
 would return true?

Yes. I think that this would be a great idea.

Note that if r1 implements __cmp__, then it is called.
This means that you could implement the proposed behavior now
with:

  def __cmp__(self, o):
 return cmp(
id(getattr(self, 'aq_base', self)), 
id(getattr(o, 'aq_base', self))
)

It also means that (with the proposed change) that '=='
will only be equivalent to an identity comparison if
an object doesn't define comparison.  In most cases, however,
this shouldn't be a problem.

 It might be best to leave (r1 is r2) returning false as it does now so
 that you can actually tell if things aren't what you expected ;-)

Good, because there's no hook to override 'is'.

 PS: This question is still worrying me :(
 
  2. Is there any case where a Zope object isn't going to have a .aq_base
 attribute?

Sure. There is no guarentee that all objects are wrapped.

A common idiot for dealing with this is getattr(o, 'aq_base', o).
So your example above would become:

  if getattr(o, 'aq_base', o) in map (
 lambda o : getattr(o, 'aq_base', o),
 PARENTS)  

I've considered implementing the aquisition attributes in
the Implicit and and explict base classes, which would probably
be a good idea.

Jim

--
Jim Fulton   mailto:[EMAIL PROTECTED]   Python Powered!
Technical Director   (888) 344-4332http://www.python.org  
Digital Creationshttp://www.digicool.com   http://www.zope.org

Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email
address may not be added to any commercial mail list with out my
permission.  Violation of my privacy with advertising or SPAM will
result in a suit for a MINIMUM of $500 damages/incident, $1500 for
repeats.

___
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-12 Thread Chris Withers

Steve Alexander wrote:
 Both.
   def external_method(self, ...other args...):
  dtml-var "external_method(this(),...other args..." ?

I'll go with this advice since I still can't make heads or tails which
of the two Shane thinks I need to do ;-)

Of course, it's not documented like this. I think the docs say just make
sure the def has self as the first argument...

Can someone from DC pick up the Issue I dropped in the collector
relating to this and solve the problem in some sensible way ;-)

cheers,

Chris

PS: Doing both proved to be an extremely bad idea :(
Suddenly I'm getting lots of key errors and the like.
I'm going back to what I was doing:

-self argument first in def
-call with dtml-var "nav_tree(PARENTS[-2])"

___
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] zope and UNIX permissions

2000-07-12 Thread Chris McDonough

  The other file (pcgi.soc) is a unix domain socket...  it 
 gets created
  when you run "python w_pcgi" as a Zope install command from 
 the source
  distribution.  I'm not sure of the danger of having this get created
  777.  It might be worthwhile to look into what could be done to it.
 
 Well, other than zope not responding over pcgi if it isn't 777?
 I just tried this out of curiousity. No response through pcgi.

Hmmm... thanks for trying it.  This doesn't seem much of a risk, does
it?

___
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] Zope 2.1.6 packages

2000-07-12 Thread Chris McDonough

Leonardo,

Have you looked at
http://www.zope.org/Members/mcdonc/HowTos/zopeinstall/ZOPE-INSTALL-HOWTO
?

 -Original Message-
 From: Leonardo Kenji Shikida [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, July 12, 2000 7:53 AM
 To: [EMAIL PROTECTED]
 Subject: Re: [Zope-dev] Zope 2.1.6 packages
 
 
 in this case, apache installation seems to be magically perfect :^)
 or, in other words, zope is a great tool, but still needs a better
 installation.
 
 K.
 
  hi all,
 
  from my own experience i know user nobody is 99 and group 
 nobody is the
  same on linux, but BSDs seem to have another convention there. on a
  FreeBSD box i looked at right now nobody was user 65534 or so.
 
  as chris mcdonough remarked earlier in this thread, it is much more
  important to get acquanted to your version of tar and use it so that
  your untarring user gets ownership. there is no way anyone 
 could package
  up a zope distribution to make the ownerships suitable for 
 all possible
  users out there.
 
  i think common sense is, as always, a better guide than 
 expecting that
  things will magically be perfect.
 
  jens
 
 
 
 ___
 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 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 -- trigger add events not working

2000-07-12 Thread Steve Alexander

Steve Alexander wrote:
 
 "Phillip J. Eby" wrote:
 
  This would explain why you only get a change event, since if add happens
  after change, it is ignored.  I'm curious how the change event is getting
  called first, since...  Oh.  I'll bet I know what it is.  It's probably
  that manage_afterAdd is being called later in the ObjectManager code than
  it used to be, and/or Zope is trying to set an _owner attribute on the
  newly added object.  Crap.  This is going to take some rethinking to find
  another way to trap the Zope "add" event.  :(
 
 If it saves you any time, here's part of a traceback from an exception
 raised in _objectChanging():
 
 File /lib/python/ZClasses/ZClass.py, line 466, in createInObjectManager
 File /lib/python/OFS/ObjectManager.py, line 258, in _setObject
 File /lib/python/AccessControl/Role.py, line 393, in
 manage_setLocalRoles
 
 Looks like you're right -- manage_setLocalRoles.

I have patched the _objectAdding method of class Agent in Agents.py:

def _objectAdding(self,client, _id=_id):
print "_objectAdding"
i = _id(client)
l = self._v_tranlog
c = l.get(i)

if c is None:
l[i] = AddedStatus, client, None
return

s,c,m = c
# XXX Hack to make "add" triggers work
if s is ChangedStatus:
l[i] = AddedStatus, client, m
# XXX

if s is DeletedStatus:
l[i] = ChangedStatus, client, m

return

I'm not sure whether this will have any nasty side-effects though.

--
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] Re: ZPatterns: Errors in triggered methods + patch

2000-07-12 Thread Steve Alexander

Steve Alexander wrote:
 
 Latest ZPatterns release. Zope 2.2b4.
 
 If I raise an error in an external method that is called by a
 GenericTrigger, I sometimes get a strange log message:

various bits snipped

 I've put the call to each Agent's "change observed" event in a
 try-except block. This makes my Zope instance happier when I do stupid
 things in external methods, and has the additional advantage of
 insulating other Agents from one particular Agent's problems.

Of course, a patch that made a suitable log entry would be better than
what I just posted to the list, which just writes the execption and
traceback to stderr.

--
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 -- trigger add events not working

2000-07-12 Thread Phillip J. Eby

It could cause a problem if the object is added after any other sort of
change from the point of view of the Agent.  The Agent would view it as
having been added, when in fact it is actually merely changed.  I have not,
however, been able to think of any scenario where this condition could
occur unless the DataManager containing the Agent was itself being
reconfigured during the same transaction as the other events, which is an
"all bets are off, hold onto your butts" type proposition anyhow.

My guess is that your patch will probably work fine.  I've checked it in
locally and will incorporate it into a release soon.

At 04:09 PM 7/12/00 +0100, Steve Alexander wrote:
Steve Alexander wrote:
 
 "Phillip J. Eby" wrote:
 
  This would explain why you only get a change event, since if add happens
  after change, it is ignored.  I'm curious how the change event is getting
  called first, since...  Oh.  I'll bet I know what it is.  It's probably
  that manage_afterAdd is being called later in the ObjectManager code than
  it used to be, and/or Zope is trying to set an _owner attribute on the
  newly added object.  Crap.  This is going to take some rethinking to find
  another way to trap the Zope "add" event.  :(
 
 
 Looks like you're right -- manage_setLocalRoles.

I have patched the _objectAdding method of class Agent in Agents.py:

 ...

I'm not sure whether this will have any nasty side-effects though.



___
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] Beginning Zope User

2000-07-12 Thread John Gunnar Carlsson

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]
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] zope and UNIX permissions

2000-07-12 Thread Bill Anderson

Chris McDonough wrote:
 
   The other file (pcgi.soc) is a unix domain socket...  it
  gets created
   when you run "python w_pcgi" as a Zope install command from
  the source
   distribution.  I'm not sure of the danger of having this get created
   777.  It might be worthwhile to look into what could be done to it.
 
  Well, other than zope not responding over pcgi if it isn't 777?
  I just tried this out of curiousity. No response through pcgi.
 
 Hmmm... thanks for trying it.  This doesn't seem much of a risk, does
 it?

Not that I can see off-hand. It is only a socket, a means for
communicating with Zope. The 'risk' would only lie in Zope's Security
mechanisms. ;-)

The only possible risk would be a DoS type manuever if random user could
rewrite the pcgi.soc socket. You could control this through var
directory permissions, will try this out and report back.

Bill

-- 
"Linux: the operating system with a CLUE...
Command Line User Environment".

seen in a posting on comp.software.testing

___
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] zope and UNIX permissions

2000-07-12 Thread Chris McDonough


  Hmmm... thanks for trying it.  This doesn't seem much of a 
 risk, does
  it?
 
 Not that I can see off-hand. It is only a socket, a means for
 communicating with Zope. The 'risk' would only lie in Zope's Security
 mechanisms. ;-)
 
 The only possible risk would be a DoS type manuever if random 
 user could
 rewrite the pcgi.soc socket. You could control this through var
 directory permissions, will try this out and report back.

You're the coolest!  Thanks..

___
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-12 Thread Phillip J. Eby

At 11:05 PM 7/12/00 +0100, Steve Alexander wrote:
ZPatterns 0.4.0a4

The file "version" reports it to be "ZPatterns-0-4-0a1". That gave me a
shock! I thought for a moment that I'd been working on an obsolete
edition :-)

Specialists.py, line 28, method getItem() needs a docstring.


Changes checked in.  I should be releasing an alpha5 tomorrow.  I had hoped
to finish my work on proxy roles, ZClass plugins, and maybe even my
local-roles stuff first and make it a "beta" release, but real life has
been very much in the way of that sort of thing this week.  :(


___
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] RE: Bizarre error with standard_html_header

2000-07-12 Thread Curtis Maloney

On Wed, 12 Jul 2000, Jonathan Desp wrote:
 well if you use that script ? --

 meta http-equiv="refresh" content="0
 ;URL=http://www.apple.com/enterprise/"

 It will fix your problem ?



I think you've completely missed the point of my post.

Firstly: I don't use those meta tags unless i absolutely have to.  The 
redirection I have in place works fine, when it gets parsed.

Secondly: My  problem is NOT redirecting the page.

I added the redirect as a debuging tool, to find out if the DTML parser was 
getting that far.  In case you've not noticed, any time you get an error, 
that object is not rendered at all, instead the error report is put in its 
place.

What it showed me was that the page in question was not being parsed at all, 
even tho the traceback shows it is.

 ---
- 

 Ok... this one has me flummoxed.

 I just can't make ANY sense of it.

 I am taking advantage of Acquisition to save me from having to have two
 copies of a page... fine.. common... well understood, etc.

 Problem is, when i go to the page from the lower directory, it throws some
 bizarre Type error, complaining about too many parameters to
 standard_html_header.

 I dug about, i insterted a redirect to try to find WHEN it was hitting.

 What got me was this:  I put dtml-call "RESPONSE.redirect('index_html')"
 as
 the VERY FIRST LINE of the DTML Document.  But the problem still occurrs!!

 This just makes NO sense.

 System:

 RedHat 6.1
 Zope 2.1.6

 Have a better one,
  Curtis.

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




[Zope] Bizarre error with standard_html_header

2000-07-12 Thread Curtis Maloney

Ok...

i dtml-commented out standard_html_header, and it worked fine..

What gets me is the header should work fine.  If I understand Acquisition 
properly, the object should be rendered from within the namespace of the 
directory it's being called in.  

So, if i get "/internal/register", and register exists in / not /internal, 
then it will be rendered as if it was in /internal.

Fine.  In that case, the standard_html_header in /internal, which requires 
the existance of various objects in /internal, should render fine.

What confuses me is the "TypeError: too many arguments; expected 2, got 3".  
How can this be happening?

What am I missing, here?

Have a better one,
Curtis Maloney

dtml-var standard_work_disclaimer

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




[Zope] Patch lets use Python expression syntax for attribute 'sort' in dtml-in .. tag. Discussion needed !

2000-07-12 Thread Adam Karpierz

Proposals for python expression syntax for sorting in dtml-in ... tag:

Currently is:
0) sort=literal, sort="literal"
Proposals:
1) sort=literalsort="expression" ,   # best, but 
compatibility problem !!!
2) order=literal order="expression",
3) sort=literal, sort="literal" sortexpr=expression,  sortexpr="expression",
4) sort=literal, sort="literal" sort="expr:expression"   sort=expr:expression

Last (4) syntax is currently implemented in my patch.
I can implement others proposals but I dont know which is correct,
best and accepted by community and Zope developers from DC.
Very please for discussion.

Note: Of course in Zope 2.2.0 has implemented multiple key sorting
  (Ross Lazarus nice job:) and my patch works with multiple sort
  keys too.

I think that my 4) or similar proposition will be useful for
dynamically (indirection) setting others DTML tag attributes
in the future too. In addition without serious compatibility issues.

I have attached both: patch and modified file for Zope 2.2.0b3/b4.
Patch was tested and I think that works ok.

--
Adam Karpierz
[EMAIL PROTECTED]



begin 666 DT_In.py.patch
M*BHJ(QI8B]P71H;VXO1]C=6UE;G1496UP;%T92]$5%]);BYP2YOF)
M5AU($UA2 R-2 Q,CHS,SHT,R R,# P"BTM+2!L:6(O'ET:]N+T1O8W5M
M96YT55MQA=4O1%1?26XN'D)5V5D($IU;" Q,B P-SHR-CHS,R R,# P
M"BHJ*BHJ*BHJ*BHJ*BHJ*@HJ*BH@,S@U+#,Y," J*BHJ"BTM+2 S.#4L,SDQ
M("TM+2T*("!?7W)CU]I9%]?/2D260Z($147TEN+G!Y+'8@,2XT," R,# P
M+S U+S(U(#$V.C,S.C0T('-H86YE($5X" D)PH@(%]?=F5RVEO;E]?/2D
M4F5V:7-I;VXZ(#$N-# @)"=;,3$Z+3)="B @"BL@9G)O;2!$5%]5=EL(EM
M]R="!%=F%L+"!E'!R7V=L;V)A;',*("!FF]M($147U5T:6P@:6UP;W)T
M(%!AG-E17)R;W(L('!AG-E7W!AF%MRP@;F%M95]P87)A;2P@W1R"B @
M9G)O;2!$5%]5=EL(EM]R="!R96YD97)?8FQO8VMS+"!);G-T86YC941I
M8W0L(%9A;ED871I;VY%G)O@H@(9R;VT@W1R:6YG(EM]R="!F:6YD
M+"!A=]I+"!J;VEN+"!SQI= HJ*BHJ*BHJ*BHJ*BHJ*BH**BHJ(#0P-2PT
M,3$@*BHJ*@H@( H@(-L87-S($EN0VQAW,Z"B @(" @(5LV5S/4YO;F4*
M(2 @(" @97APCUS;W)T/6)A=-H/6UA'!I;F]3F]N90H@(" @("!S=%R
M=%]N86UE7W)E/4YO;F4*(" @(" @F5V97)S93U.;VYE"B @(" @( HM+2T@
M-# V+#0Q,B M+2TM"B @"B @8VQAW,@26Y#;%SSH*(" @(" @96QS97,]
M3F]N90HA(" @("!E'!R/7-OG0]V]R=5X'(]8F%T8V@];6%PEN9SU.
M;VYE"B @(" @('-T87)T7VYA;65?F4]3F]N90H@(" @("!R979EG-E/4YO
M;F4*(" @(" @"BHJ*BHJ*BHJ*BHJ*BHJ*@HJ*BH@-#(P+#0R-R J*BHJ"B @
M(" @(" @("!H87-?:V5Y/6%R9W,N:%S7VME0H@( H@(" @(" @(" @:68@
M:%S7VME2@GV]R="I.@HA(" @(" @(" @(" @('-E;8NV]R=#US;W)T
M/6%R9W-;)W-OG0G70HA(" @(" @(" @(" @(EF('-OG0]/2=S97%U96YC
M92UI=5M)SH@V5L9BYS;W)T/2G"B @"B @(" @(" @("!I9B!H87-?:V5Y
M*"=R979EG-E)RDZ"B @(" @(" @(" @(" @V5L9BYR979EG-E/6%R9W-;
M)W)E=F5RV4G70HM+2T@-#(Q+#0T," M+2TM"B @(" @(" @("!H87-?:V5Y
M/6%R9W,N:%S7VME0H@( H@(" @(" @(" @:68@:%S7VME2@GV]R="I
M.@HA(" @(" @(" @(" @('-OG0]87)GULGV]R="=="B$@(" @(" @(" @
M(" @V]R=5X'(]3F]N90HA(" @(" @(" @(" @(EF('-OG0]/2=S97%U
M96YC92UI=5M)SH@"B$@(" @(" @(" @(" @(" @('-OG0])R*(2 @(" @
M(" @(" @("!E;EF('-OG1;.C5=/3TG97APCHG.@HA(" @(" @(" @(" @
M(" @("!S;W)T/7-OG1;-3I="B$@(" @(" @(" @(" @(" @('1R3H@V]R
M=5X'(]179A;"AS;W)T+"!E'!R7V=L;V)A;',I+F5V86P*(2 @(" @(" @
M(" @(" @(" @97AC97!T(%-Y;G1A$5RF]R+"!V.@HA(" @(" @(" @(" @
M(" @(" @(" @F%IV4@4%RV5%G)OBP@* HA(" @(" @(" @(" @(" @
M(" @(" @(" @("\W1R;VYG/D5X')EW-I;VX@*%!Y=AO;BD@4WEN=%X
M(5RF]R/"]S=')O;F^.B*(2 @(" @(" @(" @(" @(" @(" @(" @(" G
M7X\')E/EQN)7-;CPO')E/EQN)R E('9;,%TL"B$@(" @(" @(" @(" @
M(" @(" @(" @(" @)VEN)RD*(2 @(" @(" @(" @("!S96QF+G-OG0]V]R
M= HA(" @(" @(" @(" @('-E;8NV]R=5X'(]V]R=5X'(*(" *(" @
M(" @(" @(EF(AAU]K97DH)W)E=F5RV4G*3H*(" @(" @(" @(" @("!S
M96QF+G)E=F5RV4]87)GULGF5V97)S92=="BHJ*BHJ*BHJ*BHJ*BHJ*@HJ
M*BH@-#@Y+#0Y-B J*BHJ"B @(" @(" @(" *(" @(" @(" @(UA'!I;F]
MV5L9BYM87!P:6YG"B @"B$@(" @(" @("!I9B!S96QF+G-OG0@:7,@;F]T
M($YO;F4Z"B$@(" @(" @(" @(" @V5Q=65N8V4]V5L9BYS;W)T7W-E75E
M;F-E*'-E75E;F-E*0H@( H@(" @(" @(" @:68@V5L9BYR979EG-E(ES
M(YO="!.;VYE.@H@(" @(" @(" @(" @('-E75E;F-E/7-E;8NF5V97)S
M95]S97%U96YC92AS97%U96YC92D*+2TM(#4P,BPU,3$@+2TM+0H@(" @(" @
M(" @"B @(" @(" @("!M87!P:6YG/7-E;8N;6%PEN9PH@( HA(" @(" @
M(" @V]R=#US96QF+G-OG0*(2 @(" @(" @(EF('-OG0@:7,@;F]T($YO
M;F4Z"B$@(" @(" @(" @(" @:68@V5L9BYS;W)T97APB!IR!N;W0@3F]N
M93H@V]R=#US96QF+G-OG1E'!R*UD*0HA(" @(" @(" @(" @('-E75E
M;F-E/7-E;8NV]R=%]S97%U96YC92AS97%U96YC92P@V]R="D*(" *(" @
M(" @(" @(EF('-E;8NF5V97)S92!IR!N;W0@3F]N93H*(" @(" @(" @
M(" @("!S97%U96YC93US96QF+G)E=F5RV5?V5Q=65N8V4HV5Q=65N8V4I
M"BHJ*BHJ*BHJ*BHJ*BHJ*@HJ*BH@-C0T+#8U,2 J*BHJ"B @(" @(" @("!S
M96-T:6]N/7-E;8NV5C=EO;B @(" @(" @"B @(" @(" @("!M87!P:6YG
M/7-E;8N;6%PEN9PH@( HA(" @(" @(" @:68@V5L9BYS;W)T(ES(YO
M="!.;VYE.@HA(" @(" @(" @(" @('-E75E;F-E/7-E;8NV]R=%]S97%U
M96YC92AS97%U96YC92D*(" *(" @(" @(" @(EF('-E;8NF5V97)S92!I
MR!N;W0@3F]N93H*(" @(" @(" @(" @("!S97%U96YC93US96QF+G)E=F5R
MV5?V5Q=65N8V4HV5Q=65N8V4I"BTM+2 V-3DL-C8X("TM+2T*(" @(" @
M(" @('-E8W1I;VX]V5L9BYS96-T:6]N(" @(" @(" *(" @(" @(" @(UA
M'!I;F]V5L9BYM87!P:6YG"B @"B$@(" @(" @("!S;W)T/7-E;8NV]R
M= HA(" @(" @(" @:68@V]R="!IR!N;W0@3F]N93H*(2 @(" @(" @(" @

Re: [Zope] RE: Bizarre error with standard_html_header

2000-07-12 Thread Martijn Pieters

On Wed, Jul 12, 2000 at 04:05:08PM +1000, Curtis Maloney wrote:
 On Wed, 12 Jul 2000, Jonathan Desp wrote:
  well if you use that script ? --
 
  meta http-equiv="refresh" content="0
  ;URL=http://www.apple.com/enterprise/"
 
  It will fix your problem ?
 
 I think you've completely missed the point of my post.
 
 Firstly: I don't use those meta tags unless i absolutely have to.  The 
 redirection I have in place works fine, when it gets parsed.
 
 Secondly: My  problem is NOT redirecting the page.
 
 I added the redirect as a debuging tool, to find out if the DTML parser was 
 getting that far.  In case you've not noticed, any time you get an error, 
 that object is not rendered at all, instead the error report is put in its 
 place.
 
 What it showed me was that the page in question was not being parsed at all, 
 even tho the traceback shows it is.

You are seeing transactions at work. Your DTML Method _is_ being processed,
only an exception caused the publishing process to stop, roll back the
transaction, and return the error message to you.

DTML is not a linear language like ASP, it is not processed one line at a time
and bails out at the first error. DTML is parsed into an object tree when
entered, and this tree it then later on asked to render itself. An exception
in this tree will propagate down to the publishing level, and then turned into
an error response. So DTML is, like Python and Java, object oriented and
exception driven.

If you want to see how far a page gets, try using dtml-try blocks around
parts of your code. You can then catch the exception higher in the object
tree, and generate your own messages in reaction to this.

-- 
Martijn Pieters
| Software Engineermailto:[EMAIL PROTECTED]
| Digital Creations  http://www.digicool.com/
| Creators of Zope   http://www.zope.org/
| ZopeStudio: http://www.zope.org/Products/ZopeStudio
-

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




[Zope] clarification neede: postgresDA, SQL method cache and connection pool

2000-07-12 Thread Bak @ kedai

hello again

after the bad experience yesterday, i want to scale my site so that i don't
face the same problems again.  ZEO would do that.  but not now.  not when i
don't know much about zope and zeo.

but before that comes, i'd like to store data in a RDB (postgres) and split the
frontend into two or more but accessing the same RDB.  that way, i can split
user access,  give faster response, get more users.what's the pros?  cons?


my Q:
can the gurus spare some time and clarify the database connection pool (?) per
zope thread(postgres specifically).  and how is cache handled?  i've seen
errors saying that the object is not in cache.  is this related to the
connection per thread?

--traceback
 File /home/kdie/Zope/lib/python/Shared/DC/ZRDB/DA.py, line 389, in _cached_result
(Object: qry_msg_thread)
KeyError: ('select *\012from msg\012where \012par_id=188\012', 1000)


is this a good way of approaching the problems?  or is there a better way?
thanks.


-- 
--
http://www.kedai.com.my/kk
Am I Evil?


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




Re: [Zope] RE: Bizarre error with standard_html_header

2000-07-12 Thread Curtis Maloney

On Wed, 12 Jul 2000, Martijn Pieters wrote:

 You are seeing transactions at work. Your DTML Method _is_ being processed,
 only an exception caused the publishing process to stop, roll back the
 transaction, and return the error message to you.

 DTML is not a linear language like ASP, it is not processed one line at a
 time and bails out at the first error. DTML is parsed into an object tree
 when entered, and this tree it then later on asked to render itself. An
 exception in this tree will propagate down to the publishing level, and
 then turned into an error response. So DTML is, like Python and Java,
 object oriented and exception driven.

 If you want to see how far a page gets, try using dtml-try blocks around
 parts of your code. You can then catch the exception higher in the object
 tree, and generate your own messages in reaction to this.

Fine... so my debuging techniques are less than perfect.  I will change them 
in future. Thanks.

That doesn't change my original problem, which everybody has so far decided 
to ignore.

Curtis.

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




Re: [Zope] RE: Bizarre error with standard_html_header

2000-07-12 Thread Martijn Pieters

On Wed, Jul 12, 2000 at 05:00:45PM +1000, Curtis Maloney wrote:
 Fine... so my debuging techniques are less than perfect.  I will change them 
 in future. Thanks.
 
 That doesn't change my original problem, which everybody has so far decided 
 to ignore.

Well, I can't really see what is going wrong, and can only suggest techniques
of honing in on the problem.

-- 
Martijn Pieters
| Software Engineermailto:[EMAIL PROTECTED]
| Digital Creations  http://www.digicool.com/
| Creators of Zope   http://www.zope.org/
| ZopeStudio: http://www.zope.org/Products/ZopeStudio
-

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




[Zope] Re: Unable to upload images from client to server

2000-07-12 Thread ³¯§D§Ó


Our company, Cyberwork Solution Inc, uses Zope heavily to provide 
technicle solutions for our clients. Insert/Query image with MySQL was 
also a BIG problem for us, but now we've found one solution to solve this 
problem. Here is the solution we found, and hope it will help!!

Environment:
  Zope 2.1.6
  MySQL 3.22.30
  ZMySQLDA 1.1.3

[insert into MySQL]

--DTML--
form method="post" action="py_sqlinsert"  ENCTYPE="multipart/form-data"
input type=file name=file
input type=submit
/form

--External Method-- py_sqlinsert
from Products.ZMySQLDA.db import DB
from Products.ZMySQLDA import MySQL

###
# you should replace what id you want to set with 'cclljj' :-
###
def insertBLOB(self,file='',REQUEST=None):
  f = file.read()
  d = DB('csi@localhost db_account db_passwd')
  r = MySQL.escape(f)
  q_str = "insert into CSI (name,data) values ('cclljj','" +r+ "')"
  d.query(q_str)
  return "success"

[query from MySQL]

--DTML--
hr
img src="py_sqlquery?key=cclljj"  
!-- query the image with the key value 'cclljj' --
hr

--External Method-- py_sqlquery
from Products.ZMySQLDA.db import DB
from Products.ZMySQLDA import MySQL

def queryBLOB(self, REQUEST, RESPONSE):
  key = REQUEST['key']
  d = DB('csi@localhost db_account db_passwd')
  q_str = "select data from CSI where name='"+key+"'"
  r = "Content-type: image/gif\n\n"
  k = d.query(q_str)
  k = k[1]
  k = k[0]
  k = k[0]
  RESPONSE.setHeader('Content-Type','image-gif')
  RESPONSE.setHeader('Content-Length',len(k))
  return k

In fact, we also found that there seems to be some thing wrong with 
ZMySQLDA 1.1.3. We strongly recommend you to patch your DA.py as follows:

def sql_quote__(self, v, escapes={
'\\': '',
'\"': '\\\"',
'\'': '\\\'',
'\0': '\\0',
'\n': '\\n',
'\t': '\\t',
'\r': '\\r',
'\b': '\\b',
'\032': '\\Z',
}):

Therefore when inserting into database, you can just use DTML method 
without external method as follows:

dtml-let content="file.read()"
dtml-var zsql_insert

-
Kevin Chen
Programmer,Cyberwork Solution Inc
4F-5,No.288,Kuangfu S.Rd.,Taipei,Taiwan
Email : [EMAIL PROTECTED]
Tel : +886-2-87712220#2259
Fax : +886-2-8771
http://www.cyberworksolution.com

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




Re: [Zope] RE: Bizarre error with standard_html_header

2000-07-12 Thread Curtis Maloney

On Wed, 12 Jul 2000, Martijn Pieters wrote:
 On Wed, Jul 12, 2000 at 05:00:45PM +1000, Curtis Maloney wrote:
  Fine... so my debuging techniques are less than perfect.  I will change
  them in future. Thanks.
 
  That doesn't change my original problem, which everybody has so far
  decided to ignore.

 Well, I can't really see what is going wrong, and can only suggest
 techniques of honing in on the problem.

At your suggestion, i've wrapped any contentious parts of the 
internal/standard_html_header in a dtml-try, which has had no effect.

Firstly: what would cause Zope to give me that type error?  Too many 
arguments?

I'm not doing anything fancy.  This worked until i changed the standard 
header, which is why i'm digging about in it.

but since the only parts of that now that are not in a try statement are raw 
HTML, how could it go splat?

From what I understand of the traceback, the problem is occurring in the 
header, but it's not clear WHERE, or, tbh, WHY.

Any more help much appreciated.  If you want to see the actual DTML, just ask.

Curtis Maloney.

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




Re: [Zope] RE: Bizarre error with standard_html_header

2000-07-12 Thread Martijn Pieters

On Wed, Jul 12, 2000 at 05:14:57PM +1000, Curtis Maloney wrote:
 At your suggestion, i've wrapped any contentious parts of the 
 internal/standard_html_header in a dtml-try, which has had no effect.
 
 Firstly: what would cause Zope to give me that type error?  Too many 
 arguments?
 
 I'm not doing anything fancy.  This worked until i changed the standard 
 header, which is why i'm digging about in it.
 
 but since the only parts of that now that are not in a try statement are raw 
 HTML, how could it go splat?
 
 From what I understand of the traceback, the problem is occurring in the 
 header, but it's not clear WHERE, or, tbh, WHY.

Where _is_ the traceback? It may well be that the call _to_ the header is
botched.

I also see that you are making assumptions about acquisition context. An
acquired message does not autmatically also acquire the context of the caller.
See several articles and How-To's by Jim Fulton and Shane Hathaway on
Zope.org.

-- 
Martijn Pieters
| Software Engineermailto:[EMAIL PROTECTED]
| Digital Creations  http://www.digicool.com/
| Creators of Zope   http://www.zope.org/
| ZopeStudio: http://www.zope.org/Products/ZopeStudio
-

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




Re: [Zope] dtml-in and maps...

2000-07-12 Thread Marcel Preda

- Original Message - 
From: Curtis Maloney [EMAIL PROTECTED]


  I suppose that your var is a dictionary
 
 Well.. this is where things start to get fun. (o8
 
 I have a dirty great array along the lines of :
 
 [ [ 'string', 0, { 'name':'value' } ], [ 'string', 0, { 'name':'value' } ] ]
 
 (I love python.. the same thing in C/C++ would take HEAPS of work :)
 
 So, I iterate over the array... that's working fine...
 Then, for each iteration, I handle the data however...
 I wind up with:
 
 dtml-in "_['sequence-item'][2]"
  !-- do stuff here --
 /dtml-in
 
 But that's where the problem begins.

Yes in did the "_['sequence-item'][2]" is a dictionary.

You can do like

dtml-in "[_['sequence-item'][2]]"
!-- do stuff here --
/dtml-in
(untested :0)



but why not without dtml-in ...

!-- do stuff here with "_['sequence-item'][2]['name']"--

PM



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




Re: [Zope] RE: Bizarre error with standard_html_header

2000-07-12 Thread Curtis Maloney


Forgot to include:

Zope Error

 Zope has encountered an error while publishing this resource. 

 Error Type: TypeError
 Error Value: too many arguments; expected 2, got 3


Curtis.

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




Re: [Zope] Q: Zope meeting in Paris in August?

2000-07-12 Thread Joachim Schmitz


I would be interested to meet you in Paris.

Mit freundlichen Grüßen

Joachim Schmitz  

  
AixtraWare, Ing. Büro für Internetanwendungen
Hüsgenstr. 33a, D-52457 Aldenhoven  
Telefon: +49-2464-8851, FAX: +49-2464-905163

On Tue, 11 Jul 2000, Paul Everitt wrote:

 
 Hello everybody.  I'm chatting with someone in Paris about a possible
 Zope gathering during my vacation to see my in-laws August 11th-25th.
 I'll be in Paris for a few days in the beginning and possibly at the
 end.  Is anybody interested in hosting an event?
 
 I'll be in Brittany the rest of the time, so if there's someone in
 Rennes or Nantes, that's possible as well!
 
 --Paul
 
 Paul Everitt   Digital Creations
 [EMAIL PROTECTED]  540.371.6909
 -
 The Open Source Zope application server
 http://www.zope.org/
 - 
 
 ___
 Zope maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope
 **   No cross posts or HTML encoding!  **
 (Related lists - 
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope-dev )
 
 
 


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




[Zope] An oldnewbie writes (Was [Zope] DTML?)

2000-07-12 Thread Paul Browning

 Date: Mon, 10 Jul 2000 17:49:25 -0400
 From: Shane Hathaway [EMAIL PROTECTED]
 Organization: Digital Creations, Inc.
 To: Chris Withers [EMAIL PROTECTED]
 CC: [EMAIL PROTECTED]
 Subject: Re: [Zope] DTML?
 
 Chris Withers wrote:

[snip]

 
  I also think having Python Methods ship with Zope would really help...
 
 I'm working on enhancing Python Methods right now.  I'm close to
 getting them properly interfaced with DTML namespaces, so that DTML can
 invoke Python Methods using simpler DTML syntax.

I've followed this thread with particular interest. I'm almost
18 months old with Zope and have done many useful things with it.
But my journey up the learning cliff has been punctuated by
spells of doing other things (I'm not a programmer in real life)
during which I inevitably forget most of what I've just learned
about DTML (and slip back down the cliff).

OK, this is true of most things (computer languages, foreign
languages, mental arithmetic, parenthood, etc) - if you don't
use it, you lose it. But there is something about DTML that
distinguishes it (for me) from other languages - it's the rate
at which it decays on you. Python's decay constant is much
more favourable.

So I've learned a rule of thumb - if I'm writing DTML and
it isn't flowing then I really ought to be using Python. PythonMethods
are nice but, as they stand, you only have access to built-in
functions. So if you want to import modules you have to resort
to External Methods. [Am I talking nonsense here? My empirical
experience is that I can use string functions in a PythonMethod
but not, say, stuff from the time module. Neither string nor time
are built-in though . so why one and not the other?]

The point of these reflections:

* PythonMethods ought to be a high priority IMHO.

* DTML is holding Zope back for the rest of us (and is
  arguably a "proprietary" component of Zope (in that
  you can't use it anywhere else) - this is a disincentive
  to many power-Perl,JSP,name-your-scripting-poison users
  I suspect.

* Please can we import Python modules from PythonMethods (or
  can we already and I don't about it, or does this break the
  sandbox that PythonMethods is meant to provide)?

* Don't worry about changing DTML syntax. It's an excellent
  marketing ploy to ensure good sales of the 2nd edition of
  The Zope Book ;-)

Apologies for any misconceptions in any or all of the above.

Paul

--
 The Library, Tyndall Avenue, Univ. of Bristol, Bristol, BS8 1TJ, UK
 E-mail: [EMAIL PROTECTED]  URL: http://www.bris.ac.uk/


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




[Zope] Long Data Type

2000-07-12 Thread Ronnie Sengupta

Hi,

Can anybody who has succesfully managed to insert text data (greater than 2k
or 4k) into Oracle 8i 8.1.6 with DCOracle version 1.3.1 please explain how
it is to be done.

I have seen several other posts in this mailing list. But nothing fruitful.

The same goes for Stored Procedures. Can't get them to work either.

I am a web developer for a site called www.zdnetindia.com. We are using Zope
with Mysql. Planning on Migrating to Oracle.


Ronnie
www.zdnetindia.com



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




Re: [Zope] Q: Zope meeting in Paris in August?

2000-07-12 Thread Monty Taylor

I'm there, just let me know when and where.

Monty

 Original Message 

On 7/11/00, 3:40:08 PM, Paul Everitt [EMAIL PROTECTED] wrote regarding 
[Zope] Q: Zope meeting in Paris in August?:


 Hello everybody.  I'm chatting with someone in Paris about a possible
 Zope gathering during my vacation to see my in-laws August 11th-25th.
 I'll be in Paris for a few days in the beginning and possibly at the
 end.  Is anybody interested in hosting an event?

 I'll be in Brittany the rest of the time, so if there's someone in
 Rennes or Nantes, that's possible as well!

 --Paul

 Paul Everitt   Digital Creations
 [EMAIL PROTECTED]  540.371.6909
 -
 The Open Source Zope application server
 http://www.zope.org/
 -

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

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




[Zope] Re: LoadSite can create a corrupted data.fs ?

2000-07-12 Thread Steve Alexander

Jonathan,

I'd be really really surprised if LoadSite can create a corrupted
data.fs. I really do not think this is where the problem lies.

LoadSite does not directly interact with the Zope persistence machinery.
It really doesn't do that much different than manually uploading loads
of files. Even if something were faulty in the tool you used to upload
the files, Zope itself would reject the file, or store incorrect data;
but either way, the data.fs would remain intact and self-consistent.

However, when you upload 900 files in one go, no matter how, you are
using a lot of the resources on your computer. You're probably
exercising quite a lot of the cache and memory.

Have you checked carefully whether you have that Intel mainboard
hardware fault that was mentioned to you a few days ago? If your
hardware has this fault then just occasionally, you will be writing
faulty data.

You must get your hardware checked, or else this problem will most
likely occur again.

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

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




[Zope] R: [Zope] dtml-in and maps...

2000-07-12 Thread Marcel Preda

 
 Because, as you seem to keep missing, i want to iterate over all the items in
 the map, but i won't know what their keys are!

 By using with, i can bring the map into the name space... SO WHAT?  I still
 don't know what keys were in the map!

 Get the idea?

Ya men...
[the `name' is not allways  `name']

the idea is to make a temporary `sequence-item'

So, you have to do something like this:
HTML
BODY
dtml-call
"REQUEST.set('superList',[['string1',0,{'name1':'value1'}],['string2',1,{'name2'
:'value2'}]])"
dtml-in superList
dtml-let temp_sequence_item="_['sequence-item']"
dtml-in "temp_sequence_item[2].keys()"
dtml-var sequence-item:dtml-var "temp_sequence_item[2][_['sequence-item']]"
/dtml-in
/dtml-let
BR
/dtml-in
/BODY
/HTML


As you see, it's not so difficult :)

OR you can try with an external method,
the code wil not be so UNreadable...



PM


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




[Zope] Passing Variables; How?

2000-07-12 Thread Jonathan

Hi all,

I've got the following situation; a ZGDChart object calls a Z SQL 
method which requires certain query parameters. Since I call the 
ZGDChart from within DTML and not the Z SQL method, how can I define 
the variable the SQL method needs?

Thnx
Jonathan

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




Re: [Zope] Howto store objects??

2000-07-12 Thread Holger Lehmann

Am Die, 11 Jul 2000 schrieben Sie:
 On Tue, 11 Jul 2000, Mario Premke wrote:
  Do I have to import these files as objects
  and store them within Zope or is it possible
  to store them on the local filesystem and 
  make a Link via DTML to access these files ???
 
 The latter.  Take a look at the LocalFS product.

Though about using FTP to upload your files ? Port is 8021 by default.

- Holger

 
 --RDM
 
 
 ___
 Zope maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope
 **   No cross posts or HTML encoding!  **
 (Related lists - 
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope-dev )
-- 
---
catWorkX GmbH Hamburg
Dipl.-Ing. Holger Lehmann
Stresemannstr. 364
22761 Hamburg
Tel: +49 40 890 646-0
Fax: +49 40 890 646-66
mailto:[EMAIL PROTECTED]
http://www.catworkx.de
http://www.catbridge.de

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




Re: [Zope] Address already in use

2000-07-12 Thread Holger Lehmann

Well there might be a proxy server running on 8080 and maybe something else on
9080.

Why not trying something bigger like 10080 or so ? 
Check your local /etc/services for explanations of what runs where.

- Holger

Am Die, 11 Jul 2000 schrieben Sie:
 While trying to install PoPy, I've screwed up my Zope install.  I had
 trouble with my ld.so.conf and ld.so.cache files, but seem to have fixed
 that.  Everything else appears to be running correctly, except Zope.
 
 Here are the errors I get when I try to start Zope:
 [root@frankenstein ewalstad]# /usr/local/Zope/start 
 [1] 1161
 [root@frankenstein ewalstad]# Traceback (innermost last):
   File "/usr/local/Zope/z2.py", line 493, in ?
 logger_object=lg)
   File "/usr/local/Zope/ZServer/medusa/http_server.py", line 552, in
 __init__
 self.bind ((ip, port))
   File "/usr/local/Zope/ZServer/medusa/asyncore.py", line 205, in bind
 return self.socket.bind (addr)
 socket.error: (98, 'Address already in use')
 
 Here's what's using port 8080:
 [root@frankenstein Zope]# fuser -v 8080/tcp
 
  USERPID ACCESS COMMAND
 8080/tcp root   2104 f  xps
 
 So, I tried running Zope on port 9080 and received the same "socket.error:
 (98, 'Address already in use')" error.
 
 Next, I tried to rerun the "python w_pcgi.py" thinking that maybe this would
 restore any screwed up library references.  I saw the same "socket.error:
 (98, 'Address already in use')" error scroll by as it ran the w_pcgi.py
 script.
 
 My question is, what happened and how do I fix it?
 
 Any help is greatly appreciated.
 
 Eric.
 
 
 ___
 Zope maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope
 **   No cross posts or HTML encoding!  **
 (Related lists - 
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope-dev )
-- 
---
catWorkX GmbH Hamburg
Dipl.-Ing. Holger Lehmann
Stresemannstr. 364
22761 Hamburg
Tel: +49 40 890 646-0
Fax: +49 40 890 646-66
mailto:[EMAIL PROTECTED]
http://www.catworkx.de
http://www.catbridge.de

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




Re: [Zope] Manager Screen Authenication

2000-07-12 Thread Holger Lehmann

Check the file called access with your favourite editor.
There must be a mimimum of two and a maximum of three colon separated fields:
1. username of the manager
2. encrypted password of the manager
3. (optional) domains from where the manager is allowed to login from

delete the last colon and the 3rd field (or run zpasswd with the proper
parameters) to allow logins from everywhere.

- Holger

 Am Die, 11 Jul 2000 schrieben Sie:
 hi sean,
 
 the zpasswd is run like this:
 
 python zpasswd.py access
 
 the password creation is in dialog form.
 
 jens
 
 p.s.: please don't send HTML-formatted mail to the list
 
 
 on 7/11/00 14:55, Sean S. Rowe at [EMAIL PROTECTED] wrote:
 
 Hello.
  
 I'm new to Zope and have just installed it on a server running BSD.  I built
 the source and everything went fine.  I went to localhost:8080 bypassing
 Apache and the welcome screen came up as it was supposed to.
  
 However, I cannot logon to the manage section of Zope.  My password is
 always wrong.  I changed my password with the following: 'python zpasswd.pyo
 -p new_password access'.  Nothing I do seems to work and the only info I can
 find is on running with Apache not Zserver.  Any help would be greatly
 appreciated.
  
 Thank you,
  
 Sean S. Rowe
 Output Technology Corporation
 
 
 
 
 ___
 Zope maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope
 **   No cross posts or HTML encoding!  **
 (Related lists - 
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope-dev )
-- 
---
catWorkX GmbH Hamburg
Dipl.-Ing. Holger Lehmann
Stresemannstr. 364
22761 Hamburg
Tel: +49 40 890 646-0
Fax: +49 40 890 646-66
mailto:[EMAIL PROTECTED]
http://www.catworkx.de
http://www.catbridge.de

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




[Zope] Subfolder problem (acquisition?)

2000-07-12 Thread Oleg Broytmann

Hello! I've got a problem.

   Site:

/
   index_html  (DTML Document)
   logo.gif(Image)
   standard_html_footer
   sub (Folder, empty)

Footer:
pdtml-var logo.gif/p
pa href="dtml-var URL0/view_source"View DTML Source/a/p
/BODY/HTML

   I can see the root index_html, but I can't see sub folder -
AttributeError.
   I think when I view "sub", it acquire index_html from root, but what is
the problem with AttributeError?

   http://phd.russ.ru/pcgi/TEST/index_html
   http://phd.russ.ru/pcgi/TEST/sub/
   Export: http://phd.russ.ru/~phd/Software/Zope/TEST.zexp

Anyone have an idea? I am totally puzzled. Seems I missed something about
acquisition...

Oleg. (All opinions are mine and not of my employer)
 
Oleg Broytmann  National Research Surgery Centre  http://sun.med.ru/~phd/
   Programmers don't die, they just GOSUB without RETURN.



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




[Zope] Fetching data from external methods

2000-07-12 Thread Jarkko Veijalainen


Hi!

I've been trying almost two weeks with this problem. I have read 'tons' on
zope documentation and mailing lists. 

I have this dtml form, which submits two values to external method. External
method searches LDAP directory with submitted values and returns an
object(class) with 5-30 values. I know only how to return plain text to Zope
(return obj.__dict__ or  return obj.value1). How i return those values in
zope and embed those values into dtml file.

I have some kind of clue, how i want to do this (or do i?):
can i make Zclass and return values into that and call Zclass
variables in dtml?  

in fact only problem here is how i return values from external
method like obj.value1 , obj.value2 into zope and use them in
dtml or/and in Zclass instances.

Please, somobody save my nerves and help me figure solution with this
problem.

JarkkoV

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




Re: [Zope] Fetching data from external methods

2000-07-12 Thread Chris Withers

Jarkko Veijalainen wrote:
 in fact only problem here is how i return values from external
 method like obj.value1 , obj.value2 into zope and use them in
 dtml or/and in Zclass instances.

in external method:

return (obj1, obj2,)

in DTML:

dtml-in external_method(your,params)
  dtml-var value1
  dtml-var value2
/dtml-in

If you are submitting to your external method from an HTML form, you
will need to return the HTML to be displayed:

def my_external_method(self,param1,param2):
...do stuff...
string = 'HTMLBODY'
string = string + ...render your results here...
string = string + '/BODY/HTML'
return string

HTH,

Chris

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




Re: [Zope] GUF Authentication Problems

2000-07-12 Thread Mario Premke


Maybe, your password is encrypted? 
NO, it isn't.

The problem is, that I cannot access "real_password", because Zope says:

2000-07-12T15:54:46 ERROR(200) GUF
http://134.96.119.88:8080/portal_folder/acl_users/userAuthenticate
raised an exception (('Unauthorized', 'You are not authorized to access
emreal_password/em.', traceback object at 857e2d0))
--
2000-07-12T15:54:46 INFO(0) GUF Failed authentication for napr003 

Any idea ??

Mario

   I cannot authenticate users with the following method:
   
   dtml-in "sql_get_password(xlogin=username)" 
  dtml-if "password==_['sequence-item'].real_password"
  dtml-return "_.int('1')"
  /dtml-if
   /dtml-in
   
   dtml-return "_.int('0')"
 Maybe, your password is encrypted?
 
 
 
 Dieter
 


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




Re: [Zope] Q: Zope meeting in Paris in August?

2000-07-12 Thread Richard Moon

At 09:40 11/07/00 -0400, you wrote:

Hello everybody.  I'm chatting with someone in Paris about a possible
Zope gathering during my vacation to see my in-laws August 11th-25th.
I'll be in Paris for a few days in the beginning and possibly at the
end.  Is anybody interested in hosting an event?

Be great to meet you and other EuroZopers.


I'll be in Brittany the rest of the time, so if there's someone in
Rennes or Nantes, that's possible as well!

--Paul

Paul Everitt   Digital Creations
[EMAIL PROTECTED]  540.371.6909
-
The Open Source Zope application server
http://www.zope.org/
-

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


Richard Moon
[EMAIL PROTECTED]



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




Re: [Zope] Passing Variables; How?

2000-07-12 Thread Hugo Ramos

- Original Message - 
From: "Jonathan" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, July 12, 2000 12:45 PM
Subject: [Zope] Passing Variables; How?


 Hi all,
 
 I've got the following situation; a ZGDChart object calls a Z SQL 
 method which requires certain query parameters. Since I call the 
 ZGDChart from within DTML and not the Z SQL method, how can I define 
 the variable the SQL method needs?


dtml-call zsqlmethodname(argument)

then in the zsql you have to write your argument in the arguments textbox.

=
Hugo Ramos - [EMAIL PROTECTED]
ZopersORG - http://www.zopers.org


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




Re: [Zope] Subfolder problem (acquisition?)

2000-07-12 Thread Robert Wohlfahrt

Hi,

I can see the root index_html, but I can't see sub folder -
 AttributeError.
I think when I view "sub", it acquire index_html from root, but what is
 the problem with AttributeError?

I had the same problem and I solved it by using a DTML-Method for
index_html, not a DTML-Document.

Hope that helps

Robert
-- 
Robert Wohlfahrt ([EMAIL PROTECTED])
Tel: 0179 / 2980074 Fax: 0351 / 2880145

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




Re: [Zope] LoadSite can create a corrupted data.fs ?

2000-07-12 Thread Tino Wildenhain

Hi Jonathan,

Jonathan Desp wrote:
 
 Hi,
 
 Do you have any tools for analyse a data.fs ? (not tranalyser)
 
 I'm still getting that problem:
 
 http://lists.zope.org/pipermail/zope/2000-July/028950.html
 
 If I don't fint out why my data.fs is corrupted, I'll lost one week of work
 for my company.

Why dont you simply restore your Data.fs from a regular backup?

Regards
Tino Wildenhain

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




Re: [Zope] RE: Bizarre error with standard_html_header

2000-07-12 Thread Martijn Pieters

On Wed, Jul 12, 2000 at 05:36:26PM +1000, Curtis Maloney wrote:
 The traceback was in my original message.  I will give you a new one this 
 time, since i have managed to move along a _tiny_ ammount, but still get the 
 same error.

Found it now. There were two copies of your message, and I found the one
without the trace.

 
  I also see that you are making assumptions about acquisition context. An
  acquired message does not autmatically also acquire the context of the
  caller. See several articles and How-To's by Jim Fulton and Shane Hathaway
  on Zope.org.
 
 Hmm.. so, if i request http://mysite/internal/register
 and it acquires the DTML Document 'register' from mysite/ into internal
 register won't neccesarily be in the internal/ namespace?
 
 Erm my Zope world is crumbling!  It all seemed so simple before...
 
 Then again, when you can't trust the id, what can you trust? (o8

register will look in internal for objects, but only if it can't find them
first in the mysite (root) object. Read Jim's acquisition algebra texts:

  http://www.zope.org/Members/jim/Info/IPC8/AcquisitionAlgebra/

So we have:

  mysite/

standard_html_header
register

internal/

  standard_html_header

and you are calling mysite.internal.register, which in turn tries to call
mysite.internal.register.standard_html_header. mysite.internal.register is, in
Jim's algebra: ((register o mysite) o (internal o mysite)), so when register
tries to call standard_html_header, it will go from left to right through this
list, and will find mysite.standard_html_header first.

If this worries you about your view of Zope, you're about to reach your next
level of Zope Zen. =)

   File /usr/local/Zope-2.1.6-src/lib/python/OFS/DTMLMethod.py, line 146, in 
 __call__
 (Object: standard_html_header)
   File /usr/local/Zope-2.1.6-src/lib/python/DocumentTemplate/DT_String.py, 
 line 502, in __call__
 (Object: standard_html_header)
 TypeError: (see above)

The first 3 lines let us know that we are _inside_ an object called
standard_html_header. In your case this will be the on in the root Folder of
your site, I suspect. 

What actually goes wrong I don't know. It _probably_ goes wrong inside the
rendering of this object, but this is masked, I think, by the fact that the
next step on the stack is in render_blocks, which is implemented in C.

-- 
Martijn Pieters
| Software Engineermailto:[EMAIL PROTECTED]
| Digital Creations  http://www.digicool.com/
| Creators of Zope   http://www.zope.org/
| ZopeStudio: http://www.zope.org/Products/ZopeStudio
-

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




Re: [Zope] Q: Zope meeting in Paris in August?

2000-07-12 Thread bruno . mattarollo

Hello ...

 Hello everybody.  I'm chatting with someone in Paris about a possible
 Zope gathering during my vacation to see my in-laws August 11th-25th.
 I'll be in Paris for a few days in the beginning and possibly at the
 end.  Is anybody interested in hosting an event?

I would also be glad to attend such event. I will also be on 
vacations around that time. I will schedule my pass through Paris 
accordingly.

Would be great to meet other EuroZopers as Richard Moon said.

Cheers

/B


Bruno Mattarollo [EMAIL PROTECTED]
Greenpeace International (http://www.greenpeace.org)
_

Greenpeace calls for all the earth's remaining ancient
forests to be protected from destruction.
See Greenpeace Position on Acient Forests at:
http://www.greenpeace.org/~forests/resources/GPonanfor.pdf

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




RE: [Zope] Beta -problem

2000-07-12 Thread Brian Lloyd

 while starting Zope this morning I got this 
 message.Yestersday I installed
 the newest beta.

 -Traceback (innermost last):
 snip
 import sys, ExtensionClass, TimeStamp, cPersistence, Persistence
 ImportError: No module named ExtensionClass

Are you using a source or binary release? If you are using a 
source release you need to follow the installation instructions 
to build the binaries...


Brian Lloyd[EMAIL PROTECTED]
Software Engineer  540.371.6909  
Digital Creations  http://www.digicool.com 



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




RE: [Zope] Fetching data from external methods

2000-07-12 Thread Jarkko Veijalainen

sorry but your example did'nt work:

in external method:

   return (obj1, obj2,)

in DTML:

dtml-in external_method(your,params)
  dtml-var value1
  dtml-var value2
/dtml-in

here is my submit forms code to explain my case

form action="LDAPsearch" method=POST ENCTYPE="multipart/form-data"
   cn: br
input name="cn" size="10"br
   objectclass: br
input name="objectclass" size="15"brbr

  input type="SUBMIT" name="send" value=" Search "
/form

LDAPsearch is my external method (object in zope which points to .py module)

My method outputs are:

res = (contains search result using forms input values)
sn = res.sn (one of the values in res-object)
return sn

and i try to embed in dtml like this

dtml-in "LDAPsearch('66','*',REQUEST)"
dtml-var sn
/dtml-in


Zope returns error:
Error Type: InError
Error Value: Strings are not allowed as input to the in tag.

if i try to return 
res.__dict__   in external method

zope returns this kind of error:
Error Type: KeyError
Error Value: 0

this works
dtml-var "LDAPsearch('66','*',REQUEST)"
but it lefs me with two problems
1) how i can input values in LDAPsearch(how i input here)
2) i don't have any control of return value, it returns list like
this
('Ukko', '66', 'oEmail') 

If you are submitting to your external method from an HTML form, you
will need to return the HTML to be
def my_external_method(self,param1,param2):
   ...do stuff...
   string = 'HTMLBODY'
   string = string + ...render your results here...
   string = string + '/BODY/HTML'
   return string

this solution worked, but it's not what i really want to do. I don't want
include return HTML-file in my python script, like in that example. 


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




Re: [Zope] Subfolder problem (acquisition?)

2000-07-12 Thread Oleg Broytmann

On Wed, 12 Jul 2000, Robert Wohlfahrt wrote:
 I can see the root index_html, but I can't see sub folder -
  AttributeError.
 I think when I view "sub", it acquire index_html from root, but what is
  the problem with AttributeError?
 
 I had the same problem and I solved it by using a DTML-Method for
 index_html, not a DTML-Document.

   I did many experiments before asking for help. Making index_html Method
helped a bit, but not much.
   This works: http://phd.russ.ru/pcgi/TEST2/TEST/sub/ (here index_html is
Method), but anyway view_source crashed:
   http://phd.russ.ru/pcgi/TEST2/TEST/index_html/view_source
   http://phd.russ.ru/pcgi/TEST2/TEST/sub/index_html/view_source

   Here is the view_source (it is DTML Method with Manager proxy role):

!--#var standard_html_header--

pre
!--#var "document_src(REQUEST, RESPONSE)" html_quote--
/pre

!--#call "RESPONSE.setHeader('content-type', 'text/html')"--
!--#var standard_html_footer--


   And the traceback is:

Traceback (innermost last):
  File ./lib/python/ZPublisher/Publish.py, line 214, in publish_module
  File ./lib/python/ZPublisher/Publish.py, line 179, in publish
  File ./lib/python/Zope/__init__.py, line 202, in
zpublisher_exception_hook
(Object: index_html)
  File ./lib/python/ZPublisher/Publish.py, line 165, in publish
  File ./lib/python/ZPublisher/mapply.py, line 160, in mapply
(Object: view_source)
  File ./lib/python/ZPublisher/Publish.py, line 102, in call_object
(Object: view_source)
  File ./lib/python/OFS/DTMLMethod.py, line 145, in __call__
(Object: view_source)
  File ./lib/python/DocumentTemplate/DT_String.py, line 502, in __call__
(Object: view_source)
  File ./lib/python/OFS/DTMLMethod.py, line 141, in __call__
(Object: standard_html_footer)
  File ./lib/python/DocumentTemplate/DT_String.py, line 502, in __call__
(Object: standard_html_footer)
AttributeError: __call__

Oleg.(All opinions are mine and not of my employer)
 
Oleg Broytmann  Foundation for Effective Policies  [EMAIL PROTECTED]
   Programmers don't die, they just GOSUB without RETURN.


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




[Zope] Zope patches or update for Python 2.0?

2000-07-12 Thread Skip Montanaro

Does anyone have a patch for Zope (any version = 2.0) to enable it to run
reliably under the latest versions of CVS in the SourceForge repository?
The decision was made to tighten up both the multi-arg append and multi-arg
connect items.  I was hoping someone else had already gone through the code
and fixed all these items, saving me the time.

Thx,

-- 
Skip Montanaro, [EMAIL PROTECTED], http://www.mojam.com/, http://www.musi-cal.com/
"To get what you want you must commit yourself for sometime" - fortune cookie

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




RE: [Zope] Zope patches or update for Python 2.0?

2000-07-12 Thread Brian Lloyd

 Does anyone have a patch for Zope (any version = 2.0) to 
 enable it to run
 reliably under the latest versions of CVS in the SourceForge 
 repository?
 The decision was made to tighten up both the multi-arg append 
 and multi-arg
 connect items.  I was hoping someone else had already gone 
 through the code
 and fixed all these items, saving me the time.

Hi Skip -

I would suggest trying 2.2 beta 4. I think that all of 
the multi-arg append()'s are out of that (not so sure 
about connect()'s, but I think some enterprising folks 
are using it with the new stuff).


Brian Lloyd[EMAIL PROTECTED]
Software Engineer  540.371.6909  
Digital Creations  http://www.digicool.com 



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




Re: [Zope] Subfolder problem (acquisition?)

2000-07-12 Thread Oleg Broytmann

The strangest thing here is:

   If I dtml-var logo.gif in footer: http://phd.russ.ru/pcgi/TEST2/TEST2/index_html,
I cannot view source: the same AttributeError:
   http://phd.russ.ru/pcgi/TEST2/TEST2/index_html/view_source

   But when I remove logo.gif from footer, all things are working as
expected: http://phd.russ.ru/pcgi/TEST2/TEST3/index_html,
   http://phd.russ.ru/pcgi/TEST2/TEST3/index_html/view_source

   By some mysterious reason standard_html_footer does not acquire logo.gif :(

Oleg.(All opinions are mine and not of my employer)
 
Oleg Broytmann  Foundation for Effective Policies  [EMAIL PROTECTED]
   Programmers don't die, they just GOSUB without RETURN.


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




[Zope] Re: howto_wrapper: probs with PUT and manage_main - IDs are already in use

2000-07-12 Thread T.J. Mannos

Marcus,

REF: http://www.zope.org/Members/unfo/howto_wrapper

I may have left out a step.  If you try to add the methods to the Control
Panel / Products / HTMLDocument folder, it will fail.  You have to go one
more level down, into the HTMLDocument ZClass (It will say "Z Class at
/Control_Panel / Products / HTMLDocument / HTMLDocument").  Sorry about
that.

I'll update my instructions.  If you have any more problems, send me an
e-mail.

By the way, I've enhanced my processHTMLFile method slightly to allow access
to namespace variables via the dtml-; syntax.  If you're interested,
drop me a line.  I eventually want to allow any arbitrary DTML tag to
execute, but I don't have a clue how to do that right now... :)

- T.J.

- Original Message -
From: Marcus Schopen [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, July 11, 2000 11:44 AM
Subject: howto_wrapper: probs with PUT and manage_main - IDs are already in
use


Hei there,

I tried to install your great wrapper-tools, but can't create:

"PUT" External Method
AND
the "manage_main" DTML Method.

Zope tells me that these IDs are already in use. I am using Zope
Zope-2.1.6 on a linux box (latest Hotfix installed).

What could I do? I would realy like to use your wrapper. It´s the tool
I habe been looking for and it would be the solution for a lot of
problems here (using external WYSIWYG editors + Zope ...).

Thank you very much

Bye
Marcus
University of Bielefeld, Germany



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




[Zope] MySQL LIKE operator

2000-07-12 Thread Aaron Williamson

Hello,

I'm writing a search query to a MySQL database.  I want to keep
people from screwing around with my database by running searches like ";
delete from ... yada yada.  So I should use dtml-sqlvar, right?  But
what if I want to use LIKE?
  If I say:  WHERE goo LIKE "%dtml-sqlvar name=bar type=string%"  then
effectively I am saying: WHERE goo LIKE "%'somestring'%".  In other
words, it will match only the string with the single quotes.  I hope
this makes sense.  Has anyone faced a similar problem?
  Thanks for any help

--Aaron


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




RE: [Zope] Fetching data from external methods

2000-07-12 Thread Jarkko Veijalainen


FINALY, your code sould look like:


In externalMethod:
return res 
#ENTIRE obj 

DTML code:
dtml-let resDTML="LDAPsearch('66','*',REQUEST)"
dtml-var "resDTML.cn"
dtml-var "resDTML.otherAttributes"
/dtml-let

yeah, thanks a lot, it works, but i have still a liitle problem
this might sound like newbie question ( but i don't really know)

how i can dtml-res with input values like this
dtml-let resDTML="LDAPsearch(myinput,myinput2,REQUEST)"

myinput is data that i can type like search criteria in my
search-form

should i make somekind on handler-DTML? which picks up submitted
datafrom my submitted form and puts them in dtml-let? 

PM

jarkkov

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




Re: [Zope] Fetching data from external methods

2000-07-12 Thread Chris Withers

Jarkko Veijalainen wrote:
 My method outputs are:
 
 res = (contains search result using forms input values)
 sn = res.sn (one of the values in res-object)
 return sn
  ^
  that should be 'return res'

...then the following will work:

 dtml-in "LDAPsearch('66','*',REQUEST)"
 dtml-var sn
 /dtml-in

 this works
 dtml-var "LDAPsearch('66','*',REQUEST)"

...because that displays sn, which is what you're returning!

 1) how i can input values in LDAPsearch(how i input here)

Don't understand what you want here...

 2) i don't have any control of return value, it returns list like
 this
 ('Ukko', '66', 'oEmail')

you should be able to dtml-in over whatever is returning that...

Chris

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




[Zope] R: [Zope] Fetching data from external methods

2000-07-12 Thread Marcel Preda

 
 how i can dtml-res with input values like this
 dtml-let resDTML="LDAPsearch(myinput,myinput2,REQUEST)"
 
 myinput is data that i can type like search criteria in my
 search-form
 
 should i make somekind on handler-DTML? which picks up submitted
 data from my submitted form and puts them in dtml-let? 

Nothing to do, will work...

As an advice , 
from time to time, try:
dtml-var REQUEST
You will see a lot of interesting things
[maybe you know that]

PM


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




[Zope] ZSQL-ERROR

2000-07-12 Thread Mario Premke

Hi,
I have installed Openticket an the
appropiate database .. when I now
go into Openticket and select the 
"sqlGenTicketId" - ZSQL-method for
testing the database-connection I get:

Error, exceptions.KeyError: unhandled
SQL used:
select max(ticket_id)+1 as new_ticket_id from tickets

In the mysql-monitor the same statement works.

What does the error-message mean ???
Thanks
Mario

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




[Zope] RE: [Zope-dev] Problem with Zope

2000-07-12 Thread R. David Murray

On Wed, 12 Jul 2000, Tina Goyne (TT) wrote:
 click on the folder I created--it opens the folder, but it is as if the
 folder is empty.  If I view the file, it opens Adobe Reader--but the page is

If the folder appears empty, how do you view the file?

When viewing the file, the fact that it opens Adobe Reader indicates
that Zope returned some data and indicated the correct mime-type
for a PDF file.  That makes it sound like the data did indeed get
uploaded, otherwise Zope wouldn't have been able to figure out
its type (I think).

 blank.  If I go to the file on the network--it is fine.  I have tried
 uploading the file over and over again.  I have even moved it to different
 locations on the network.  It still doesn't work.  I changed the file from
 Publisher to PDF using Acrobat--should I have used some other method?

Moving it to different locations on the network shouldn't make
any difference.  And once you upload it to Zope, the data being
sent to the client browser is coming from data stored inside
Zope, so at that point the network location of the file would be
irrelevant.

Did you try viewing the converted file before you uploaded it?
Perhaps the conversion process produced a blank document?

Otherwise...  it sounds like Zope is returning something, but the
data is invalid in some way.  Perhaps if you tried doing a 'save'
instead of viewing the link to the file, and you look at the contents
of what gets downloaded, it might give you a clue.  If you had a
way to capture the data stream returned by accessing the file for
viewing that would be better (say by telnetting to the web service
port and typing in the get command by hand).

--RDM


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




[Zope] RE: [Zope-dev] Problem with Zope

2000-07-12 Thread R. David Murray

On Wed, 12 Jul 2000, Tina Goyne (TT) wrote:
 we have actually narrowed the problem down a little more.  If we use
 Netscape--there are no problems.  The problem seems to be with IE--have you
 heard of a resolution?
 
 BTW - I can view the file on the network server.

No, I hadn't heard about problems viewing PDF files from IE.  Anyone
else seen this?

I suppose we should know what version of Zope you are running.

--RDM


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




Re: [Zope] Zope patches or update for Python 2.0?

2000-07-12 Thread Adam Karpierz

I would suggest trying 2.2 beta 4. I think that all of
the multi-arg append()'s are out of that

Not quite. I currently found 3 events.
I will send apropriate patches to Collector today.
I promise that will check all of Zope sources for
append() incompatibility (without non-standard
Products of course :).
Maybe for socket.connect() too.

Adam Karpierz
[EMAIL PROTECTED]




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




[Zope] I want to assign the values of parameters in a form to another parameter in the same form?

2000-07-12 Thread Sean G Richards

Dear Zope list,
I want to cat the values of parameters, all strings, in a form to
another parameter in the same form.  How would I go about doing this
using dtml?

--
Sean G. Richards  : Web Technician/Treasurer PLUG
Purdue University : Engineering Computing Network
[EMAIL PROTECTED] :




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




RE: [Zope] RE: [Zope-dev] Problem with Zope

2000-07-12 Thread Mabe, Brad

Check IE's security settings for the zone you are downloading the PDF from. 

The following is taken from Adobe's support site:

-- If you're using Internet Explorer 5.0, make sure that its security
options recognize the Acrobat Control:


Note: This procedure changes Internet Explorer's security options for all
ActiveX Controls. If you prefer to use stricter security, do not complete
these steps.


1. Exit from Internet Explorer 5.0 and your Acrobat viewer.
2. Start Internet Explorer 5.0.
3. Choose Tools  Internet Options and click the Security tab.
4. Choose the appropriate Web content zone for the type of PDF file you're
trying to open (e.g. Internet or Local Intranet).
5. Click Custom Level to specify the security setting for this zone.
6. Select Enable for the options labeled "Download unsigned ActiveX
controls" and "Initialize and script ActiveX Controls not marked as safe."
7. Click OK and then click OK again.


-=Brad=-

-Original Message-
From: R. David Murray
To: Tina Goyne (TT)
Cc: [EMAIL PROTECTED]
Sent: 7/12/00 12:10 PM
Subject: [Zope] RE: [Zope-dev] Problem with Zope

On Wed, 12 Jul 2000, Tina Goyne (TT) wrote:
 we have actually narrowed the problem down a little more.  If we use
 Netscape--there are no problems.  The problem seems to be with
IE--have you
 heard of a resolution?
 
 BTW - I can view the file on the network server.

No, I hadn't heard about problems viewing PDF files from IE.  Anyone
else seen this?

I suppose we should know what version of Zope you are running.

--RDM


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



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




[Zope] SQL returning zero rows hangs ... but not with Gadfly !

2000-07-12 Thread Nigel Head

(CVS version 11/July, Linux, Postgres 7) 
In summary, I have tried this with both the PoPy and
ZPyGres flavours of PostGres adapter and with GadFly; these are the only
d'bases I have available easily.

Any SELECT query which returns no rows (a where something impossible...
condition) seems to cause Zope to fail to respond to my browser. If I persevere
a few times (maybe 7? haven't really counted) then Zope vanishes alltogether.

BUT -- this doesn't happen with GadFly; there I duly get a report that no data
was returned. I'll swear I didn't use to have this problem a coupel of weeks
back, so I'm basivally suspecting Zope, but 

I'm in search of data points with other databases/zopes etc to find out
whether this is postgres or what!

I'm going to go get 2.2beta4 now and see what that brings ...

Thanks in advance ...

-- 
Nigel Head
Houbits Hi-Tech Servers
[EMAIL PROTECTED]

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




RE: [Zope] Zope patches or update for Python 2.0?

2000-07-12 Thread Brian Lloyd

 I would suggest trying 2.2 beta 4. I think that all of
 the multi-arg append()'s are out of that
 
 Not quite. I currently found 3 events.
 I will send apropriate patches to Collector today.
 I promise that will check all of Zope sources for
 append() incompatibility (without non-standard
 Products of course :).
 Maybe for socket.connect() too.

Great - if you hunt 'em down, I'll make sure the 
fixes get in for 2.2 final.

thanks!


Brian Lloyd[EMAIL PROTECTED]
Software Engineer  540.371.6909  
Digital Creations  http://www.digicool.com 




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




[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 does Zope display this pages??

I have found function calls such as:
manage_roleForm=HTMLFile('roleEdit', globals()) which I believe creates
an HTML document template from the named file. But, what is the
mechanism that calls/displays mange_roleForm?

Thanks in advance,

DR


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




RE: [Zope] MySQL LIKE operator

2000-07-12 Thread Ron Bickers

You should be able to use something like this (untested):

dtml-var bar sql_quote

That way you get the SQL quoting without the surrounding quotes.

___

Ron Bickers
Logic Etc, Inc.
[EMAIL PROTECTED]


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, July 12, 2000 11:03 AM
 To: [EMAIL PROTECTED]
 Subject: [Zope] MySQL LIKE operator
 
 
 Hello,
 
 I'm writing a search query to a MySQL database.  I want to keep
 people from screwing around with my database by running searches like ";
 delete from ... yada yada.  So I should use dtml-sqlvar, right?  But
 what if I want to use LIKE?
   If I say:  WHERE goo LIKE "%dtml-sqlvar name=bar type=string%"  then
 effectively I am saying: WHERE goo LIKE "%'somestring'%".  In other
 words, it will match only the string with the single quotes.  I hope
 this makes sense.  Has anyone faced a similar problem?
   Thanks for any help
 
 --Aaron
 
 
 ___
 Zope maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope
 **   No cross posts or HTML encoding!  **
 (Related lists - 
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope-dev )
 
 

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




[Zope] Aligning Images With Text

2000-07-12 Thread Terry Babbey

Here is my code:
dtml-if "_[ProgCode + 'PIC']"
dtml-var "_[ProgCode + 'PIC']"
/dtml-if

What I would like to do is align the picture to the right of my web
page. If I was programming html I would do it like this: img
src=T043PIC align=right

Any help?
Terry

--
__
Terry Babbey
Technical Support Specialist
Lambton College, Sarnia, Ontario, Canada
__



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




Re: [Zope] .dtml files

2000-07-12 Thread Jonothan Farr

 I have found function calls such as:
 manage_roleForm=HTMLFile('roleEdit', globals()) which I believe creates
 an HTML document template from the named file. But, what is the
 mechanism that calls/displays mange_roleForm?

The class heirarchy looks something like this:

Globals.HTMLFile
DocumentTemplate.HTMLFile
DT_HTML.HTMLFile
DT_HTML.HTML
DT_String.String

You want to look at the __call__ method of the DT_String.String class for
enlightenment, although I'll warn you that it's likely to make anyone but Jim's
head explode. ;)

--jfarr

"Perl is worse than Python because people wanted it worse."
Larry Wall, 14 Oct 1998



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




[Zope] How to uninstall a product such as PTK or KnowledgeKit

2000-07-12 Thread Meeting Maker Webmaster

Hello,

I'm getting somewhat crazy with this one. I've upgraded my test server to 
2.2.0b4 (from 2.2.0b3), i.e. transferred all the products I installed 
previously and the /var directory. Everything works fine with 2.2.0b4 until 
there.

At that point, I realize that I have installed many products to "test" 
Zope, so I decide I want to uninstall all the products I won't use instead 
of exporting everything I did and re importing it on a clean server. So I 
delete all the products I don't need in the /lib/python/Products directory 
and go in the Control Panel/Products to delete all the products I just 
deleted physically from the hard drive. I restart Zope... everything still 
OK. The products are not listed anymore.

So now I want to create a brand new product (ID: test). in test, I want to 
add a ZClass. In the available project, I also only see the products 
currently installed. But in the Add ZClass form, Zope offers me to use 
"DemoPortal: ..." or "KnowledgeKit: ..." as base classes. The only thing I 
really don't understand is that I just deleted these objects and they don't 
appear in the Products list anymore!

OK, so they are still in the cache... let's use this "Flush cache" function 
in the database management... no effect. OK, so let's pack the database... 
to be certain, let's pack it to 0 days, as the problem with it has been 
corrected in 2.2.0b4 ;-)... no effect!

So here is my question: How to really delete a product?

I want to be certain I don't have any references to it left of previously 
installed products. I know I installed these products through the "import" 
feature and not by copying it into the /lib/python/Products/ directory, but 
that shouldn't make any difference?

Thank you very much for your help.

Gérard Métrailler Jr.

Meeting Maker Inc.
... the intelligent choice for collaborative scheduling

Email: [EMAIL PROTECTED]
Web: http://www.meetingmaker.com


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




Re: [Zope] Zope patches or update for Python 2.0?

2000-07-12 Thread Adam Karpierz

Great - if you hunt 'em down, I'll make sure the
fixes get in for 2.2 final.

thanks!


I have done.
Both list.append() and socket.connect().
All things in Collector.

Regards
--
Adam Karpierz
[EMAIL PROTECTED]




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




Re: [Zope] .dtml files

2000-07-12 Thread Patrick Lewis

The object has a method named manage_roleForm.  In your example, an object
which is (or inherets from) Role will have a manage_roleForm, and can be
accessed just like any other method, assuming adequate permissions.

Using an example I am more familiar with, if you have a DTML Document
index_html (which inherits from PropertyManager), you can call
index_html/manage_propertiesForm, which will render the file
'properties.dtml'.

This is one of those things that when I discovered it, I did the 'this is
so cool' dance.

-- 
Patrick Lewis
[EMAIL PROTECTED]

On Wed, Jul 12, 2000 at 01:30:13PM -0500, Daniel Rusch wrote:
 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 does Zope display this pages??
 
 I have found function calls such as:
 manage_roleForm=HTMLFile('roleEdit', globals()) which I believe creates
 an HTML document template from the named file. But, what is the
 mechanism that calls/displays mange_roleForm?
 
 Thanks in advance,
 
 DR

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




Re: [Zope] Aligning Images With Text

2000-07-12 Thread Gregory Haley

Terry Babbey wrote:
 
 Here is my code:
 dtml-if "_[ProgCode + 'PIC']"
 dtml-var "_[ProgCode + 'PIC']"
 /dtml-if
 
You might create a dtml variable with a dtml call, e.g.,

dtml-call "REQUEST.set('image1', _[ProgCode + 'PIC']"

Then use your image html tag as 

img src="dtml-var image1" align="right"

ciao!
greg.




 What I would like to do is align the picture to the right of my web
 page. If I was programming html I would do it like this: img
 src=T043PIC align=right
 
 Any help?
 Terry
 
 --
 __
 Terry Babbey
 Technical Support Specialist
 Lambton College, Sarnia, Ontario, Canada
 __
 
 ___
 Zope maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope
 **   No cross posts or HTML encoding!  **
 (Related lists -
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope-dev )

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




Re: [Zope] How to uninstall a product such as PTK or KnowledgeKit

2000-07-12 Thread R. David Murray

I'm not saying this will fix it, but did you try restarting Zope?

--RDM


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




Re: [Zope] Aligning Images With Text

2000-07-12 Thread Terry Babbey

I get an error message when I try your code.
Expression (Python) Syntax error:

unexpected EOF while parsing

, for tag dtml-call "REQUEST.set('image1', _[ProgCode + 'PIC']", on
line 32 of
display_html

Gregory Haley wrote:

 Terry Babbey wrote:
 
  Here is my code:
  dtml-if "_[ProgCode + 'PIC']"
  dtml-var "_[ProgCode + 'PIC']"
  /dtml-if
 
 You might create a dtml variable with a dtml call, e.g.,

 dtml-call "REQUEST.set('image1', _[ProgCode + 'PIC']"

 Then use your image html tag as

 img src="dtml-var image1" align="right"

 ciao!
 greg.

  What I would like to do is align the picture to the right of my web
  page. If I was programming html I would do it like this: img
  src=T043PIC align=right
 
  Any help?
  Terry
 
  --
  __
  Terry Babbey
  Technical Support Specialist
  Lambton College, Sarnia, Ontario, Canada
  __
 
  ___
  Zope maillist  -  [EMAIL PROTECTED]
  http://lists.zope.org/mailman/listinfo/zope
  **   No cross posts or HTML encoding!  **
  (Related lists -
   http://lists.zope.org/mailman/listinfo/zope-announce
   http://lists.zope.org/mailman/listinfo/zope-dev )

--
__
Terry Babbey
Technical Support Specialist
Lambton College, Sarnia, Ontario, Canada
__



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




Re: [Zope] .dtml files

2000-07-12 Thread R. David Murray

On Wed, 12 Jul 2000, Daniel Rusch wrote:
 I have found function calls such as:
 manage_roleForm=HTMLFile('roleEdit', globals()) which I believe creates
 an HTML document template from the named file. But, what is the
 mechanism that calls/displays mange_roleForm?

Actually, it creates a renderable DTML object, I think.  Which
might be saying the same thing.

What calls it is the Zope management framework.  Somewhere you
should find manage_roleForm getting assigned into a structure like
manage_options= or some such.

In short, magic grin.

--RDM


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




Re: [Zope] How to uninstall a product such as PTK or KnowledgeKit

2000-07-12 Thread Meeting Maker Webmaster

Hello,

At 19:49 12.07.2000 +, R. David Murray wrote:
I'm not saying this will fix it, but did you try restarting Zope?

Yes I did. Sorry I forgot to mention it ;-)

Best regards,

Gérard Métrailler Jr.

Meeting Maker Inc.
... the intelligent choice for collaborative scheduling

Email: [EMAIL PROTECTED]
Web: http://www.meetingmaker.com


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




Re: [Zope] Aligning Images With Text

2000-07-12 Thread R. David Murray

On Wed, 12 Jul 2000, Terry Babbey wrote:
 Here is my code:
 dtml-if "_[ProgCode + 'PIC']"
 dtml-var "_[ProgCode + 'PIC']"
 /dtml-if
 
 What I would like to do is align the picture to the right of my web
 page. If I was programming html I would do it like this: img
 src=T043PIC align=right

Untested, but I copied most of it from a working method:

dtml-var "_.getitem('ProdCode' + 'PIC',0).tag(align='right')"

--RDM


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




Re: [Zope] Aligning Images With Text

2000-07-12 Thread Terry Babbey

This worked.
Now if only I could get my dtml-if statement working.
Thanks,
Terry

"R. David Murray" wrote:

 On Wed, 12 Jul 2000, Terry Babbey wrote:
  Here is my code:
  dtml-if "_[ProgCode + 'PIC']"
  dtml-var "_[ProgCode + 'PIC']"
  /dtml-if
 
  What I would like to do is align the picture to the right of my web
  page. If I was programming html I would do it like this: img
  src=T043PIC align=right

 Untested, but I copied most of it from a working method:

 dtml-var "_.getitem('ProdCode' + 'PIC',0).tag(align='right')"

 --RDM

--
__
Terry Babbey
Technical Support Specialist
Lambton College, Sarnia, Ontario, Canada
__



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




Re: [Zope] Aligning Images With Text

2000-07-12 Thread Peter Be

I posted a similar question, but unfortunatly no response on that one.
I haven't done it yet, but I guess you could simply change the Image product
so that it can handle another parameter.
If you use .tag you can only control ALT, HEIGHT, WIDTH and BORDER
Look for these things in the Image module and see if you can add ALIGN.

Good luck. Please keep us posted if any success. :)
- Original Message -
From: Terry Babbey [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, July 12, 2000 8:24 PM
Subject: [Zope] Aligning Images With Text


 Here is my code:
 dtml-if "_[ProgCode + 'PIC']"
 dtml-var "_[ProgCode + 'PIC']"
 /dtml-if

 What I would like to do is align the picture to the right of my web
 page. If I was programming html I would do it like this: img
 src=T043PIC align=right

 Any help?
 Terry

 --
 __
 Terry Babbey
 Technical Support Specialist
 Lambton College, Sarnia, Ontario, Canada
 __



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



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




[Zope] Squid and SSL

2000-07-12 Thread Ragnar Beer

Howdy!

Has anybody already successfully tried squid-2.4-DEVEL2 with the SSL 
patch from squid.sourceforge.net to make Squid an SSL-frontend for 
Zope?

browser --https- squid --http- zserver
  internet localhost

--Ragnar

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




re: [Zope] .dtml files

2000-07-12 Thread Steve Alexander


Daniel wrote:
 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 does Zope display this pages??

The pages are usually accessed as attributes Python objects. They are
wrapped in a HTMLFile instance.

(Line numbers refer to latest Zope 2.2b4).

For example, see line 191 of lib/python/OFS/DTMLMethod.py:

  manage_editForm=HTMLFile('documentEdit', globals())

See the source in lib/python/DocumentTemplate/DT_HTML.py for details.
The documents are read lazily.

class HTMLFile(FileMixin, HTML):
"""\
HTML Document templates read from files.

If the object is pickled, the file name, rather
than the file contents is pickled.  When the object is
unpickled, then the file will be re-read to obtain the string.
Note that the file will not be read until the document
template is used the first time.
"""
--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net

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




Re: [Zope] Aligning Images With Text

2000-07-12 Thread Loren Stafford

Image objects have a tag method for setting all the HTML tags:

Try something like (untested):

dtml-var "yourimageID.tag(align='right')"

... or tested (from one of my sites):

dtml-var "ClearDot.tag(width='25')"

-- HTH
-- Loren

- Original Message - 
From: "Terry Babbey" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: July 12, 2000 12:24 PM
Subject: [Zope] Aligning Images With Text


 Here is my code:
 dtml-if "_[ProgCode + 'PIC']"
 dtml-var "_[ProgCode + 'PIC']"
 /dtml-if
 
 What I would like to do is align the picture to the right of my web
 page. If I was programming html I would do it like this: img
 src=T043PIC align=right
 
 Any help?
 Terry
 
 --
 __
 Terry Babbey
 Technical Support Specialist
 Lambton College, Sarnia, Ontario, Canada
 __
 
 
 
 ___
 Zope maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope
 **   No cross posts or HTML encoding!  **
 (Related lists - 
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope-dev )
 
 


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




Re: [Zope] Aligning Images With Text

2000-07-12 Thread R. David Murray

On Wed, 12 Jul 2000, Terry Babbey wrote:
 Now if only I could get my dtml-if statement working.
   dtml-if "_[ProgCode + 'PIC']"

I believe this should work (mostly tested):

dtml-if "_.has_key(ProgCode + 'PIC')"

Note that this will be true if the id exists anywhere in the
acquisition path.

--RDM


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




Re: [Zope] Aligning Images With Text

2000-07-12 Thread R. David Murray

On Wed, 12 Jul 2000, Peter Be wrote:
 If you use .tag you can only control ALT, HEIGHT, WIDTH and BORDER
 Look for these things in the Image module and see if you can add ALIGN.

As far as I can see from the source, tag should handle arbitrary
arguments.  The comments certainly say that it does.  This is
as of 2.1.4, at least.

--RDM


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




  1   2   >