[Zope-dev] Re: SessionManager, BerkeleyDB, and license compatability

2000-10-13 Thread Stefane Fermigier

On Thu, Oct 12, 2000 at 12:00:07PM -0700, [EMAIL PROTECTED] wrote:
 From: Toby Dickenson [EMAIL PROTECTED]
 To: [EMAIL PROTECTED], [EMAIL PROTECTED]
 Cc: James Wilson  [EMAIL PROTECTED]
 Subject: [Zope-dev] SessionManager, BerkeleyDB, and license compatability
 Date: Thu, 12 Oct 2000 15:04:28 +0100
 Reply-To: [EMAIL PROTECTED]
 
 I understand from the SessionTracking wiki that this product may use
 BerkeleyDB
 
 http://www.zope.org/Wikis/DevSite/Projects/CoreSessionTracking/CurrentStatus
 
 The BerkeleyDB license at http://www.sleepycat.com/licensing.html
 indicates that it may only be distributed free of charge with software
 that is 'freely available and redistributable by others'.
 
 We are currently using Zope to develop an application that does not
 fall into this category. It would be a serious problem for us if
 Zope's core had a dependency on code with this type of license.

If I remember correctly some information I got on the Python newsgroups
long time ago, the Sleepycat people only care that Python, which is linked
to BerkeleyDB, is free. The free/commercial status of the application you will 
write in Python (including Zope and third party products) is not relevant to
them.

S.

-- 
Stéfane Fermigier, Tel: 06 63 04 12 77 (mobile).
www.portalux.com: le portail Linux / logiciel libre.
"Amazon: we patent the dot in .com"

___
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] Xron fragility

2000-10-13 Thread Toby Dickenson

Yes, using Client.py was the easiest way to do that. The biggest problem
with Client.py is its dependency on HTTP. If your server is set up to
only accept HTTPS, then you can't use Xron -- not a desirable trade-off.

If security is the problem, you could configure the HTTP part to
listen only on a loopback interface. (yes, this is supported on NT and
windows 95 too)

We need another mechanism that achieves the same goal -- simulating the
environment of a request -- without going all the way back to the
socket.

I always thought the use of Client was very elegent. The performance
hit is negligible, and all the plausible alternatives need many more
lines of code.

Another advantage is that it promotes testability of the scheduled
events since it is easy (trivial) to reproduce the environment in
which they run when scheduled.

Toby Dickenson
[EMAIL PROTECTED]

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




[Zope-dev] More almost __call__ ;-)

2000-10-13 Thread Chris Withers

Jim Fulton wrote:
snip __call__ stuff

Okay, this is almost the same, but apparently not the same.

I have a Python Product Class, with a method, a_method, that gets called
from some of the Python Product's management screens (encapsulation is
good ;-)

This method needs several parameters from the namespace, so when it's
called I was hoping I wouldn't have to do something nasty and clunky
like:

dtml-var "a_method(param1,param2,param3)"

Given my recently acquired __call__ Zen, I thought 'No problem...' and
tried to define the method as follows:

isDocTemplate = 1

def a_method(self, ignored=None, md=None):

...with the hope I'd just be able to do dtml-var a_method and pluck
the stuff from md.

No dice.

md and ignored turn up as None from all the dtml-var a_method calls.
:-(

What am I doing wrong? How can I get access to the namespace in a method
of a class like this?

cheers,

Chris

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




Re: [Zope-dev] More almost __call__ ;-)

2000-10-13 Thread Toby Dickenson

On Fri, 13 Oct 2000 11:48:39 +0100, Chris Withers [EMAIL PROTECTED]
wrote:

I have a Python Product Class, with a method, a_method, that gets called
from some of the Python Product's management screens (encapsulation is
good ;-)

This method needs several parameters from the namespace, so when it's
called I was hoping I wouldn't have to do something nasty and clunky
like:

dtml-var "a_method(param1,param2,param3)"

Given my recently acquired __call__ Zen, I thought 'No problem...' and
tried to define the method as follows:

isDocTemplate = 1

def a_method(self, ignored=None, md=None):

...with the hope I'd just be able to do dtml-var a_method and pluck
the stuff from md.

No dice.

md and ignored turn up as None from all the dtml-var a_method calls.
:-(

What am I doing wrong? How can I get access to the namespace in a method
of a class like this?

You need to have the isDocTemplate=1 as an attribute of the method
object itself, not the class that contains the method.

You also need some extra voodoo if you want to call the method
directly from ZPublisher (by including the method name in a url). Here
a link to a wrapper that does it all

http://www.zope.org/Members/htrd/howto/FunctionTemplate

you would use

def a_method(self,md):
do_stuff_with(md['param1'],md['param2'])
a_method = FunctionTemplate(a_method)




Toby Dickenson
[EMAIL PROTECTED]

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




Re: [Zope-dev] More almost __call__ ;-)

2000-10-13 Thread Chris Withers

Toby Dickenson wrote:
 http://www.zope.org/Members/htrd/howto/FunctionTemplate
 
 you would use
 
 def a_method(self,md):
 do_stuff_with(md['param1'],md['param2'])
 a_method = FunctionTemplate(a_method)

That looks like it'll do the trick... I wonder if there's any way you
can role it up into a Product so that I don't need to have
FunctionTemplate.py in each folder of a product that needs to use it?

cheers,

Chris

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




RE: [Zope-dev] More almost __call__ ;-)

2000-10-13 Thread Toby Dickenson

 That looks like it'll do the trick... I wonder if there's any way you
 can role it up into a Product so that I don't need to have
 FunctionTemplate.py in each folder of a product that needs to use it?

Im working on a set of tools to aid my transition to a dtml-free Zope.
Eventually I will package them all as a whole.

___
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] More almost __call__ ;-)

2000-10-13 Thread Chris Withers

Toby Dickenson wrote:
 
  That looks like it'll do the trick... I wonder if there's any way you
  can role it up into a Product so that I don't need to have
  FunctionTemplate.py in each folder of a product that needs to use it?
 
 Im working on a set of tools to aid my transition to a dtml-free Zope.
 Eventually I will package them all as a whole.

cartman voice

swt

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] More almost __call__ ;-)

2000-10-13 Thread Chris Withers

Toby Dickenson wrote:
 http://www.zope.org/Members/htrd/howto/FunctionTemplate
 
 you would use
 
 def a_method(self,md):
 do_stuff_with(md['param1'],md['param2'])
 a_method = FunctionTemplate(a_method)

Okay, spoke too soon... when I do the above and then call the method
with:

dtml-var a_method

I get:

Error type: exceptions.AttributeError
Error value: __len__ 

Traceback (innermost last):
  File E:\Zope\2271B4~1.2\lib\python\ZPublisher\Publish.py, line 222, in
publish_module
  File E:\Zope\2271B4~1.2\lib\python\ZPublisher\Publish.py, line 187, in
publish
  File E:\Zope\2271B4~1.2\lib\python\Zope\__init__.py, line 221, in
zpublisher_exception_hook
(Object: testdefiner)
  File E:\Zope\2271B4~1.2\lib\python\ZPublisher\Publish.py, line 171, in
publish
  File E:\Zope\2271B4~1.2\lib\python\ZPublisher\mapply.py, line 160, in
mapply
(Object: index_html)
  File E:\Zope\2271B4~1.2\lib\python\ZPublisher\Publish.py, line 112, in
call_object
(Object: index_html)
  File E:\Zope\2271B4~1.2\lib\python\App\special_dtml.py, line 120, in
__call__
(Object: index_html)
(Info: E:\Zope\2.2.2\lib\python\Products\A_product\Form.dtml)
  File E:\Zope\2.2.1\lib\python\Products\ZDebug\DTMLLocator.py, line
103, in __call__
(Object: index_html)
  File E:\Zope\2271B4~1.2\lib\python\DocumentTemplate\DT_String.py, line
528, in __call__
(Object: index_html)
  File E:\Zope\2.2.1\lib\python\Products\ZDebug\DTMLDebug.py, line 288,
in debug_render_blocks
  File E:\Zope\2.2.1\lib\python\Products\ZDebug\DTMLDebug.py, line 286,
in debug_render_blocks
  File E:\Zope\2271B4~1.2\lib\python\DocumentTemplate\DT_In.py, line
691, in renderwob
(Object: _.range(1,11))
  File E:\Zope\2.2.1\lib\python\Products\ZDebug\DTMLDebug.py, line 288,
in debug_render_blocks
  File E:\Zope\2.2.1\lib\python\Products\ZDebug\DTMLDebug.py, line 286,
in debug_render_blocks
  File E:\Zope\2271B4~1.2\lib\python\DocumentTemplate\DT_Let.py, line
147, in render
(Object: row=sequence-item)
  File E:\Zope\2.2.1\lib\python\Products\ZDebug\DTMLDebug.py, line 242,
in debug_render_blocks
  File E:\Zope\2.2.1\lib\python\Products\ZDebug\DTMLDebug.py, line 221,
in debugException
  File E:\Zope\2.2.1\lib\python\Products\ZDebug\DTMLDebug.py, line 239,
in debug_render_blocks
  File E:\Zope\2.2.2\lib\python\Products\A_product\FunctionTemplate.py,
line 38, in __call__
AttributeError: (see above)

What's going on?

cheers,

Chris

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




Re: [Zope-dev] More almost __call__ ;-)

2000-10-13 Thread Chris Withers

Jim Fulton wrote:

 In any case, if you *just* want to get your function to be
 called from DTML (and your class is an extension class), you can give
 it the isDocTemp attribute like so:
 
   class MyClass( include some extension class ...):
 
 some_methodisDocTemp=1
 def some_method(self, ignored, md):

great :-) that did the trick, thanks...

I can't help but feel this woudl all be so much simpler if it was
documented somewhere for idiots like me :-S

cheers,

Chris

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




Re: [Zope-dev] More almost __call__ ;-)

2000-10-13 Thread Shane Hathaway

Jim Fulton wrote:
 
 Chris Withers wrote:
 
  Toby Dickenson wrote:
   http://www.zope.org/Members/htrd/howto/FunctionTemplate
  
   you would use
  
   def a_method(self,md):
   do_stuff_with(md['param1'],md['param2'])
   a_method = FunctionTemplate(a_method)
 
  That looks like it'll do the trick... I wonder if there's any way you
  can role it up into a Product so that I don't need to have
  FunctionTemplate.py in each folder of a product that needs to use it?
 
 Is it *really* the case that you often want to method to be called directly
 via the Web *and* and from DTML?  This doesn't seem right to me.

As I understand it, that's not the issue.  Chris wants to receive the
DTML namespace implicitly.

 In any case, if you *just* want to get your function to be
 called from DTML (and your class is an extension class), you can give
 it the isDocTemp attribute like so:
 
   class MyClass( include some extension class ...):
 
 some_methodisDocTemp=1
 def some_method(trueself, self, REQUEST, RESPONSE=None):
 

That's a good idea, I wish I'd thought of it. :-)

However, the new calling convention (__render_with_namespace__, or
something like that) might break "isDocTemp" code.

 Note that if you get called from the web, RESPONSE will
 not be none. This is a handy way to decide if you
 are called from the web or as a sub-template. Of course,
 someone could pass a non-None RESPONSE argument directly.

This convention is helpful but not at all documented, so products (ZWiki
is a good example) often break this convention.

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] Thanks for the comments

2000-10-13 Thread Josh Zeidner


  WROX contacted me a while back saying they wanted to do a Zope book as 
well.  Does anyone know anything about this?

  -josh



Just thought we'd mention that we have gotten lots of great comments on
the Zope book so far, especially in the last week or so.  You're all
helping make it a better book and ensuring Zope's future.  if you've
felt in the past that you may not be technically proficient enough to
contribute to the technology of Zope, you can certainly contribute to
the documentation by catching our mistakes and making good observations
and asking good questions. It is really, really helping.  Keep it up,
cuz we're not done yet!

Thanks,

Michel and Amos

___
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 )


_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at 
http://profiles.msn.com.


___
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] More almost __call__ ;-)

2000-10-13 Thread Jim Fulton

Shane Hathaway wrote:
 
 Jim Fulton wrote:
 
  Chris Withers wrote:
  
   Toby Dickenson wrote:
http://www.zope.org/Members/htrd/howto/FunctionTemplate
   
you would use
   
def a_method(self,md):
do_stuff_with(md['param1'],md['param2'])
a_method = FunctionTemplate(a_method)
  
   That looks like it'll do the trick... I wonder if there's any way you
   can role it up into a Product so that I don't need to have
   FunctionTemplate.py in each folder of a product that needs to use it?
 
  Is it *really* the case that you often want to method to be called directly
  via the Web *and* and from DTML?  This doesn't seem right to me.
 
 As I understand it, that's not the issue.  Chris wants to receive the
 DTML namespace implicitly.
 
  In any case, if you *just* want to get your function to be
  called from DTML (and your class is an extension class), you can give
  it the isDocTemp attribute like so:
 
class MyClass( include some extension class ...):
 
  some_methodisDocTemp=1
  def some_method(trueself, self, REQUEST, RESPONSE=None):
  
 
 That's a good idea, I wish I'd thought of it. :-)
 
 However, the new calling convention (__render_with_namespace__, or
 something like that) might break "isDocTemp" code.

I thought of that, but I don't think so. There are obviously 
enough people using the isDocTemp thing that we'll probably need to
keep supporting it.  The use of a separate render method won't be
convenient for iplementing simple methods. Not that that is necessarily
that critical.

  Note that if you get called from the web, RESPONSE will
  not be none. This is a handy way to decide if you
  are called from the web or as a sub-template. Of course,
  someone could pass a non-None RESPONSE argument directly.
 
 This convention is helpful but not at all documented, so products (ZWiki
 is a good example) often break this convention.

Which convention? The passing of arguments with names meaningful to
the publisher is certainly well documented.

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] Wrox Book

2000-10-13 Thread Brad Clements

On 13 Oct 2000, at 15:59, Chris Withers wrote:

 Josh Zeidner wrote:
  
WROX contacted me a while back saying they wanted to do a Zope book as
  well.  Does anyone know anything about this?
  
-josh
 
 Yeah, that project has just been pulled, I think ;-)

Pulled as in cancelled?

-Brad

p.s.  Anyone see my chapter on Embedding/Extending Python in the 
Wrox Professional Linux Programming book? looking for feedback 
(kudos, hatemail, etc)




Brad Clements,[EMAIL PROTECTED]   (315)268-1000
http://www.murkworks.com  (315)268-9812 Fax
netmeeting: ils://ils.murkworks.com   AOL-IM: BKClements

___
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] More almost __call__ ;-)

2000-10-13 Thread Shane Hathaway

Jim Fulton wrote:
 The fact that ZPublisher will pass it is documented.  Whether
 or not something else calls it is up to the something else.
 The method designer specified an interface that includes RESPONSE.
 If it requires RESPONSE, by not specifying a default, then it
 requires the clients to oass it. If the clients don't, then they
 are not satisfying the interface.  Are you saying that objects
 that require that RESPONSE is passed are broken because they don't
 sufficiently advertise the fact?

I'm saying that there are some methods which expect the RESPONSE to be
passed only when called by ZPublisher.  They expect RESPONSE to be
"None" when called as a subtemplate or otherwise.  The only problem is
that this convention is not enforced.

But we've strayed... :-)

Shane

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




[Zope-dev] WriteLocking Proposal Revisited. Again.

2000-10-13 Thread Jeffrey P Shell

WriteLocking http://dev.zope.org/Wikis/DevSite/Proposals/WriteLocking

Revisited and rewritten again after some internal discussions and a decision
to ensure that the proposed Write Locking for WebDAV behaves in a matter
that the clients (particularly the more popular ones) expect.  There's less
architectural discussion in this revision of the proposal, intentionally.

--jeffrey


___
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: FW: [Support] [ZOPE Collector] Zope Bug entry: Ghost ZClasses

2000-10-13 Thread Shane Hathaway

Brian Lloyd wrote:
  A new bug entry was added with the following information:
 
  Title:  Ghost ZClasses
 
  At: http://classic.zope.org:8080/Collector/1676/sview
 
  Submitter:  lalo
 
  Email:  [EMAIL PROTECTED]
 
  Description:  Some ZClasses in a ZODB migrated from 2.1.6 did not
  handle the migration well. Their instances were reported as
  broken, till I removed the Product, when the instances started
  working (but with no icon, factory or constructor).

I would have to guess that the cause may be a product that was supplying
a base class wasn't installed.

  I tried flushing the cache, packing the database and restarting
  Zope, to no avail. Then I found there was a global registry for
  ZClasses; looks like somehow, when the classes were deleted, they
  didn't _unregister().
 
  I finally tired of not being able to create banners and manually
  removed the classes (via Python) from root()['ZGlobals']. Not
  that this is a fix, but it's something other people with the same
  problem can do if they're brave (insane?) enough.

This is actually expected behavior: if the ZClass itself is broken, Zope
can't even figure out what class ID it was supplying.  ZClasses break
when the base classes disappear.  At that point, there's no way to
unregister from ZGlobals.

This is a Hard Problem.  At the moment the only way I see fixing it is a
big change to ZClasses.

Shane

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




[Zope-dev] Programatically trying to create recursive folders

2000-10-13 Thread Jason Spisak

Zopists,

In orderto get around the confliting writes issues I am experiencing, I
would like to create
recrusive folders like, /0/1, /0/2, etc., so that my objects will be in
many different folders.
I am trying to get DTML to create these pre-set drop folders
automatically, but am unable to do so.

The following code throws an id already in use error, because the 'with'
tag is not letting the newly
created object's namespace be used for the creation of the second
folder.

dtml-in expr="_.range(0, 2)"
 dtml-with "manage_addFolder(_.str(_['sequence-item']),
_.str(_['sequence-item']))"
  dtml-in expr="_.range(0, 2)"
   dtml-call "manage_addFolder(_.str(_['sequence-item']),
_.str(_['sequence-item']))"
  /dtml-in
 /dtml-with
/dtml-in

Any ideas?

All my best,

Jason Spisak
[EMAIL PROTECTED]

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




[Zope] OT: maybe - max file, proc limits on linux and zope

2000-10-13 Thread Bak @ kedai

hi all,
this may be off topic, feel free to ignore.

while trying to stop zope i encountered error stating max file limit met.  
what i did to stop this is running
echo "8192" /proc/sys/fs/file-max

can i do this?  good bad?   any tips on tuning max file open, process open, 
etc?

linux and zope newbie --that's me.

tia

-- 

http://www.kedai.com.my/kk 
http://www.kedai.com.my/eZine 

Get the tables!


___
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 nominated for Webtechniques Web Tools Awards

2000-10-13 Thread Martijn Pieters

Zope has been nominated for the Webtechniques Webtool Awards, and the
pollboxes are open!

Go vote by putting you email address (or any email address you like ;)) at
the end of the following URL:

  http://www.webreview2.com/cgi-bin/poll/ballot_gen.pl?[EMAIL PROTECTED]

So, I voted at the URL ending in ballot_gen.pl?[EMAIL PROTECTED] Every
email address can vote once.

Go give Zope a great showing!

-- 
Martijn Pieters
| Software Engineer  mailto:[EMAIL PROTECTED]
| Digital Creations  http://www.digicool.com/
| Creators of Zope   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 )




RE: [Zope] Access Control vs Publishing Protoco

2000-10-13 Thread Seb Bacon

Oh dear, I fear that this is going round and round and round in circles a
bit, and that no-one else is following it, but here goes anyway :

 The "traversable" permission would be an additional requirement
 to view any object. Its main purpose would be to distinguish
 between "use via Web" and "use in DTML only".
 "standard_html_*" would be usable in DTML but could not be viewed
 via the web. They would not give "traversable" permission to
 Anonymous.
 Many DTML objects, however, would need to give the "traversable"
 permission even to Anonymous in order to be useful.

OK, I think we're talking about the same thing now...but could you give me
an example of any object that would need to be traversable by Anonymous?
index_html, for example,  doesn't need to be traversable (I still prefer
'listable').  Viewable TTW, yes, but that's all.

seb.


___
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-if and dtml-var question

2000-10-13 Thread Paul Zwarts

Hi there,

I've been having problems with DateTimes as well. My colleague and I (using Zope
201) found a problem with the module that causes any dbase timestamp to be rendered
to a non-standard UNIX time that has an annoying DST appended if in the Daylight
savings time zone, thus leaving the timestamp as useless when performing expressions
against it.

In our situation we used a scan from pos 0-29 to trap the proper timestamp syntax.
Then from there, I use an expression as follows:

   dtml-elif "list=='LI3'"
  dtml-call "REQUEST.set('timenow', (_.DateTime() - 30).Date())"
  dtml-in getMailLIC
 dtml-call "REQUEST.set('timethen',
_.DateTime(transaction_date[0:27]).Date())"
 dtml-if "timethen==timenow"
dtml-var buildMailList
 /dtml-if
  /dtml-in
   /dtml-if

This is just a small part of the code, and im sure there is a better way, but  hey,
it works.

Dont know if this helps you, but perhaps will give you an idea

Cheers,

--
Paz
Oratrix Development BV
http://www.oratrix.com
GRiNS SMIL Editor
-



___
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] Non-existing Zope-Security!!!

2000-10-13 Thread Stephan Goeldi

OK let me state that I don't think so (subject line). I had to choose this 
subject, because it seems to me, that nobody was interested in my previous 
attempts to get information about my problem. So here is my newbie (?) 
question again:

I have the folders:

/www/folder1
/www/folder2

Apache redirects domain1 to folder1 and domain2 to folder2.
The manager of folder1 is able to browse to /www and see what folders exist 
there. He shouldn't, because he only exists in the acl_user of /www/folder1. 
He even can look into the folder /www/folder2 (but not into the objects).

Is it possible to disable the access for the folder1-manager above folder1? 
It doesn't seem to me. If it really isn't possible, there is no security at 
all for ISP uses of Zope. But I'm sure, there should be a possibility.

I even created a local role in /www/folder1 too. Even with the local role I 
can browse /www and /www/folder2!

Any suggestions?

TIA
-goe-

_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at 
http://profiles.msn.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 Acquisition NameSpace Help Needed.....

2000-10-13 Thread J Kinsley

I am building a framed site using Zope and I am trying to get
functionality that after hours of reading documentation I am
beginning to think is not possible, but since what I have read is so
obscure I have decided to post a message before giving up.

The code examples below *DO NOT* work, but are being used in an
attempt to illustrate what I am attempting to do as I thought it
would work.  After reading documentation for the last several hours I
am now more confused then when I started.

Given the following URL's:

http://./Files/?dir=/foo/bar/file=baz.html
http://./?section=/Filesdir=/foo/bar/file=baz.html

And the Following 


/index_html - DTML Method

dtml-var FrameSet



/FrameSet - DTML Method

XXX - How can I negate this?  IE. dtml-if "not section"
dtml-if section 
dtml-else
dtml-call "REQUEST.set('section', '/ViewFrame')"
/dtml-if section

XXX - I do not think calling REQUEST.set() is the best way to
accomplish this.  What is a better way?
dtml-call "REQUEST.set('topframe', '1')"

frameset rows="60,75,*"
 frame name="title_frame" src="dtml-absolute_url;/TitleFrame"
 frame name="banner_frame" src="dtml-absolute_url;/BannerFrame"
 frame name="view_frame" src="dtml-absolute_url;dtml-section;"
/frameset




/ViewFrame - DTML Method

frameset rows="60,75,*"
 frame name="menu_frame" src="dtml-absolute_url;/MenuFrame"
 frame name="main_frame" src="dtml-absolute_url;/MainFrame"
/frameset




XXX - I can not get this to work at all.  Topframe should be set or
true if the visitor arrived in the /Files Folder from the top level
frameset and /Files/ViewFrame will be loaded into the view_frame
target.  If the visitor came directly to /Files and topframe is unset
or false, then I want to redirect them back to the toplevel /FrameSet
to load the top frames then display the /Files/ViewFrame in the
view_frame target and pass along dir and file from the URL query
string.

/Files/Index - DTML Method

dtml-if topframe
dtml-var ViewFrame
dtml-else
dtml-var "FrameSet(section=/Files)"
/dtml-if topframe




XXX - If this method is called from the top level FrameSet method,
how to I access dir and file from the original request?

/Files/ViewFrame - DTML Method

frameset rows="60,75,*"
 frame name="menu_frame" src="dtml-absolute_url;/MenuFrame?dir=dtml-dir;"
 frame name="main_frame" 
src="dtml-absolute_url;/MainFrame?dir=dtml-dir;file=dtml-file;"
 frame name="navbar_frame" src="dtml-absolute_url;/NavBarFrame?dir=dtml-dir;"
/frameset



Over the last few days I have tried all sorts of things to make this
work, but all attempts have failed.  I am sure there is a very simple
solution that one of you Zope Gurus could quickly explain.  If you
are going to respond with RTFM, the please cite specific references
in the manual. ;-)

Thanks in advance.

Regards,
Jarrod Kinsley




___
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] Non-existing Zope-Security!!!

2000-10-13 Thread Tim Cook

Stephan Goeldi wrote:
 
 OK let me state that I don't think so (subject line). I had to choose this
 subject, because it seems to me, that nobody was interested in my previous
 attempts to get information about my problem. So here is my newbie (?)
 question again:
 
 I have the folders:
 
 /www/folder1
 /www/folder2
 
 Apache redirects domain1 to folder1 and domain2 to folder2.
 The manager of folder1 is able to browse to /www and see what folders exist
 there. He shouldn't, because he only exists in the acl_user of /www/folder1.
 He even can look into the folder /www/folder2 (but not into the objects).
 
 Is it possible to disable the access for the folder1-manager above folder1?
 It doesn't seem to me. If it really isn't possible, there is no security at
 all for ISP uses of Zope. But I'm sure, there should be a possibility.
 
 I even created a local role in /www/folder1 too. Even with the local role I
 can browse /www and /www/folder2!
 
 Any suggestions?

Create the user in the top level folder that they are allowed to
see. 
Not in the /www folder

HTH,
-- Tim Cook --
Cook Information Systems | Office: (901) 884-4126 8am-5pm CDT
Free Practice Management 
Project Coordinator http://www.freepm.org
OSHCA Founding Supporter http://www.oshca.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] Converting PHP3 - Zope

2000-10-13 Thread Mario Olimpio de Menezes


Hi,

I'm planning to convert (migrate) a entire site from php3 to
zope and i'm looking for suggestions, hints, etc on this.
It's a GPL management school system done in php3+postgresql, and
any user must be authenticated against a database and his privileges
are those from the postgresql. The system is in portuguese
(www.univates.br/sagu) if someone is interested.
Does somebody have experience in such kind of migration
(conversion) and can give me some "in advance" advice to avoid this or
that or don't do this, etc, etc?
Any comments?

[]s,
Mario O.de Menezes"Many are the plans in a man's heart, but
IPEN-CNEN/SP is the Lord's purpose that prevails"
http://curiango.ipen.br/~mario Prov. 19.21
   http://www.revistalinux.com.br


___
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] Fw: mysqldb

2000-10-13 Thread Dale Lance

Hi,
I am trying to build ZMySQLDA 1.20
mysql has been built successfully on RedHat 7.0 and resides in
/usr/local/mysql
I have followed the instructions for editing /etc/ld/so/conf adding
/usr/local/mysql/lib/mysql
/usr/local/mysql/lib
/usr/local/mysql
to it. (just tomake sure)
yet I still get the following error
anyone know where mysqlclient is supposed to be?

Dale


 gcc -shared  _mysqlmodule.o  -L/usr/local/mysql/lib -lmysqlclient -o
 _mysqlmodule.so
 /usr/bin/ld: cannot find -lmysqlclient
 collect2: ld returned 1 exit status
 make: *** [_mysqlmodule.so] Error 1
 Traceback (innermost last):
   File "build.py", line 14, in ?
 import MySQLdb
   File "MySQLdb.py", line 19, in ?
 from _mysql import *
 ImportError: No module named _mysql





___
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] Fw: mysqldb

2000-10-13 Thread jensebaer


- Original Message -
From: "jensebaer" [EMAIL PROTECTED]
To: "Dale Lance" [EMAIL PROTECTED]
Sent: Friday, October 13, 2000 2:43 PM
Subject: Re: [Zope] Fw: mysqldb


 Hi Dale,

 put this in your setup or/and setup.in file under
 ../lib/python/Products/ZMySQLDA/MySQLdb-0.1.2/

 *shared*
 # Only one line should be uncommented.
 # Adjust -L and -I as necessary for your local configuration.
 # If you have dynamic MySQL libraries, they will need to be on your
 # LD_LIBRARY_PATH at runtime.
 _mysql _mysqlmodule.c -L/usr/lib/mysql -I/usr/include/mysql -lmysqlclient
 # Uncomment for Windows
 #_mysql
 _mysqlmodule.c -L/mysql/lib/opt -I/mysql/include -lmysqlclient -lwsock32


 or may _mysql

_mysqlmodule.c -L/usr/local/lib/mysql -I/usr/local/include/mysql -lmysqlclie
 nt

 Jens

 - Original Message -
 From: "Dale Lance" [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, October 13, 2000 1:59 PM
 Subject: [Zope] Fw: mysqldb


  Hi,
  I am trying to build ZMySQLDA 1.20
  mysql has been built successfully on RedHat 7.0 and resides in
  /usr/local/mysql
  I have followed the instructions for editing /etc/ld/so/conf adding
  /usr/local/mysql/lib/mysql
  /usr/local/mysql/lib
  /usr/local/mysql
  to it. (just tomake sure)
  yet I still get the following error
  anyone know where mysqlclient is supposed to be?
 
  Dale
 
 
   gcc -shared  _mysqlmodule.o  -L/usr/local/mysql/lib -lmysqlclient -o
   _mysqlmodule.so
   /usr/bin/ld: cannot find -lmysqlclient
   collect2: ld returned 1 exit status
   make: *** [_mysqlmodule.so] Error 1
   Traceback (innermost last):
 File "build.py", line 14, in ?
   import MySQLdb
 File "MySQLdb.py", line 19, in ?
   from _mysql import *
   ImportError: No module named _mysql
  
  
 
 
 
  ___
  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] Fw: mysqldb

2000-10-13 Thread Oleg Broytmann

On Fri, 13 Oct 2000, Dale Lance wrote:
 anyone know where mysqlclient is supposed to be?
 
  gcc -shared  _mysqlmodule.o  -L/usr/local/mysql/lib -lmysqlclient -o
  _mysqlmodule.so
  /usr/bin/ld: cannot find -lmysqlclient

   It supposed to be in the /usr/local/mysql/lib/libmysqlclient.so. Check
to see it's there. It is usually symlink to libmysqlclient.so.6.23.13 or
such. If it is not - find it on your system and put the directory to -L
flag, e.g

gcc -shared _mysqlmodule.o -L/usr/local/lib/mysql -lmysqlclient -o _mysqlmodule.so

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 )




Re: [Zope] Non-existing Zope-Security!!!

2000-10-13 Thread Joachim Werner

 Create the user in the top level folder that they are allowed to
 see. 
 Not in the /www folder

That alone wouldn't do it if we are talking about "seeing the objects", e.g. by
calling the "objectIds" method in the root folder. You also have to switch off
the root folder's "Access contents information" rights for Anonymous and the
sub-tree managers. I think Zope security is really a bit weak here because the
standard settings are NOT blocking "Access contents information" and blocking
it makes programming a bit harder ...

BUT: You CAN configure it correctly if you want to.

Joachim

-- 
Iuveno - Smart Communication


Joachim Werner


_

Marie-Curie-Straße 6
85055 Ingolstadt

Tel.: +49 841/90 14-325 (Fax -322)
Mobil: +49 179/39 60 327
E-Mail: [EMAIL PROTECTED][EMAIL PROTECTED]
WWW: www.iuveno.de/www.iuveno-net.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] How to see if two objects are the same (minor fix)

2000-10-13 Thread Tres Seaver

Ron Bickers [EMAIL PROTECTED] wrote:
 
  From my previous post, it looked like the parent was changing.  I had
 the first two lines swapped.  Fixed below.
 
 
 
 I want to see if an object is the one aqcuired from the root, but I'm
 hitting walls.
 
   dtml-var "PARENTS[-1].myObject"
   dtml-var "myObject"
   dtml-var "PARENTS[-1].myObject is myObject"
 
 This returns the following when in the root folder context:
 
   TinyTable instance at 8684ad8
   TinyTable instance at 8684ad8
   0
 
 It returns the following in a folder where there is another myObject:
 
   TinyTable instance at 8684ad8
   TinyTable instance at 86709f8
   0
 
 What am I missing in the comparison?

You are seeing the result of a (mis)feature of acquisition:  the
objects you are comparing are actually AcquisitionImplicitWrappers
around the real 'myObject';  because the two wrappers are different,
and because the underlying object doesn't define a custom '__cmp__()'
method, the two wrappers are compared for identity (which is bogus).

I recently fixed this in response to a Collector issue:

 http://classic.zope.org:8080/Collector/1650/view

You can get the patch from that page, or just wait for Zope 2.3
(RSN, I'm sure).

Tres.
-- 
===
Tres Seaver[EMAIL PROTECTED]
Digital Creations "Zope Dealers"   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 )




Re: [Zope] Fw: mysqldb

2000-10-13 Thread Bill Welch

In Debian, this library is in a separate packge.

On Fri, 13 Oct 2000, Dale Lance wrote:

 anyone know where mysqlclient is supposed to be?


___
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] Authentication headers firewall port redirection

2000-10-13 Thread Roland C. Reumerman

As stated in an email some time before I ran into some problems concerning 
accessing my password protected Zope site.

The situation:
* Zope 2.2.2 runs on a web server called www.datadistilleries.com on port 
8080
* the web site it offers is protected with Zope's own authentication 
mechanism
* the firewall redirects any HTTP requests for  
www.datadistilleries.com/ddsn (i.e., port 80) to 
www.datadistilleries.com:8080/ddsn.

However, one has to click 3 times on that Login link before the login dialog 
appears. Then it seems to build up a connection, but doesn't. I click on the 
login link again, and I'm in and everything works as expected.

Now it seems that somehow the combination of Zope-generated authenticated 
headers and the firewall redirection rule do not match: does the header 
include URL information? That would imply it tries to access 
www.datadistilleries.com:8080/ddsn (Zope generated port) instead of plainly 
www.datadistilleries.com:80/ddsn (firewall listen port).

BTW, it cannot run on port 80 because the default web server is already 
listening to that port.

Question: is it possible to somehow make Zope send HTTP authentication 
headers that have port 80 included instead of port 8080?

_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at 
http://profiles.msn.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] LoginManager - with SQL?

2000-10-13 Thread ed colmar


Has anyone been able to use LoginManager with a SQL db?  with or without
encryption?

I'm still baffled by this how-to:
http://www.zope.org/Members/jok/SQL_based_LoginManager

In this example, there are dtml-methods that do the work of the UserSource,
but there is no retrieveItem?

I would really love to get this working instead of having to revert back to
older depreciated products.

Thanks for any help!

-e-

From: "Aleksander Salwa" [EMAIL PROTECTED]

 I remember I had some troubles trying to put methods rolesForUser,
 domainsForUser, authenticateUser in UserSource class. They can be moved to
 user class. I did so.
 But your case is harder then mine, cause you don't have objects
 representing users in ZODB. Maybe there are problems with retrieveItem
 method ?
 Maybe you should build wrapper class around your database
 data - something like "pluggable brains" ?
 I have no more ideas :(



___
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-sqltest and capital column names

2000-10-13 Thread Oliver Bleutgen

Talking to myself 
A slight correction to my patch so that
tablename.columname will be rendered as
to "tablename"."columnname".


146c146
 from string import find, split, join, atoi, atof
---
 from string import find, split, join, atoi, atof, replace
165,166c165,166
 if has_key('column'): self.column=args['column']
 else: self.column=self.__name__
---
 if has_key('column'): self.column='"'+replace(args['column'], '.', '"."')+'"'
 else: self.column='"'+replace(self.__name__, '.', '"."')+'"'


It would be nice if someone could comment whether this makes sense
for other dbs too.

cheers,
oliver


___
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] Variable name use in with statement

2000-10-13 Thread Burchill, Scott B.

I'm working on a simple auction site as a newbe challenge.  I am taking bids
on three static items, none will be added or removed.  I have a folder named
bid_records in which there is a folder for each item.  These item folders
have current bid information in properties and bid history in ZClass items
stored in them.

When I'm working with a specific auction item I have the name of the folder
in a REQUEST variable.  I am finding myself doing the following and am sure
there is a simpler way to do this.

Any help would be greatly appreciated!  Thanks.

dtml-with bid_records
  dtml-if "_.str(REQUEST.form['selection']) == 'walkon'"
dtml-with walkon
  dtml-call "REQUEST.set('cur_bidder', bidder)"
/dtml-with
  dtml-elif "_.str(REQUEST.form['selection']) == 'fullhouse'"
dtml-with fullhouse
  dtml-call "REQUEST.set('cur_bidder', bidder)"
/dtml-with
  dtml-else
dtml-with snoopy
  dtml-call "REQUEST.set('cur_bidder', bidder)"
/dtml-with
  /dtml-if
/dtml-with

--
Scott B. Burchill, MIS Manager
Ordway Center for the Performing Arts
345 Washington Street
St. Paul, MN  55102-1495

voice +1 (651) 282-3082
cell  +1 (651) 248-2713
pager +1 (612) 818-7600
fax   +1 (651) 224-1820
efax  +1 (508) 519-6133

http://www.ordway.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] ZCatalog question. boolean and wildcards.

2000-10-13 Thread Hannes Grund

Im running Zope 2.2.2 on Linux 2.2.13.

When mixing boolean operators and wildcards '*' in queries within a Textindex
the 'AND' operator is replaced by 'OR'. 
Also, the possibility of constructing nested terms using brackets seems 
to be not supported (contrary to the chapter 'Searching and indexing' from the Zope 
book).
The setting is straightforward, several indexes (text-index, keyword-indexes)
are used indexing a about 5000 Zclasses.
Are there any patches to apply or what else can i do ?

Thanks in advance.

Hannes.

___
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] product.dat

2000-10-13 Thread Seb Bacon

In the Zope PTK there are a couple of products that have been packaged as
product.dats.
What format are these?  How do I do it?

Cheers
seb


___
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] Ability to catalog localFS objects in the portal catalog

2000-10-13 Thread neeloy_saha

Hi all,

I have lots of old html/ documents that I want to publish through my zope
portal. To ensure that I do not tweak html files I have used the LocalFS
product, also I do not want to load the data.fs

Now. I am running into search problems. How do i do a search the filesystem
file? and also ensure that the search results come from both the filesystem
files and the portal zcatalog.??

Thx and regards.

-neeloy

___
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] Any examples of use of manage_addFile()?

2000-10-13 Thread complaw

I want to create a user-interface so that users can upload files to my Zope
site.  I have done this with DTMLDocuments, however I don't quite understand how
to get the file itself into the Zope site via ...

self.manage_addProduct['OFSP'].manage_addFile()

..that is in Python.

I looked through the HOWTO's but didn't find anything.  Does someone have an
example of a Form/DTMLMethod/Python script that does this sort of thing?

Thanks in advance,

Ron
 ./.



___
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] Database Pack

2000-10-13 Thread Marcus Mendes

"Júlio Dinis Silva" wrote:
 
 Hi all,
 
 is there a way to do a pack to zodb without using the managment screens pack
 button?
 
 Maybe a python script we could execute from the file system.
 
 Regards,
 Júlio Dinis Silva
 _
 Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
 
 Share information about yourself, create your own public profile at
 http://profiles.msn.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 )



Hello,

I'm using OracleStorage and I'd like know if can I pack my Database as I
do with data.fs. Are there any differences?

Thanks.

Marcus Mendes

___
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-with syntax question

2000-10-13 Thread Geoffrey L. Wright

Tim Cook writes:

  I'm sure someone will correct me if I'm wrong. But I believe you
  want:
  
  dtml-with "_.getitem(attribute3)"

Haven't tried it in my code yet, but thanks to your post I found the
section about _.getitem().  That'll come in handy all over the place,
so many thanks for the pointer!


//glw

___
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] LoginManager - with SQL?

2000-10-13 Thread Holger Lehmann

Well we use the UserDbFolder Product after havin the same/similar problems 
with the LoginManager :-)

- Holger

Am Fri, 13 Oct 2000 schrieben Sie:
 Has anyone been able to use LoginManager with a SQL db?  with or without
 encryption?

 I'm still baffled by this how-to:
 http://www.zope.org/Members/jok/SQL_based_LoginManager

 In this example, there are dtml-methods that do the work of the UserSource,
 but there is no retrieveItem?

 I would really love to get this working instead of having to revert back to
 older depreciated products.

 Thanks for any help!

 -e-

 From: "Aleksander Salwa" [EMAIL PROTECTED]

  I remember I had some troubles trying to put methods rolesForUser,
  domainsForUser, authenticateUser in UserSource class. They can be moved
  to user class. I did so.
  But your case is harder then mine, cause you don't have objects
  representing users in ZODB. Maybe there are problems with retrieveItem
  method ?
  Maybe you should build wrapper class around your database
  data - something like "pluggable brains" ?
  I have no more ideas :(

 ___
 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] Ability to catalog localFS objects in the portal catalog

2000-10-13 Thread Jonothan Farr

There are some patches floating around to add cataloging to LocalFS objects. I
haven't gotten around to including them in the standard distro.

--jfarr

- Original Message -
From: "neeloy_saha" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Friday, October 13, 2000 4:56 AM
Subject: [Zope] Ability to catalog "localFS objects" in the portal catalog


 Hi all,

 I have lots of old html/ documents that I want to publish through my zope
 portal. To ensure that I do not tweak html files I have used the LocalFS
 product, also I do not want to load the data.fs

 Now. I am running into search problems. How do i do a search the filesystem
 file? and also ensure that the search results come from both the filesystem
 files and the portal zcatalog.??

 Thx and regards.

 -neeloy

 ___
 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] Help Debugging External Methods

2000-10-13 Thread Robert_J_Roberts

What are my options for debugging External Methods in Zope running on
Windows NT?

Is there ANY way to get the external method to run in a DOS window that I
can watch?

What little tricks/techniques have others use to make debugging external
methods easier/possible?

Thanks,

Robert J. Roberts
LMSI-SDI
509.376.6343
[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] Q: Advantages of storing ZODB in RDBMS

2000-10-13 Thread Daniel Dittmar

Can anyone explain what the advantages are of using an RDBMS for Zope
object storage over the standard file system storage?

Is it simply the convenience to have the data in one place (for backup
etc)? 

Does it scale better? In connection with ZEO?

I'm asking because I'm contemplating writing such a storage for a
specific RDBMS and I would like to know whether it's worth the trouble.

Daniel Dittmar

___
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] Variable name use in with statement

2000-10-13 Thread Spicklemire, Jerry

Scott Butchill wonders if:

"there is a simpler way to do this."

Not much simpler, but how about:

dtml-call "REQUEST.set('user_select', ['walkon', 'fullhouse'])"
dtml-with bid_records
 dtml-in user_select
  dtml-if "_.str(REQUEST.form['selection']) == _['sequence-item']"
   dtml-with "_['sequence-item']"
dtml-call "REQUEST.set('cur_bidder', bidder)"
   /dtml-with
  dtml-elif "_['sequence-index'] == -1
   dtml-with snoopy
dtml-call "REQUEST.set('cur_bidder', bidder)"
   /dtml-with
  /dtml-if
 /dtml-in
/dtml-with

___
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] Access Control vs Publishing Protoco

2000-10-13 Thread Dieter Maurer

Seb Bacon writes:
  OK, I think we're talking about the same thing now...but could you give me
  an example of any object that would need to be traversable by Anonymous?
  index_html, for example,  doesn't need to be traversable (I still prefer
  'listable').  Viewable TTW, yes, but that's all.
I do not agree with you:
  I should be able to list what I am able to view (in order to
  learn what I can view).
  
I think, more than 30 per cent of my objects are like "index_html".
They are designed to be viewed by Anonymous.

The others are not destined to be viewed but to be used as
components in viewed objects (like "standard_html_*").
The current Zope security requires that Anonymous has
view permissions for them, too. But this allows Anonymous to
view them in isolation which almost surely will give
strange results (exceptions, empty pages, etc.).

My primary concern (and maybe Chris') is, how can we prevent 
these objects to be viewed by Anonymous. If we succeed, then
Anonymous can do nothing at all with them and it is no longer
necessary to list them (for him).
Thus, a solution for this problem may also be a solution for
the other problem.

However, a "listable" permission would not solve the distinction
between directly viewable via the web and only indirectly viewable.


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 )




[Zope] Q: Advantages of storing ZODB in RDBMS

2000-10-13 Thread Spicklemire, Jerry

Daniel asked:

"Can anyone explain what the advantages are of using 
an RDBMS for Zope object storage over the standard file 
system storage?"

The folks I know that have asked for that feature have 
stated their concerns as being:

Keeping everything in a single large file is risky,
since if that file becomes corrupted, the entire 
Web Site will be down until recovery is complete.

The other side of that one goes something 
like, "As if we've never seen systems down
for RDBMS recovery".

Keeping data in a form that's more accessible by 
external systems is an advantage.

And the comeback for that is, "This stuff
is not tabular, it's Web Content, and Code". 
It's not like you can run queries against it,
and print reports.

Using an RDBMS that has online backup, and quick
recovery features is cheap insurance.

Cheap is relative. if you happen to have an
expensive RDBMS, maybe you can call using it
for one more applicaiotn "cheap".

Making a copy of data.fs is pretty easy, and
recovery is completed by copying over a 
damaged file. Not exactly rocket science.

Also, Tranalyzer makes it pretty painless to 
recover up to the last good update, which is 
usually more than you can get from a backup!

As you can see, I don't "get" the arguments, but that's what 
people say, and if they happen to be the people who can veto 
Zope, you try to find a way to meet their requirements.

Later,
Jerry S.



___
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] proxied proxies with Zope Apache

2000-10-13 Thread Aaron Straup Cope

Hi,

I have Zope set up running with Apache/SSL using mod_proxy and the
SiteRoot product. Everything works fine.

The thing is, if I understand stuff correctly, all the requests to
https://hostname.com get handed off to Zope. I would like to be able use
the same hostname for plain old Apache-isms (cgi php etc) because the
users of the site shouldn't have to rememeber YA-hostname.

I would like to be able to do the following :

https://hostname/foo--https://zope.hostname/foo --http://hostname:8080/foo
https://hostname/bar--/htdocs/bar

a) hostname:443
ProxyPass  /foo  https://zope.hostname/foo

b) zope.hostname:443
ProxyPass /   http:hostname:8080/

(where the SiteRoot in the Zope tree points to https://zope.hostname)

When I try to do this, regardless of whether I use mod_proxy or
mod_rewrite, Apache returns a 403 error :

"You don't have permission to access /documents on this server."

Should the Zope SiteRoot point to https://hostname instead of
https://zope.hostname?

I know that I could set up multiple ProxyPass statements (and
corresponding SiteRoot objects) in the Apache conf file, but I would
really prefer to set up a standalone Zope https setup (mostly for
administrative purposes) and then proxy those aspects of Zope that are
pubic automagically to the default Apache setup.

I am dreaming? The rewrite/proxy stuff is still like voodoo for me most
days so any advice or suggestions would be welcome. Thanks,


___
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: Variable name use in with statement

2000-10-13 Thread Burchill, Scott B.

Ok, this worked :

dtml-with bid_records
dtml-with "_.getitem(_['selection'])"
  dtml-call "REQUEST.set('cur_bidder', bidder)"
/dtml-with
/dtml-with

Thanks for the direction, Jerry!

sbb

 -Original Message-
 From: Spicklemire, Jerry [mailto:[EMAIL PROTECTED]]
 Sent: Friday, October 13, 2000 2:58 PM
 To: '[EMAIL PROTECTED]'
 Cc: '[EMAIL PROTECTED]'
 Subject: Variable name use in with statement
 
 
 Scott Butchill wonders if:
 
 "there is a simpler way to do this."
 
 Not much simpler, but how about:
 
 dtml-call "REQUEST.set('user_select', ['walkon', 'fullhouse'])"
 dtml-with bid_records
  dtml-in user_select
   dtml-if "_.str(REQUEST.form['selection']) == _['sequence-item']"
dtml-with "_['sequence-item']"
 dtml-call "REQUEST.set('cur_bidder', bidder)"
/dtml-with
   dtml-elif "_['sequence-index'] == -1
dtml-with snoopy
 dtml-call "REQUEST.set('cur_bidder', bidder)"
/dtml-with
   /dtml-if
  /dtml-in
 /dtml-with
 

___
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] Any examples of use of manage_addFile()?

2000-10-13 Thread Peter Bengtsson

Here you go.

dtml-call "PARENTS[0].manage_addFile(thisID,myFile,thisTitle)"

This uploads a file in the current working directory.

thisID [ the id ] and thisTitle [ the Title ] are optional, and I don't know if you 
have to put '' double-apostrofies for the ID then.
You try.




- Original Message - 
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, October 13, 2000 6:29 PM
Subject: [Zope] Any examples of use of manage_addFile()?


 I want to create a user-interface so that users can upload files to my Zope
 site.  I have done this with DTMLDocuments, however I don't quite understand how
 to get the file itself into the Zope site via ...
 
 self.manage_addProduct['OFSP'].manage_addFile()
 
 ..that is in Python.
 
 I looked through the HOWTO's but didn't find anything.  Does someone have an
 example of a Form/DTMLMethod/Python script that does this sort of thing?
 
 Thanks in advance,
 
 Ron
  ./.
 
 
 
 ___
 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] Thanks for the comments

2000-10-13 Thread Phil Harris

Rik,

I've upped both the Zope_book.lit and the Zope quick Reference.

The ZQR is not as readable as the zBook due to the formatting.  I'll get the
XML and reformat it to look a bit better.

hth

Phil
[EMAIL PROTECTED]

- Original Message -
From: "Rik Hoekstra" [EMAIL PROTECTED]
To: "Phil Harris" [EMAIL PROTECTED]
Sent: Friday, October 13, 2000 8:25 AM
Subject: Re: [Zope] Thanks for the comments




 Phil Harris wrote:
 
  I'll stick onto my Zope members page
 
  http://zope.org/Members/philh


 except that the http://www.zope.org/Members/philh/zope_book.lit is dead
 ;-)

 Rik


___
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] date comparison

2000-10-13 Thread michael angelo ruberto

hi,

i had tried something similar already without success. here is the error
your script caused:

DOH!


Zope Error
Zope has encountered an error while publishing this resource.

Error Type: TypeError
Error Value: unsubscriptable object

for some reason Zope just doesn't want to compare ZopeTime with
bobobase_modification_time. i started reading the readme i found for the
python DateTime method but it hasn't shed any light on the situation yet. i
will try doing it with javascript. i can write the modification dates of the
objects into arrays and do the comparisons using a scripting language that
works.

thanks

-mike-

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Kapil
Thangavelu
Sent: Wednesday, October 11, 2000 2:53 PM
To: michael angelo ruberto
Cc: [EMAIL PROTECTED]
Subject: Re: [Zope] date comparison


michael angelo ruberto wrote:

 i want to create an index page that displays whether or not a page has
been
 updated in the past 7 days or the past 20 days. however, i can't figure
out
 how to get the bobobase_modification_date to compare with ZopeTime. can
 someone give me a clue before i rush blindly down Zope's undocumented dark
 alleys.

 mike

untested

ul
dtml-in "objectValues['DTMLDocument']"
dtml-if "ZopeTime()-7  bobo_base_modifcation_time"
libNew/bdtml-var absolute_url/li
dtml-elif "ZopeTime()-20  bobo_base_modifcation_time"
libSomewhat New/bdtml-var absolute_url/li
dtml-else
libOld/bdtml-var absolute_url/li
/dtml-if
/dtml-in
/ul

kapil

___
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] dtml-if and dtml-var question

2000-10-13 Thread Dieter Maurer

[EMAIL PROTECTED] writes:
  ... get today's date into a dtml-var ...

dtml-var "ZopeTime().Date()"

Look at the "DateTime" documentation, if this does not give
you the needed date format.


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] Variable name use in with statement

2000-10-13 Thread Dieter Maurer

Burchill, Scott B. writes:
  
  I am finding myself doing the following and am sure
  there is a simpler way to do this.
  
  Any help would be greatly appreciated!  Thanks.
  
  dtml-with bid_records
dtml-if "_.str(REQUEST.form['selection']) == 'walkon'"
  dtml-with walkon
dtml-call "REQUEST.set('cur_bidder', bidder)"
  /dtml-with
dtml-elif "_.str(REQUEST.form['selection']) == 'fullhouse'"
  dtml-with fullhouse
dtml-call "REQUEST.set('cur_bidder', bidder)"
  /dtml-with
dtml-else
  dtml-with snoopy
dtml-call "REQUEST.set('cur_bidder', bidder)"
  /dtml-with
/dtml-if
  /dtml-with
If you are sure, that only these values can occur in
"selection" (as I expect, as otherwise, it would not be a selection),
then you can use:

dtml-call "REQUEST.set('cur_bidder',_.getitem(REQUEST.form['selection']).bidder)"


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] DTML Acquisition NameSpace Help Needed.....

2000-10-13 Thread Dieter Maurer

J Kinsley writes:
  /FrameSet - DTML Method
  .
  XXX - How can I negate this?  IE. dtml-if "not section"
dtml-unless section
  dtml-if section 
  dtml-else
  dtml-call "REQUEST.set('section', '/ViewFrame')"
  /dtml-if section
  
  XXX - I do not think calling REQUEST.set() is the best way to
  accomplish this.  What is a better way?
It is ineffective, as you do not use "topframe" later (in *this*
request).
  dtml-call "REQUEST.set('topframe', '1')"
  
  frameset rows="60,75,*"
   frame name="title_frame" src="dtml-absolute_url;/TitleFrame"
   frame name="banner_frame" src="dtml-absolute_url;/BannerFrame"
   frame name="view_frame" src="dtml-absolute_url;dtml-section;"
  /frameset
  .

  XXX - I can not get this to work at all.  Topframe should be set or
  true if the visitor arrived in the /Files Folder from the top level
  frameset and /Files/ViewFrame will be loaded into the view_frame
  target.
The frameset and its frames parts are fetched in *different* requests.
The "REQUEST.set" only affects the REQUEST object for the
frameset. The REQUEST objects for the frame components are
not affected.

You have two options:

 * a session product (there are some around on zope.org)
   it allows you to save information across web requests

 * passing the additional information through a query string
   key=value pair (do not forget to "url_quote_plus")

  XXX - If this method is called from the top level FrameSet method,
  how to I access dir and file from the original request?
see above.



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] Medusa Monitor

2000-10-13 Thread Dieter Maurer

Hung Jung Lu writes:
  I know that, the stupid log file thingy. But you'll have to write an 
  independent thread to display the log file (or peek the file manually each 
  time), or implement some CString stuff to capture the file output (if that 
  is possible).
As I understand it, the logging module can be customized to stuck
its log into a variable in Zope itself, viewable through the
web. You may search the list archive to find the corresponding post.
Maybe, you find it, too, via zope.org.

  It'll be more fun if all this is already done, and the user can just tap 
  into the monitor console screen (even remotely).
  
  A good monitor should actually display hit information, memory usage, etc, 
  and preferably with charts, all in real time. Too much to ask? I don't think 
  so. :)
Of cause, you can ask for it. However, someone must implement it.


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] Tiny tables

2000-10-13 Thread Dieter Maurer

Graham Chiu writes:
  I tried storing these in tiny tables, but it doesn't seem
  that tiny tables allow one to store tokens.  If I specify
  the value as say, criteria:tokens, it gets changed to just
  criteria.
Probably, This is a ZPublisher feature. It interpretes
":type" suffixes of form variable and parameter names
to call for a type conversion of the value.

As far as I know, there is not escape possibility.
Can you change the ':' into a different character?


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] Non-existing Zope-Security!!!

2000-10-13 Thread knight

Also, consider adding an accessrule. This won't stop them from using
__no_before_traverse__ or _SUPPRESS_ACCESSRULE but it will make it
'appear' there is nothing more than the current level.

knight
[EMAIL PROTECTED]

On Fri, 13 Oct 2000, Tim Cook wrote:

 Stephan Goeldi wrote:
  
  OK let me state that I don't think so (subject line). I had to choose this
  subject, because it seems to me, that nobody was interested in my previous
  attempts to get information about my problem. So here is my newbie (?)
  question again:
  
  I have the folders:
  
  /www/folder1
  /www/folder2
  
  Apache redirects domain1 to folder1 and domain2 to folder2.
  The manager of folder1 is able to browse to /www and see what folders exist
  there. He shouldn't, because he only exists in the acl_user of /www/folder1.
  He even can look into the folder /www/folder2 (but not into the objects).
  
  Is it possible to disable the access for the folder1-manager above folder1?
  It doesn't seem to me. If it really isn't possible, there is no security at
  all for ISP uses of Zope. But I'm sure, there should be a possibility.
  
  I even created a local role in /www/folder1 too. Even with the local role I
  can browse /www and /www/folder2!
  
  Any suggestions?
 
 Create the user in the top level folder that they are allowed to
 see. 
 Not in the /www folder
 
 HTH,
 -- Tim Cook --
 Cook Information Systems | Office: (901) 884-4126 8am-5pm CDT
 Free Practice Management 
 Project Coordinator http://www.freepm.org
 OSHCA Founding Supporter http://www.oshca.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 )




Re: [Zope] Fw: mysqldb

2000-10-13 Thread knight

Have you run ldconfig after editting the /etc/ld/so/conf file? Run
ldconfig -v | grep mysqlclient and see if the library appears. If so,
everything is all set.

Also try an ls -l /usr/local/mysql/lib/libmysql*.

Knight
[EMAIL PROTECTED]

On Fri, 13 Oct 2000, Dale Lance wrote:

 Hi,
 I am trying to build ZMySQLDA 1.20
 mysql has been built successfully on RedHat 7.0 and resides in
 /usr/local/mysql
 I have followed the instructions for editing /etc/ld/so/conf adding
 /usr/local/mysql/lib/mysql
 /usr/local/mysql/lib
 /usr/local/mysql
 to it. (just tomake sure)
 yet I still get the following error
 anyone know where mysqlclient is supposed to be?
 
 Dale
 
 
  gcc -shared  _mysqlmodule.o  -L/usr/local/mysql/lib -lmysqlclient -o
  _mysqlmodule.so
  /usr/bin/ld: cannot find -lmysqlclient
  collect2: ld returned 1 exit status
  make: *** [_mysqlmodule.so] Error 1
  Traceback (innermost last):
File "build.py", line 14, in ?
  import MySQLdb
File "MySQLdb.py", line 19, in ?
  from _mysql import *
  ImportError: No module named _mysql
 
 
 
 
 
 ___
 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] Creating Recursive Folders

2000-10-13 Thread Jason Spisak

Zopists,

I am trying to use DTML to create folders within folders for me 3 levels
deep.
Two levels works, but 3 won't.  For example:

This works:

dtml-in expr="_.range(0, 10)"
dtml-let a=sequence-item
 dtml-call "manage_addFolder(_.str(a), _.str(a))"
dtml-in expr="_.range(0, 10)"
dtml-let b=sequence-item
 dtml-call "_.getitem(_.str(a), 1).manage_addFolder(_.str(b),
_.str(b))"
/dtml-let
/dtml-in
/dtml-let
/dtml-in

But this:

dtml-in expr="_.range(0, 10)"
dtml-let a=sequence-item
 dtml-call "manage_addFolder(_.str(a), _.str(a))"
dtml-in expr="_.range(0, 10)"
dtml-let b=sequence-item
 dtml-call "_.getitem(_.str(a), 1).manage_addFolder(_.str(b),
_.str(b))"
dtml-in expr="_.range(0, 10)"
  dtml-call "_.getitem(_.str(a), 1)._.getitem(_.str(a),
1).manage_addFolder(_.str(_['sequence-item']),
_.str(_['sequence-item']))"
/dtml-in
/dtml-let
/dtml-in
/dtml-let
/dtml-in

Throws an unathorized no matter who I am. How can I get 3 levels of
recursion.  I tried using 'let' to stand for the object, with no luck.

BTW, I accidently sent the last post to dev, forgive me.

All my best,

Jason Spisak
[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] Tiny tables

2000-10-13 Thread andres

The problem with the TinyTable and TinyTablePlus products is that they use
the tokenize.py module which treats any field value as a possible Python expression.
Since ":" is a special token in Python, it gets interpreted as such. One
quick way to get around this is to quote your field value -

"criteria:tokens"

You may have to deal with the quotes later on, although I think they get
stripped after the value survives the tokenize.py module.

On Fri, Oct 13, 2000 at 08:08:34AM +1300, Graham Chiu wrote:
 
 I would like to run some regular reports based upon
 sqlmethods.  The input to these are a mixture of normal
 values, and some tokenised values.
 
 I tried storing these in tiny tables, but it doesn't seem
 that tiny tables allow one to store tokens.  If I specify
 the value as say, criteria:tokens, it gets changed to just
 criteria.
 
 Any suggestions as to how to store the input as tokens for
 my reports?
 
 --
 Graham Chiu
 
 ___
 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 )
 
 

-- 
--
Andres Corrada-Emmanuel   Email: [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] Converting PHP3 - Zope

2000-10-13 Thread andres

Take a look at my HOWTO:

www.zope.org/Members/Mamey/PHP

On Fri, Oct 13, 2000 at 09:47:17AM -0200, Mario Olimpio de Menezes wrote:
 
 Hi,
 
   I'm planning to convert (migrate) a entire site from php3 to
 zope and i'm looking for suggestions, hints, etc on this.
   It's a GPL management school system done in php3+postgresql, and
 any user must be authenticated against a database and his privileges
 are those from the postgresql. The system is in portuguese
 (www.univates.br/sagu) if someone is interested.
   Does somebody have experience in such kind of migration
 (conversion) and can give me some "in advance" advice to avoid this or
 that or don't do this, etc, etc?
   Any comments?
 
 []s,
 Mario O.de Menezes"Many are the plans in a man's heart, but
 IPEN-CNEN/SP is the Lord's purpose that prevails"
 http://curiango.ipen.br/~mario Prov. 19.21
http://www.revistalinux.com.br
 
 
 ___
 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 )
 
 

-- 
--
Andres Corrada-Emmanuel   Email: [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] Python regular expression help

2000-10-13 Thread Peter Bengtsson

[ this might be more of a Python question, but it's got a lot to do with the web and 
is to be used in Zope ]

I want to replace all occurences of email address's and URLs in a textstring, to a 
href="mailto:%s"%s/a and a href="%s"%s/a.
Must admit that I am not an regex expert, and I wasn't able to find a "precompiled" 
regex for neither email nor URL.

Or is there anything available from the zope/python stack? 



___
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] backing up

2000-10-13 Thread matt

Is there a nice way to backup dtml documents and methods from a certain point
in the object tree onwards without having to save all the other objects too?

regards
Matt


___
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 )