Re: [Zope] Extended characters in Zope

2001-01-29 Thread Hannu Krosing

Ausum wrote:

> I have to deal with documents and its attributes wich have a lot of extended
> characters in them, like the "ñ" or the hyphened "á"..."ú" vocals in spanish.
> 
> The ones who download the pages in Windows don't have any trouble. The ones who
> use Mac  will see strange characters, as it might be expected. Updating a page
> or propertie from a Mac will cause the same problem for Windows users, because
> Zope doesn't convert the extended characters to the web-friendly format when
> properties are added.

Modern browsers usually understand the charset attribute (and IIRC the 
default charset for HTML defined in spec is ISO-8859-1 not MAC ;).

so just put


in  section and you should be ok


Hannu


___
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] RESPONSE.redirect

2001-01-29 Thread Oliver Vecernik

Max M wrote:
> 
> From: [EMAIL PROTECTED] Oliver Vecernik
> 
> >I'd like to show a page and after a few seconds I'd like to redirect to
> >another page. If I simply add  it is
> >done immediately. How can I achieve a delay of a couple of seconds?
> 
> First you should send the page you want to show, then you should redirect to

That's what I did.

> a page with a delay. Probably you should write it in an external Python
> method.

How can this be done? Can you give me an example?

> 
> That page should then redirect to the target page.
> 
> Or you could drop the middle page and build the delay into the target page.
> That is stupid though if it is also accesed from elsewhere than the first
> page you want shown.
> 
> Or you could make a delay in JavaScript and after that do a
> self.document.src = "new/url"

I've forgotten to mention: Browser can only display HTML 3.2 and *no*
JavaScript. Thus it should be done on server side.

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] fix: CoreSessionTracking and ConflictError

2001-01-29 Thread Chris McDonough

Wow, debugging that problem really sucked.  But it's fixed.

Thanks for reporting the problem, Randy, it'll be fixed in the next release
(which I will upload tomorrow)... alternately or in the meantime, you (and
anyone else with CoreSessionTracking 0.6) can use the attached patch to fix
the problem.

- Original Message -
From: "Chris McDonough" <[EMAIL PROTECTED]>
To: "Chris McDonough" <[EMAIL PROTECTED]>; "Randall F. Kern"
<[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Monday, January 29, 2001 6:09 PM
Subject: Re: [Zope] update: CoreSessionTracking and ConflictError


> This seems to be a problen with the SessionStorage part of the product...
it
> only occurs on accesses to the internal data container.  Using an external
> data container doesn't seem to exhibit the same problem.  I'll try to
> troubleshoot the SessionStorage
>
> - Original Message -
> From: "Chris McDonough" <[EMAIL PROTECTED]>
> To: "Randall F. Kern" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Monday, January 29, 2001 6:05 PM
> Subject: Re: [Zope] CoreSessionTracking and ConflictError
>
>
> > OK, I think I've reproduced this.  But I haven't fixed it.  :-(  As soon
> as
> > I do, I'll let you know...
> >
> > - Original Message -
> > From: "Randall F. Kern" <[EMAIL PROTECTED]>
> > To: "Chris McDonough" <[EMAIL PROTECTED]>
> > Sent: Monday, January 29, 2001 5:28 PM
> > Subject: RE: [Zope] CoreSessionTracking and ConflictError
> >
> >
> > Yes, I mean I'm getting a conflict error on every access (for an
> > existing session), after a conflict.
> >
> > I've read the docs, they are the best docs I've seen for anything Zope,
> > but they don't mention a reason why this might happen.
> >
> > Any ideas?
> > -Randy
> >
> > > -Original Message-
> > > From: Chris McDonough [mailto:[EMAIL PROTECTED]]
> > > Sent: Monday, January 29, 2001 1:47 PM
> > > To: Chris McDonough; Randall F. Kern; [EMAIL PROTECTED]
> > > Subject: Re: [Zope] CoreSessionTracking and ConflictError
> > >
> > >
> > > Oh, wait, I just reread that.  I only skimmed it first,
> > > sorry.  Are you
> > > saying that you get a conflict error on every access to the
> > > session mgr
> > > after you've had one conflict error?  I haven't experienced
> > > any failure mode
> > > like this.  Any concurrent write access to the session
> > > container has the
> > > possibility of causing a conflict.  getSessionData has the
> > > possibility of
> > > causing a conflict if a session key isn't found in the
> > > request because it
> > > creates a new session data object (e.g. if you run Apache's "ab" in
> > > concurrent mode against a method which calls getSessionData
> > > without giving a
> > > session key as part of the URL, you will get ConflictErrors
> > > because the
> > > container will be modified as new session objects are created).
> > >
> > > - Original Message -
> > > From: "Chris McDonough" <[EMAIL PROTECTED]>
> > > To: "Randall F. Kern" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> > > Sent: Monday, January 29, 2001 4:38 PM
> > > Subject: Re: [Zope] CoreSessionTracking and ConflictError
> > >
> > >
> > > > There is info about this in the docs.
> > > >
> > > > - Original Message -
> > > > From: "Randall F. Kern" <[EMAIL PROTECTED]>
> > > > To: <[EMAIL PROTECTED]>
> > > > Sent: Monday, January 29, 2001 4:12 PM
> > > > Subject: [Zope] CoreSessionTracking and ConflictError
> > > >
> > > >
> > > > > I've been porting my product from my own private session
> > > manager to use
> > > > > CoreSessionTracking 0.6, and am having a problem with
> > > lots of conflict
> > > > > errors.
> > > > >
> > > > > I've got a session_id_mgr in the root, configured as per
> > > defaults, and a
> > > > > session_data_mgr also in the root, using the RAM base container.
> > > > >
> > > > > Then I have a simple DTML method:
> > > > >
> > > > > 
> > > > > 
> > > > > 
> > > > > 
> > > > > 
> > > > > 
> > > > > 
> > > > > 
> > > > > 
> > > > > Test
> > > > >
> > > > >
> > > > >
> > > > > If I goto this URL in a browser, it works fine,
> > > displaying "Test", with
> > > > > no ConflictError in my debug listing.  Then I quickly
> > > press Refresh
> > > > > twice in my browser.  This results in the page "Test", and a
> > > > > ConflictError in my log  (as I expected).
> > > > >
> > > > > After that, any request that uses the session data (even
> > > without a set)
> > > > > results in a ConflictError:
> > > > >
> > > > > 
> > > > > Title: 
> > > > > 
> > > > >
> > > > >
> > > > > Any ideas why this is happening?
> > > > > -Randy
> > > > >
> > > > > ___
> > > > > 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 Scripts vs PythonMethods

2001-01-29 Thread David K. Trudgett

On Mon, Jan 29, 2001 at 11:50:17AM -0600, Fred Yankowski wrote:

> over those methods manually to Python Scripts.  Rats.  I'm just glad I
> didn't have too much invested into PythonMethods.
>
Admittedly, I haven't been following this very closely, but wasn't Python Scripts 
going to simply be a new name for PythonMethods?

Yours Confused

David Trudgett


___
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] "Picture of the day" product

2001-01-29 Thread Timothy Wilson

On Mon, 29 Jan 2001, Tres Seaver wrote:

> > I'd like to grab all instances with a display_date <= today's
> > date. I can't figure out exactly how to do that in DTML or a
> > Python Script. Once I have that list of instances, I'll simply
> > pull off the latest one as you suggested.

> I don't know where it would be in the book it would be, but
> I do this something like::
> 
>   
> 
> The expression would be basically the same in a PythonScript::
> 
>   return context.theCatalog( meta_type='Photo'
>, display_date=ZopeTime()
>, display_date_usage='range:max'
>, sort_on='display_date'
>, sort_order='reverse'
>)

Great! The first DTML example works perfectly. The second, however, throws
up an error. In fact, I have yet to figure out how to use ZopeTime() in a
PythonScript. Do I have to pass anything in? 

I get:

Error Type: NameError
Error Value: ZopeTime

when I try it.

-Tim

> Hope that helps!

Thanks again. I should have those pictures up in no time.

-Tim

--
Tim Wilson  | Visit Sibley online: | Check out:
Henry Sibley HS | http://www.isd197.k12.mn.us/ | http://www.zope.org/
W. St. Paul, MN |  | http://slashdot.org/
[EMAIL PROTECTED] || http://linux.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] "Picture of the day" product

2001-01-29 Thread Tres Seaver

On Mon, 29 Jan 2001, Timothy Wilson wrote:

> On Wed, 17 Jan 2001, Tres Seaver wrote:
> 
> > > What I'm not sure about is how to have Zope automatically
> > > display the photo for a day, then archive it. Would a
> > > boolean property of the ZClass work? Is it possible to have
> > > Zope set the property of a ZClass instance at certain time?
> > > Any thoughts on how this would be designed?
> > 
> > This kind of thing is a "query-on-metadata" application;  I
> > would put all these images into a single folder (maybe
> > chunked into subfolders by month?), mark them each with an
> > 'effective' property (of type 'Date'), and then select the
> > appropriate image via a catalog query, e.g.::
> > 
> >>, effective=( ZopeTime().earliestTime(),
> > ZopeTime().latestTime() )
> >, effective_usage='range:min:max'
> ># other query parms here, including any sorting...
> >)">
> >   
> > 
> >   
> >   
> > 
> > Or you could just have the catalog fetch the images sorted by
> > effective/descending, and then pick off the first one;  this
> > would keep an image around until supplanted by a newer one.
> 
> Tres, I like this second solution. Each 'Photo' instance has a
> display_date property (of type 'date') that should determine
> when it's displayed (strangely enough :-)
> 
> I'd like to grab all instances with a display_date <= today's
> date. I can't figure out exactly how to do that in DTML or a
> Python Script. Once I have that list of instances, I'll simply
> pull off the latest one as you suggested.
> 
> Would someone be willing to give an example of how to do this
> in DTML and a PythonScript? I think it would be an interesting
> comparison. BTW, there's nothing quite like this in the Zope
> Book. Nearly all of the examples there are using form input.
> Perhaps this type of Catalog searching could be expounded on
> there.

I don't know where it would be in the book it would be, but
I do this something like::

  

The expression would be basically the same in a PythonScript::

  return context.theCatalog( meta_type='Photo'
   , display_date=ZopeTime()
   , display_date_usage='range:max'
   , sort_on='display_date'
   , sort_order='reverse'
   )

Hope that helps!

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 )




[Zope] DTML current namespace

2001-01-29 Thread kosh

How do you print out the current namespace you have access to in DTML? I
am trying to track down what I think is a namespace problem and I think
this would help solve the problem.

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 )




Re: [Zope] How to upgrade to 2.3 (no differential install?)

2001-01-29 Thread Bill Anderson

David K. Trudgett wrote:

> On Mon, Jan 29, 2001 at 10:54:08AM -0500, Brad Clements wrote:
> 
> 
>> Call me stupid, I can't find the proper command line switch to get tar to 
>> ignore the top level directory name Zope-2.3.0-linux2-86
>> 
>> Do I have to untar into a junk directory, then cp -r everything to my 
>> current dir?
>> 
> 
> What's wrong with:
> 
> $ cp Zope-2.3.0-linux2-x86.tgz /usr/local/; cd /usr/local
> $ tar xzvf Zope-2.3.0-linux2-x86.tgz; mv Zope-2.3.0-linux2-x86 Zope-2.3.0
> $ rm Zope-2.3.0-linux2-x86.tgz

two steps too many ;)
Just tar -xvzf the original file,no need to copy and then delete the copy.
/me ducks


___
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] License

2001-01-29 Thread Bill Anderson

Andrew Kenneth Milton wrote:

> +---[ Bill Anderson ]--
> | Fabrice FRANK wrote:
> | 
> | >   I really agree, do NOT change the license terms.
> | > 
> | >
> | 
> | Ummm .. the software in questions has _no_ license terms yet.
> 
> You stifling the right of the individual to license-free software Bill? huh? 
> huh? Well are ya? :-)
> 


Who me? ;^)=

nah, never. If anyhting saying not to change the 'license' would be. :-)

> I've been laughing through this whole thread from Chris's typo to the
> rest of the people who didn't bother to read the rest of the thread to
> discover that a license choice hasn't been made...

Yeah, that typo really caught me a good laugh too. I should thank Chris 
for it. :)

Bill


___
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] Ithy Trigger Fingers (was Re: [Zope] License)

2001-01-29 Thread Bill Anderson

Dario Lopez-Kästen wrote:

> I believe the Horse of Licenses was beaten to death in a recent thread some
> month(s), if not weeks, ago. May It Rest in Peace.
> 
> This may be the Second Coming of It, but, with all due respect, License
> Horses and discussions of Other License's Merits and Flaws are off-topic for
> this list; I think most^H^H^H^H many subscribers will agree on this.

Be that as it may, it still does not constitute a flame-war.

> 
> Imagine the consequences of having the spooky ghost of the License Horse
> roaming about... *B*

Or worse, the fear of saying something in disagreement, for fear of being 
labelled a flame war starter.

Bill


___
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] external method and security

2001-01-29 Thread Shane Hathaway

Marty Stitt wrote:
> Is it up to me to write my own security code when using an external
> method?

Basically, yes.  You can protect access to the "stub" within the ZODB
using the Security tab, but the body of the external method has free
reign.

Shane

___
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] Extended characters in Zope

2001-01-29 Thread Ausum

I have to deal with documents and its attributes wich have a lot of extended
characters in them, like the "ñ" or the hyphened "á"..."ú" vocals in spanish.

The ones who download the pages in Windows don't have any trouble. The ones who
use Mac  will see strange characters, as it might be expected. Updating a page
or propertie from a Mac will cause the same problem for Windows users, because
Zope doesn't convert the extended characters to the web-friendly format when
properties are added.

I'd also like to search in Zcatalog using these extended characters, ie.
"Effects of El Niño", from any platform. Is there a workaround for this
situation?


Ausum



p.d  I'm sure that european Zopists have already faced  this problem and
probably found a solution. Unfortunately I couldn't find it at the archives.




___
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] CacheManagers are cool :)

2001-01-29 Thread [EMAIL PROTECTED]


>
> > Not exactly a real-life usage scenario, but it sounds impressive :)  Not
> > sure I understand what the cache keys are for though... is there any more
> > documentation forthcoming on this?
>
> so you can cache requests based on dynamic input.
>
> useful for authentication to present different cache pages to different
> users, and also to present common request dependent information from cache.
>
> as for real documentation, use the source luke

anybody tried expiring an object,? say after 300 secs, the cached object 
expires, get invalidated and a new cached object is created when somebody 
requested the page.
is there any simple way to expire a RAM Cache?

also, for those who tried caching.  what do you guys do?  cache the methods 
that make up the bigger method?  or just cache the bigger method?

e.g dtml method a is made from method b, c, d,...n
do you cache a, or selectively cache b and/or c, d, ...

confusedly, yours

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

-- 

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

Help me save me from myself...


___
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] porting from Python Methods to PythonScripts in 2.3.0;LoginManager too

2001-01-29 Thread Evan Simpson

From: "Jim Washington" <[EMAIL PROTECTED]>
> Standard caveats, YMMV, etc, but it does a quick pass on the Methods in
> the folder where it is and makes Scripts from them when you hit the
> 'test' tab, saving the old ones as methodname.old.

Excellent!  Thanks for writing and sharing this -- it looks like a fine
candidate for a HOWTO.

Cheers,

Evan @ digicool & 4-am


___
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] LocalFS on 2.3.0

2001-01-29 Thread Andy McKay

Ah I think my patch was the wrong way around... but you get the idea :)
--
  Andy McKay.


- Original Message -
From: "Andy McKay" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, January 29, 2001 2:05 PM
Subject: Re: [Zope] LocalFS on 2.3.0


> I patched mine quickly:
>
> --- d:\Zope23\lib\python\Products\LocalFS\LocalFS.pyMon Jan 29
13:57:00
> 2001
>
> +++ d:\lib\python\Products\LocalFS\LocalFS.py   Thu Oct 19 06:42:20 2000
> @@ -270,8 +270,7 @@
>  _local_path = None
>
>  def bobobase_modification_time(self):
> -try: t = os.stat(self._local_path)[stat.ST_MTIME]
> -except: t = time.time()
> +t = os.stat(self._local_path)[stat.ST_MTIME]
>  return DateTime(t)
>
>  def __repr__(self):
> @@ -977,8 +976,7 @@
>  except 'Forbidden': pass
>
>  def bobobase_modification_time(self):
> -try: t = os.stat(self._local_path)[stat.ST_MTIME]
> -except: t = time.time()
> +t = os.stat(self._local_path)[stat.ST_MTIME]
>  return DateTime(t)
>
>  class LocalFile(
>
> However this is just a quick works for me hack.
> --
>   Andy McKay.
>
>
> - Original Message -
> From: "Tim Cook" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, January 29, 2001 1:08 PM
> Subject: [Zope] LocalFS on 2.3.0
>
>
> >
> > I "thought" LocalFS worked. But now when I import something with
> > a LocalFS defined or attempt to create a new one here's the
> > traceback on:
> >
> > Zope Version  Zope 2.3.0 (binary release, python 1.5.2,
> > linux2-x86)
> >  Python Version 1.5.2 (#10, Dec 6 1999, 12:16:27) [GCC 2.7.2.3]
> >  System Platform linux2
> >
> >
> > Error Type: AttributeError
> > Error Value: _local_path
> >
> > Traceback (innermost last):
> >   File /usr/local/zope/2.3/lib/python/ZPublisher/Publish.py, line
> > 222, in publish_module
> >   File /usr/local/zope/2.3/lib/python/ZPublisher/Publish.py, line
> > 187, in publish
> >   File /usr/local/zope/2.3/lib/python/Zope/__init__.py, line 221,
> > in zpublisher_exception_hook
> > (Object: Traversable)
> >   File /usr/local/zope/2.3/lib/python/ZPublisher/Publish.py, line
> > 171, in publish
> >   File /usr/local/zope/2.3/lib/python/ZPublisher/mapply.py, line
> > 160, in mapply
> > (Object: manage_main)
> >   File /usr/local/zope/2.3/lib/python/ZPublisher/Publish.py, line
> > 112, in call_object
> > (Object: manage_main)
> >   File
> > /usr/local/zope/2.3/lib/python/Shared/DC/Scripts/Bindings.py,
> > line 324, in __call__
> > (Object: manage_main)
> >   File
> > /usr/local/zope/2.3/lib/python/Shared/DC/Scripts/Bindings.py,
> > line 353, in _bindAndExec
> > (Object: manage_main)
> >   File /usr/local/zope/2.3/lib/python/App/special_dtml.py, line
> > 236, in _exec
> > (Object: manage_main)
> >   File /usr/local/zope/2.3/lib/python/DocumentTemplate/DT_In.py,
> > line 711, in renderwob
> > (Object: objectItems)
> >   File
> > /usr/local/zope/2.3/lib/python/DocumentTemplate/DT_With.py, line
> > 146, in render
> > (Object: sequence-key)
> >   File /usr/local/zope/2.3/lib/python/DocumentTemplate/DT_Var.py,
> > line 271, in render
> > (Object: bobobase_modification_time)
> >   File
> > /usr/local/zope/2.3/lib/python/Products/LocalFS/LocalFS.py, line
> > 979, in bobobase_modification_time
> > (Object: myhomedir)
> > AttributeError: (see above)
> >
> >
> >
> >
> > -- Tim Cook, President --
> > Free Practice Management,Inc. | http://www.FreePM.com Office:
> > (901) 884-4126
> > "Liberty has never come from the government." - Woodrow Wilson
> >
> > ___
> > 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 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] LocalFS on 2.3.0

2001-01-29 Thread Ron Bickers

I submitted the following patch to the LocalFS maintainer not too long ago.
LocalDirectory objects don't have _local_path set, so
bobobase_modification_time() barfs when the new management interface tries
to display the mod time.

--- LocalFS.py-dist Wed Jan 17 14:27:45 2001
+++ LocalFS.py  Wed Jan 17 14:33:21 2001
@@ -976,6 +976,8 @@
 except 'Forbidden': pass

 def bobobase_modification_time(self):
+if not hasattr(self, '_local_path'):
+self._local_path = self.basepath
 t = os.stat(self._local_path)[stat.ST_MTIME]
 return DateTime(t)

@@ -1179,7 +1181,7 @@
 """Change the properties of the file system object."""

 self.title = title
-self.basepath = os.path.normpath(basepath)
+self.basepath = self._local_path = os.path.normpath(basepath)
 self.default_document = default_document or self.default_document
 self.tree_view = self.isPrincipiaFolderish = tree_view
 self.catalog = catalog


___
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 namespace puzzle

2001-01-29 Thread Ron Bickers

> -Original Message-
> From: Dieter Maurer [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 29, 2001 1:17 PM
> To: Ron Bickers
> Cc: [EMAIL PROTECTED]
> Subject: RE: [Zope] DTML namespace puzzle
>
> of the namespace. "dtml-with" could but it is very strange
> that it should do such things and especially that it does
> for you but not for me.

I have no explanation whatsoever, but I removed the dtml-let and it's
working now.  Sigh...

This leads me to a related question, however.  I realized the DTML method
call from the Python Script included 'container' as the first parameter (as
shown below).  I did this so that the DTML method could find another method
in the same Folder.  Without it, it fails with a NameError.  I realized that
I don't understand how Python Scripts can/should call DTML methods.  That
is, are there magical parameters?  Why does the following 'container'
parameter work?

  msg = container.orderMessage(container, num=num, SESSION=SESSION)

___

Ron Bickers
Logic Etc, Inc.
[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] License

2001-01-29 Thread Andrew Kenneth Milton

+---[ Bill Anderson ]--
| Fabrice FRANK wrote:
| 
| > I really agree, do NOT change the license terms.
| > 
| >
| 
| Ummm .. the software in questions has _no_ license terms yet.

You stifling the right of the individual to license-free software Bill? huh? 
huh? Well are ya? :-)

I've been laughing through this whole thread from Chris's typo to the
rest of the people who didn't bother to read the rest of the thread to
discover that a license choice hasn't been made...

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[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] How to upgrade to 2.3 (no differential install?)

2001-01-29 Thread David K. Trudgett

On Mon, Jan 29, 2001 at 10:54:08AM -0500, Brad Clements wrote:

> Call me stupid, I can't find the proper command line switch to get tar to 
> ignore the top level directory name Zope-2.3.0-linux2-86
> 
> Do I have to untar into a junk directory, then cp -r everything to my 
> current dir?
>
What's wrong with:

$ cp Zope-2.3.0-linux2-x86.tgz /usr/local/; cd /usr/local
$ tar xzvf Zope-2.3.0-linux2-x86.tgz; mv Zope-2.3.0-linux2-x86 Zope-2.3.0
$ rm Zope-2.3.0-linux2-x86.tgz
$ chown -R root.root Zope-2.3.0
$ cd Zope-2.3.0
$ ./install
$ chgrp -R nobody var; chmod -R g+rw var; chmod g+s var
$ python zpasswd.py access
$ ./start &


David Trudgett


___
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] Ithy Trigger Fingers (was Re: [Zope] License)

2001-01-29 Thread Dario Lopez-Kästen

I believe the Horse of Licenses was beaten to death in a recent thread some
month(s), if not weeks, ago. May It Rest in Peace.

This may be the Second Coming of It, but, with all due respect, License
Horses and discussions of Other License's Merits and Flaws are off-topic for
this list; I think most^H^H^H^H many subscribers will agree on this.

Imagine the consequences of having the spooky ghost of the License Horse
roaming about... *B*

Cheers,

/dario - asbestos suit is: on

- 
Dario Lopez-Kästen Systems Developer  Chalmers Univ. of Technology
[EMAIL PROTECTED]  ICQ will yield no hitsIT Systems & Services





___
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] LocalFS on 2.3.0

2001-01-29 Thread Fred Yankowski

That patch helped me out.  Thanks.

Kind of unusual, though, for the patch file to _remove_ the fix.  ;-)

-- 
Fred Yankowski   [EMAIL PROTECTED]  tel: +1.630.879.1312
Principal Consultant www.OntoSys.com   fax: +1.630.879.1370
OntoSys, Inc 38W242 Deerpath Rd, Batavia, IL 60510, USA

___
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] Is it possible to use regular CGI's like htDig withzserver?

2001-01-29 Thread Timothy Wilson

On Mon, 29 Jan 2001, Chris Withers wrote:

> > And if so, how would I set that up?
> 
> -Use Apache as your main server.
> -Use mod_proxy(?) to proxypass Zope requests through to ZServer.
> -install htdig as a normal CGI under Apache

Presumably, then, this would be the same approach for getting Mailman
working alongside Zope?

-Tim

--
Tim Wilson  | Visit Sibley online: | Check out:
Henry Sibley HS | http://www.isd197.k12.mn.us/ | http://www.zope.org/
W. St. Paul, MN |  | http://slashdot.org/
[EMAIL PROTECTED] || http://linux.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] ANNOUNCE: please have a look at ZDatabaseTool

2001-01-29 Thread Jens Vagelpohl

here's a result from the "other side of the fence": it works just fine using
IE5 on macOS 9.1 :)

jens





Jens Vagelpohl[EMAIL PROTECTED]
Software Engineer www.digicool.com
Digital Creations (888) 344-4332

Got Zope?





on 1/29/01 12:24, Andreas Heckel at [EMAIL PROTECTED] wrote:
> Perhaps we can get more feedback from WinXX users on this list ?!


___
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] Is it possible to use regular CGI's like htDig with zserver?

2001-01-29 Thread Chris Withers

> And if so, how would I set that up?

-Use Apache as your main server.
-Use mod_proxy(?) to proxypass Zope requests through to ZServer.
-install htdig as a normal CGI under Apache

cheers,

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] CoreSessionTracking and ConflictError

2001-01-29 Thread Chris McDonough

OK, I think I've reproduced this.  But I haven't fixed it.  :-(  As soon as
I do, I'll let you know...

- Original Message -
From: "Randall F. Kern" <[EMAIL PROTECTED]>
To: "Chris McDonough" <[EMAIL PROTECTED]>
Sent: Monday, January 29, 2001 5:28 PM
Subject: RE: [Zope] CoreSessionTracking and ConflictError


Yes, I mean I'm getting a conflict error on every access (for an
existing session), after a conflict.

I've read the docs, they are the best docs I've seen for anything Zope,
but they don't mention a reason why this might happen.

Any ideas?
-Randy

> -Original Message-
> From: Chris McDonough [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 29, 2001 1:47 PM
> To: Chris McDonough; Randall F. Kern; [EMAIL PROTECTED]
> Subject: Re: [Zope] CoreSessionTracking and ConflictError
>
>
> Oh, wait, I just reread that.  I only skimmed it first,
> sorry.  Are you
> saying that you get a conflict error on every access to the
> session mgr
> after you've had one conflict error?  I haven't experienced
> any failure mode
> like this.  Any concurrent write access to the session
> container has the
> possibility of causing a conflict.  getSessionData has the
> possibility of
> causing a conflict if a session key isn't found in the
> request because it
> creates a new session data object (e.g. if you run Apache's "ab" in
> concurrent mode against a method which calls getSessionData
> without giving a
> session key as part of the URL, you will get ConflictErrors
> because the
> container will be modified as new session objects are created).
>
> - Original Message -
> From: "Chris McDonough" <[EMAIL PROTECTED]>
> To: "Randall F. Kern" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> Sent: Monday, January 29, 2001 4:38 PM
> Subject: Re: [Zope] CoreSessionTracking and ConflictError
>
>
> > There is info about this in the docs.
> >
> > - Original Message -
> > From: "Randall F. Kern" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Monday, January 29, 2001 4:12 PM
> > Subject: [Zope] CoreSessionTracking and ConflictError
> >
> >
> > > I've been porting my product from my own private session
> manager to use
> > > CoreSessionTracking 0.6, and am having a problem with
> lots of conflict
> > > errors.
> > >
> > > I've got a session_id_mgr in the root, configured as per
> defaults, and a
> > > session_data_mgr also in the root, using the RAM base container.
> > >
> > > Then I have a simple DTML method:
> > >
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > Test
> > >
> > >
> > >
> > > If I goto this URL in a browser, it works fine,
> displaying "Test", with
> > > no ConflictError in my debug listing.  Then I quickly
> press Refresh
> > > twice in my browser.  This results in the page "Test", and a
> > > ConflictError in my log  (as I expected).
> > >
> > > After that, any request that uses the session data (even
> without a set)
> > > results in a ConflictError:
> > >
> > > 
> > > Title: 
> > > 
> > >
> > >
> > > Any ideas why this is happening?
> > > -Randy
> > >
> > > ___
> > > 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 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] Is Zserver "lazy" at rendering images?

2001-01-29 Thread Dieter Maurer

Ausum writes:
 > While rendering a page having several image icons, not all of them renders
 > when a normal page view, while some of them are really slow at rendering. I've
 > been trying with a not too heavy page, without any dtml tag, and it always
 > happen the same. If I reload the page the problem will always be there, and this
 > time there may be other images wich don't render. The browser's status bar gets
 > stuck at "downloading .[some image]" sometimes, and for this case it just
 > doesn't matter whether the image is in gif or jpg format.
 > 
 > Has anyone else seen this sort of Zserver image rendering "laziness", on windows
 > boxes?
I saw something similar with Zope on Solaris 2.6 and Netscape
on Linux.
Unfortunately, I was unable to reproduce it at home (Zope
and Netscape under Linux). Thus, I gave up to locate the problem.



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] LocalFS on 2.3.0

2001-01-29 Thread Andy McKay

I patched mine quickly:

--- d:\Zope23\lib\python\Products\LocalFS\LocalFS.pyMon Jan 29 13:57:00
2001

+++ d:\lib\python\Products\LocalFS\LocalFS.py   Thu Oct 19 06:42:20 2000
@@ -270,8 +270,7 @@
 _local_path = None

 def bobobase_modification_time(self):
-try: t = os.stat(self._local_path)[stat.ST_MTIME]
-except: t = time.time()
+t = os.stat(self._local_path)[stat.ST_MTIME]
 return DateTime(t)

 def __repr__(self):
@@ -977,8 +976,7 @@
 except 'Forbidden': pass

 def bobobase_modification_time(self):
-try: t = os.stat(self._local_path)[stat.ST_MTIME]
-except: t = time.time()
+t = os.stat(self._local_path)[stat.ST_MTIME]
 return DateTime(t)

 class LocalFile(

However this is just a quick works for me hack.
--
  Andy McKay.


- Original Message -
From: "Tim Cook" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, January 29, 2001 1:08 PM
Subject: [Zope] LocalFS on 2.3.0


>
> I "thought" LocalFS worked. But now when I import something with
> a LocalFS defined or attempt to create a new one here's the
> traceback on:
>
> Zope Version  Zope 2.3.0 (binary release, python 1.5.2,
> linux2-x86)
>  Python Version 1.5.2 (#10, Dec 6 1999, 12:16:27) [GCC 2.7.2.3]
>  System Platform linux2
>
>
> Error Type: AttributeError
> Error Value: _local_path
>
> Traceback (innermost last):
>   File /usr/local/zope/2.3/lib/python/ZPublisher/Publish.py, line
> 222, in publish_module
>   File /usr/local/zope/2.3/lib/python/ZPublisher/Publish.py, line
> 187, in publish
>   File /usr/local/zope/2.3/lib/python/Zope/__init__.py, line 221,
> in zpublisher_exception_hook
> (Object: Traversable)
>   File /usr/local/zope/2.3/lib/python/ZPublisher/Publish.py, line
> 171, in publish
>   File /usr/local/zope/2.3/lib/python/ZPublisher/mapply.py, line
> 160, in mapply
> (Object: manage_main)
>   File /usr/local/zope/2.3/lib/python/ZPublisher/Publish.py, line
> 112, in call_object
> (Object: manage_main)
>   File
> /usr/local/zope/2.3/lib/python/Shared/DC/Scripts/Bindings.py,
> line 324, in __call__
> (Object: manage_main)
>   File
> /usr/local/zope/2.3/lib/python/Shared/DC/Scripts/Bindings.py,
> line 353, in _bindAndExec
> (Object: manage_main)
>   File /usr/local/zope/2.3/lib/python/App/special_dtml.py, line
> 236, in _exec
> (Object: manage_main)
>   File /usr/local/zope/2.3/lib/python/DocumentTemplate/DT_In.py,
> line 711, in renderwob
> (Object: objectItems)
>   File
> /usr/local/zope/2.3/lib/python/DocumentTemplate/DT_With.py, line
> 146, in render
> (Object: sequence-key)
>   File /usr/local/zope/2.3/lib/python/DocumentTemplate/DT_Var.py,
> line 271, in render
> (Object: bobobase_modification_time)
>   File
> /usr/local/zope/2.3/lib/python/Products/LocalFS/LocalFS.py, line
> 979, in bobobase_modification_time
> (Object: myhomedir)
> AttributeError: (see above)
>
>
>
>
> -- Tim Cook, President --
> Free Practice Management,Inc. | http://www.FreePM.com Office:
> (901) 884-4126
> "Liberty has never come from the government." - Woodrow Wilson
>
> ___
> 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] Is it possible to use regular CGI's like htDig with zserver?

2001-01-29 Thread Chris Beaumont

I've been fooling around with htDig as a method of searching both my
dynamic pages and older static pages, on two different sites, and it
works great, since it's a 'spidering' search engine But since it is
running on the same machine as my Zope install, while experimenting with
it, I've had to run it on port 81, using a dedicated instance of Apache.
I realize that the "right" way to do this would be to run Zope as a CGI
and use Apache as the server, but since the performance of zserver has
been quite good I wanted to ask this. I know that Zope can serve pages
put of the filesystem. (i.e. act as a standard web server in some ways) 
Can it also avail itself of the services of Apache-compatible CGIs,
notably htDig? 

And if so, how would I set that up?


Thank you!

Chris Beaumont
[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] porting from Python Methods to PythonScriptsin2.3.0;LoginManager too

2001-01-29 Thread Jim Washington

Hi, Fred

I discovered another bug in it.  Where it changes stuff with "self[", it
changes it to "container.", which is wrong, but a simple edit.

new code:

import string
ids = container.objectIds('Python Method')
oldscriptsuffix='.old'
#replace all self. with the following:
#change to context if needed
newself = 'container'
#for future programmatic use just to be certain no extra dots
if string.find(newself,'.') >= 0:
  newself = string.replace(newself,'.','')
for method_id in ids:
  method_id = string.strip(method_id)
#get the Method and its title
  method = container[method_id]
  title = method.title
#FTPget does not require external method!
  thebody = method.manage_FTPget()
#get the params
  eop = string.find(thebody,'')
  params = thebody[8:eop]
  params = string.replace(params,' ','')
  params = string.replace(params,'self,','')
  params = string.rstrip(string.replace(params,'self',''))
  body = thebody[eop+10:]
#get the body
  newbodylist = []
  splitbody = string.split(body,'\n')
#do imports as needed
#bug: random will be imported if you use whrandom
  for animport in ['string','whrandom','random','math']:
if string.find(body,animport+'.') >= 0:
  newbodylist.append('import ' + animport)
  for k in splitbody:
#this would be a good place for re
newstring = string.replace(k,'self.',newself + '.')
#bug: might miss 'self [' wish re were available
newstring = string.replace(newstring,'self[', newself + '[')
newbodylist.append(string.rstrip(newstring))
  body = string.join(newbodylist,'\n')
# uncomment to see the raw data
#  print 'params = "%s"' % params
#  print 'body is:\n"%s"' % body
  
#rename the old and create the new.  don't do more than once.
  if method_id [-len(oldscriptsuffix):] <> oldscriptsuffix:
container.manage_renameObject(method_id,method_id+oldscriptsuffix)
   
container.manage_addProduct['PythonScripts'].manage_addPythonScript(method_id)
newscript = container[method_id]
newscript.ZPythonScript_setTitle(title)
newscript.ZPythonScript_edit(params, body)
print 'converted: \t%s' % method_id

if len(printed) < 9:
  print "No methods to convert"
return printed



Thanks for trying it.  Let me know any other bugs, and I may eventually
publish a howto.

-- Jim

> 
> Jim,
> 
> Thanks for the script.  I plan to give it a try.
>

___
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] CoreSessionTracking and ConflictError

2001-01-29 Thread Chris McDonough

Oh, wait, I just reread that.  I only skimmed it first, sorry.  Are you
saying that you get a conflict error on every access to the session mgr
after you've had one conflict error?  I haven't experienced any failure mode
like this.  Any concurrent write access to the session container has the
possibility of causing a conflict.  getSessionData has the possibility of
causing a conflict if a session key isn't found in the request because it
creates a new session data object (e.g. if you run Apache's "ab" in
concurrent mode against a method which calls getSessionData without giving a
session key as part of the URL, you will get ConflictErrors because the
container will be modified as new session objects are created).

- Original Message -
From: "Chris McDonough" <[EMAIL PROTECTED]>
To: "Randall F. Kern" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, January 29, 2001 4:38 PM
Subject: Re: [Zope] CoreSessionTracking and ConflictError


> There is info about this in the docs.
>
> - Original Message -
> From: "Randall F. Kern" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, January 29, 2001 4:12 PM
> Subject: [Zope] CoreSessionTracking and ConflictError
>
>
> > I've been porting my product from my own private session manager to use
> > CoreSessionTracking 0.6, and am having a problem with lots of conflict
> > errors.
> >
> > I've got a session_id_mgr in the root, configured as per defaults, and a
> > session_data_mgr also in the root, using the RAM base container.
> >
> > Then I have a simple DTML method:
> >
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > Test
> >
> >
> >
> > If I goto this URL in a browser, it works fine, displaying "Test", with
> > no ConflictError in my debug listing.  Then I quickly press Refresh
> > twice in my browser.  This results in the page "Test", and a
> > ConflictError in my log  (as I expected).
> >
> > After that, any request that uses the session data (even without a set)
> > results in a ConflictError:
> >
> > 
> > Title: 
> > 
> >
> >
> > Any ideas why this is happening?
> > -Randy
> >
> > ___
> > 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 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] external method and security

2001-01-29 Thread Marty Stitt


Hello,

I've written an external method that I call through xml-rpc.  It lets
me create files on the server from a stand-alone client application
that runs on the workstation of my users.

In testing it recently, I discovered that it will let me write files
to secured folders within my Zope system, even though I'm not yet
using the patch to xmlrpclib.py that supports authentication!

I'm running Zope 2.2.5 under redhat 7.0.

The external method is included below.

Any clues would be appreciated.   Thanks in advance

Is it up to me to write my own security code when using an external
method?

--

import tempfile
import OFS.content_types
import OFS.FindSupport
import string


def EWSyncAdd(self, PARMS):
  """ Create a new DTMLDocument, Image, or File object """
  
  try: filename = PARMS['filename']
  except: return "missing parm: filename"
  try: timestamp = PARMS['timestamp']
  except: return "missing parm: timestamp"
  try: contents = PARMS['contents'].data
  except: return "missing parm: contents"
  try: title = PARMS['title']
  except: return "missing parm: title"

  truepathspec = fixRPCPath(self.REQUEST)
  folderObject = self.REQUEST.resolve_url(truepathspec)
  filespec = truepathspec + '/' + filename
  itemObject = None
  if filename in folderObject.objectIds():
return "object already exists"
  
  type, enc=OFS.content_types.guess_content_type(filename, contents)
  if type in ('text/html', 'text/xml', 'text/plain'):

# Create a DTMLDocument object

folderObject.manage_addDocument(filename, title)
itemObject = self.REQUEST.resolve_url(filespec)
itemObject.manage_edit(contents, title)

  elif type[:6]=='image/':

# Create an Image object

f = tempfile.TemporaryFile()
f.write(contents)
f.seek(0)
folderObject.manage_addImage(filename, f, title=title)
f.close()
itemObject = self.REQUEST.resolve_url(filespec)

  else:

# Create a File object

f = tempfile.TemporaryFile()
f.write(contents)
f.seek(0)
folderObject.manage_addFile(filename, f, title=title)
f.close()
itemObject = self.REQUEST.resolve_url(filespec)

  if itemObject.getProperty('EWTimeStamp') is None:
itemObject.manage_addProperty('EWTimeStamp', timestamp, 'string')
  else:
itemObject.manage_changeProperties(None, EWTimeStamp=timestamp)

  return "OK"


def fixRPCPath(req):
  pathsegs = string.split(req['PATH_INFO'], '/')
  if pathsegs[1] == 'RPC2':
del pathsegs[1]
  del pathsegs[-1]
  return 'http://' + req['HTTP_HOST'] + string.join(pathsegs, '/')

  


-- 
Martin Stitt
Chief Software Engineer
Esker, Inc.
email: [EMAIL PROTECTED]
phone: (608) 273-6000 x331
fax:   (608) 273-8227
web:   http://www.esker.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] CacheManagers are cool :)

2001-01-29 Thread Seb Bacon

> > I've just been experimenting with the RAM Cache manager, and FWIW I thought
> > I'd share my findings:
...
> > There was no significant improvement where there were no concurrent
> > requests. 
> 
> very cool. although i find the lack of improvement on a non concurrent 
> requests a bit strange if its a the dtml is doing real computation vs. 
> serving a string from memory.

so do I :)

the dtml only iterates over some objects.  each object has a method
which checks the authenticated user and serves up content
accordingly.  in the test case the user is served the default view of
the object, so there's not really all that much logic going on.
perhaps this is why non concurrent, cached requests showed only a
1.3% speed improvement over uncached requests.  anyone?

> > Not exactly a real-life usage scenario, but it sounds impressive :)  Not
> > sure I understand what the cache keys are for though... is there any more
> > documentation forthcoming on this?
> 
> 
> so you can cache requests based on dynamic input. 
> 
> useful for authentication to present different cache pages to different 
> users, and also to present common request dependent information from cache.

I already read this in the online help, but for some reason my brain
only chose to understand it just now ;)
 
> as for real documentation, use the source luke

hmm, just had a quick 20 minute poke around, and I get the gist, but
I'd be happier if some obi-wan could guide me with the api docs
promised in the fishtank proposal

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] CoreSessionTracking and ConflictError

2001-01-29 Thread Chris McDonough

There is info about this in the docs.

- Original Message - 
From: "Randall F. Kern" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, January 29, 2001 4:12 PM
Subject: [Zope] CoreSessionTracking and ConflictError


> I've been porting my product from my own private session manager to use
> CoreSessionTracking 0.6, and am having a problem with lots of conflict
> errors.
> 
> I've got a session_id_mgr in the root, configured as per defaults, and a
> session_data_mgr also in the root, using the RAM base container.
> 
> Then I have a simple DTML method:
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> Test
> 
> 
> 
> If I goto this URL in a browser, it works fine, displaying "Test", with
> no ConflictError in my debug listing.  Then I quickly press Refresh
> twice in my browser.  This results in the page "Test", and a
> ConflictError in my log  (as I expected).
> 
> After that, any request that uses the session data (even without a set)
> results in a ConflictError:
> 
> 
> Title: 
> 
> 
> 
> Any ideas why this is happening?
> -Randy
> 
> ___
> 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 namespace puzzle

2001-01-29 Thread Dieter Maurer

Ron Bickers writes:
 > method(num=num SESSION=session):
 >   
 > 
 >   
 > raises KeyError "num".
 > 
 > SESSION['info'] does not have a key "num".  The only num is passed as a
 > parameter.  Did you use SQLSession to try to reproduce it, or just another
 > mapping?  Could SQLSession have something to do with it?
No, I did not use SQLSession but used a normal dictionary.

However, nothing should be able to hide "num" in the way you described.

   The DTML namespace is a stack of mappings.
   When the method is called, the keyword parameter dict is pushed onto
 this stack.
   The  pushes "SESSION['INFO']" onto the stack.

   When "num" is looked up, the namespace asks each mapping
   on the stack (from top to bottom) whether it knows
   "num". The first that does, wins.

The only thing, I could imagine, were that "SESSION['INFO']"
contained a num, but the user does not have access to its
value. However, this is incompatible with your observation
that:

  

  

  

worked. The only difference between the two pieces of code
is that the working code as an additional mapping between
the keyword parameter dict and the "dtml-with" dict.
It appears as if some magic would pop a frame from the
namespace stack. SQLSession can't do it as it does not get hold
of the namespace. "dtml-with" could but it is very strange
that it should do such things and especially that it does
for you but not for me.


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] How can a document know its own URL?

2001-01-29 Thread Dieter Maurer

Chris Withers writes:
 > Joachim Werner wrote:
 > > 
 > > >
 > > > Can anyone tell me how to use DTML to get at the  URL for the document
 > > > being displayed?
 > > >
 > > 
 > > 
 > 
 > That's not really correct. That's the url of the current request, which may well
 > not be the url of the object you're currently displaying.
 > 
 >  is the right one, and works with virtual hosting too ;-)
It depends what you mean by "the URL of a document".

If the "document" happens to be a DTML method, then
"" does not return the URL of the method.


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] How do I get a uniqueValuesFor() a subset of the catalog?

2001-01-29 Thread Dieter Maurer

Philip Aylesworth writes:
 > I am trying to get a list of unique values for one particular meta_type.
 > The uniqueValuesFor() works great but is there a way to get unique
 > values for a subset of data such as meta_type='car' then
 > uniqueValuesFor('make') would list the makes of cars but not of
 > toasters?
The "uniqueValuesFor" is an artifact of the way indexes are
implemented: a mappings. They map index terms to lists of
objects indexed under the corresponding term.
Most mappings have a "keys()" method. It gives the
"uniqueValuesFor".

That said, if you want to have "uniqueValuesFor" a subset
of the catalog, you cannot use this "keys()" method.
You must do it yourself:

  Select the objects you want, build a dictionary mapping
  the attribute you are interested in to something (say 1)
  and use the "keys()" method of this dict.

  Something like 3 to 5 lines in a PythonScript.


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] CoreSessionTracking and ConflictError

2001-01-29 Thread Randall F. Kern

I've been porting my product from my own private session manager to use
CoreSessionTracking 0.6, and am having a problem with lots of conflict
errors.

I've got a session_id_mgr in the root, configured as per defaults, and a
session_data_mgr also in the root, using the RAM base container.

Then I have a simple DTML method:










Test



If I goto this URL in a browser, it works fine, displaying "Test", with
no ConflictError in my debug listing.  Then I quickly press Refresh
twice in my browser.  This results in the page "Test", and a
ConflictError in my log  (as I expected).

After that, any request that uses the session data (even without a set)
results in a ConflictError:


Title: 



Any ideas why this is happening?
-Randy

___
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] 2.3 PythonScripts problem...

2001-01-29 Thread Dieter Maurer

Curtis Maloney writes:
 > I have just made a nice fresh Zope 2.3 install, and am having an odd problem 
 > with PythonScripts.
 > 
 > I add one from the management screen, enter the name, "add and edit", enter 
 > the code, the hit "save".  Which dumps me to my index_html.
Looks, as if you do no longer have the permission to use
any management action.

Unfortunately, I can not tell you why.



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] LocalFS on 2.3.0

2001-01-29 Thread Tim Cook


I "thought" LocalFS worked. But now when I import something with
a LocalFS defined or attempt to create a new one here's the
traceback on:

Zope Version  Zope 2.3.0 (binary release, python 1.5.2,
linux2-x86) 
 Python Version 1.5.2 (#10, Dec 6 1999, 12:16:27) [GCC 2.7.2.3] 
 System Platform linux2


Error Type: AttributeError
Error Value: _local_path

Traceback (innermost last):
  File /usr/local/zope/2.3/lib/python/ZPublisher/Publish.py, line
222, in publish_module
  File /usr/local/zope/2.3/lib/python/ZPublisher/Publish.py, line
187, in publish
  File /usr/local/zope/2.3/lib/python/Zope/__init__.py, line 221,
in zpublisher_exception_hook
(Object: Traversable)
  File /usr/local/zope/2.3/lib/python/ZPublisher/Publish.py, line
171, in publish
  File /usr/local/zope/2.3/lib/python/ZPublisher/mapply.py, line
160, in mapply
(Object: manage_main)
  File /usr/local/zope/2.3/lib/python/ZPublisher/Publish.py, line
112, in call_object
(Object: manage_main)
  File
/usr/local/zope/2.3/lib/python/Shared/DC/Scripts/Bindings.py,
line 324, in __call__
(Object: manage_main)
  File
/usr/local/zope/2.3/lib/python/Shared/DC/Scripts/Bindings.py,
line 353, in _bindAndExec
(Object: manage_main)
  File /usr/local/zope/2.3/lib/python/App/special_dtml.py, line
236, in _exec
(Object: manage_main)
  File /usr/local/zope/2.3/lib/python/DocumentTemplate/DT_In.py,
line 711, in renderwob
(Object: objectItems)
  File
/usr/local/zope/2.3/lib/python/DocumentTemplate/DT_With.py, line
146, in render
(Object: sequence-key)
  File /usr/local/zope/2.3/lib/python/DocumentTemplate/DT_Var.py,
line 271, in render
(Object: bobobase_modification_time)
  File
/usr/local/zope/2.3/lib/python/Products/LocalFS/LocalFS.py, line
979, in bobobase_modification_time
(Object: myhomedir)
AttributeError: (see above)




-- Tim Cook, President --
Free Practice Management,Inc. | http://www.FreePM.com Office:
(901) 884-4126
"Liberty has never come from the government." - Woodrow Wilson

___
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] user creation & authentification

2001-01-29 Thread Dieter Maurer

Ralf Kraemer writes:
 > is it possible to create users "not using" the zope management interface ???
 > 
 > i tried a lot using the editUsers.dtml from zope and it works , but i dont
 > like the response . 
 > i would like to see my own pages, not the management screens 
You already know "dtml-call"?
It discards an unwanted (or unnecessary) return value.

 > second question 
 > 
 > i would like to log in some user with my own login screen or how can i edit
 > the default userauthentification screens from the browser (Netscape/IE/opera) ?
You can't.

However, you can use a cookie based session product.
Such products allow you to provide your own login screens.



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] We get problems Zope is backed up!

2001-01-29 Thread Dieter Maurer

3dfestival - WebMaster writes:
 > Does anybody have a solution for our big problem? How do we backup in
 > another way...?
 > 
 > When our Zope-site is being backed up we have different probs...
 > We have (kind of) have figured out that the problem is only (!) occuring
 > when we change something on our site OR somebody adds something to our site,
 > while it is being backed up...
 > 
 > We are using Zope v2.2.4 running in Apache on a Linux-machine
What type of problems?

The only problem you might get should be that the last transaction
be incomplete. You can fix this with the "fsrecover" tool
distributed with Zope.


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] BUG? Strange behaviour of external methods after update

2001-01-29 Thread Dieter Maurer

A colleague of mine has developed an external method and installed
it as a SiteAccess access rule.
He made a programming error that caused a TypeError exception to
be raised.
He recognized his fault and corrected the external method.

Then, the strange behaviour started:

 The access rule sometimes worked correctly but sometimes
 raised the old TypeError exception.

 I had the impression as if some threads used the
 new and some other threads continued to use
 the old version of the external method.

 We flushed the cache, but to no avail.

My colleague finally reported, that renaming the external method
and reinstalling the access rule fixed the problem.

For me, it looks like a persistence bug.


Problem context:
  * Zope 2.1.6 (sorry for the old version)
  * running in production mode,
the external method was "refreshed" after modification
with the "edit" button.


Did you ever see something similar?


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] PCGI and MS-IIS on Nt5

2001-01-29 Thread Andy McKay

I suffered similar problems when I tried IIS on Windows 2k. Some people have
reported success however, so there must be some knack to this. I found
http://my.server.com/zope.pcgi worked but
http://my.server.com/zope.pcgi/as/asd didn't... If you get it working I'd
love to know how.

Sorry I cant be more help.
--
  Andy McKay.


- Original Message -
From: "Paul Zwarts" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, January 29, 2001 2:09 AM
Subject: [Zope] PCGI and MS-IIS on Nt5


> Greetings all,
>
> I've searched through Zopesite and a few docs on setting up Zope with
> MS-IIS, but I cannot get PCGI to work
>
> I followed BriaH's document and did everything. I CAN access
> http://localhost:8080/scripts/zope.pcgi and get what I want to see in
> ...
>
> so, technically I did set it up correctly, but I want to configure the
> default document so when I just put in:
>
> http://localhost
>
> I will get the root folder of my zopesite WITH the PCGI working. Now, I
> need to use:
>
> http://localhost:8080
>
> I get my website, but PCGI is not working, as I can see in  REQUEST> that it isnt connecting the PCGI. Without PCGI, my SQL Session
> will not work.
>
> If I goto http://localhost/scripts/zope.pcgi, I get what I want with the
> PCGI, but I cannot use the site because the links do not work.
>
> Can anyone explain what Im doing wrong?
>
> TIA,
> Paz
>
>
>
>
> ___
> 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] RESPONSE.redirect

2001-01-29 Thread Max M

From: [EMAIL PROTECTED] Oliver Vecernik

>I'd like to show a page and after a few seconds I'd like to redirect to
>another page. If I simply add  it is
>done immediately. How can I achieve a delay of a couple of seconds?

First you should send the page you want to show, then you should redirect to
a page with a delay. Probably you should write it in an external Python
method.

That page should then redirect to the target page.

Or you could drop the middle page and build the delay into the target page.
That is stupid though if it is also accesed from elsewhere than the first
page you want shown.

Or you could make a delay in JavaScript and after that do a
self.document.src = "new/url"

Regards Max M

Max M. W. Rasmussen,Denmark.   New Media Director
private: [EMAIL PROTECTED] work: [EMAIL PROTECTED]
-
Shipping software is an unnatural act


___
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] PCGI and MS-IIS on Nt5

2001-01-29 Thread Max M

From: Paul Zwarts

>so, technically I did set it up correctly, but I want to configure the
>default document so when I just put in:

>http://localhost

For that the easiest solution is to put a redirect in your root to:
http://localhost/scripts/zope.pcgi either through a server setting or
through an asp script with a "Response.Redirect('scripts/zope.pcgi')"

You could also put your zope.pcgi in your root folder and make it a default
document (just like 'default.htm', 'index.asp' etc), but somehow I guess
that that will bring your troubles later on.

>I will get the root folder of my zopesite WITH the PCGI working. Now, I
>need to use:

>http://localhost:8080

>If I goto http://localhost/scripts/zope.pcgi, I get what I want with the
>PCGI, but I cannot use the site because the links do not work.

If you are not using Zope 2.3 You will probably want to use:

http://www.zope.org/Members/4am/SiteAccess2

It can change your links so that they will match the ugly /scripts/zope.pcgi
url that you get through IIS.

Regards Max M


___
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] porting from Python Methods to PythonScripts in2.3.0;LoginManager too

2001-01-29 Thread Jim Washington

The text of an external method for converting Python Methods to Python
Scripts was posted to the list a while back.  I forget who because I
just copied and pasted at the time.  Anyway, credit to whoever, and
apologies for not having the name.

I took that and made something that works for me as a Python Script.
(Though my Methods have been rather simple...)

Standard caveats, YMMV, etc, but it does a quick pass on the Methods in
the folder where it is and makes Scripts from them when you hit the
'test' tab, saving the old ones as methodname.old.  It's not perfect
(e.g., it will import random if you use whrandom); it's just a bit
easier than manually editing (copy, paste, edit) for the same
functionality.  It would be pretty easy to recurse all folders and
change them all, but I am not that bold yet.  It seems debugged enough
to post.  I am sure someone will let me know if otherwise.  

-- Jim Washington

 begin code

import string
ids = container.objectIds('Python Method')
#what suffix do we want on the old Methods?
oldscriptsuffix='.old'
#replace all self. with the following:
#change to context if needed
newself = 'container'
#for future programmatic use just to be certain no extra dots
if string.find(newself,'.') >= 0:
  newself = string.replace(newself,'.','')
for method_id in ids:
  method_id = string.strip(method_id)
#get the Method and its title
  method = container[method_id]
  title = method.title
#FTPget does not require external method!
  thebody = method.manage_FTPget()
#get the params
  eop = string.find(thebody,'')
  params = thebody[8:eop]
  params = string.replace(params,' ','')
  params = string.replace(params,'self,','')
  params = string.rstrip(string.replace(params,'self',''))
  body = thebody[eop+10:]
#get the body
  newbodylist = []
  splitbody = string.split(body,'\n')
#do imports as needed
#bug: random will be imported if you use whrandom
  for animport in ['string','whrandom','random','math']:
if string.find(body,animport+'.') >= 0:
  newbodylist.append('import ' + animport)
  for k in splitbody:
#this would be a good place for re; put container where self was
newstring = string.replace(k,'self.',newself + '.')
#bug: might miss 'self [' wish re were available
newstring = string.replace(newstring,'self[', newself + '.')
newbodylist.append(string.rstrip(newstring))
  body = string.join(newbodylist,'\n')
# uncomment to see the raw data
#  print 'params = "%s"' % params
#  print 'body is:\n"%s"' % body
  
#rename the old and create the new.  don't do more than once.
  if method_id [-len(oldscriptsuffix):] <> oldscriptsuffix:
container.manage_renameObject(method_id,method_id+oldscriptsuffix)
   
container.manage_addProduct['PythonScripts'].manage_addPythonScript(method_id)
newscript = container[method_id]
newscript.ZPythonScript_setTitle(title)
newscript.ZPythonScript_edit(params, body)
print 'converted: \t%s' % method_id

if len(printed) < 9:
  print "No methods to convert"
return printed

 end code

Evan Simpson wrote:
> 
> From: "Fred Yankowski" <[EMAIL PROTECTED]>
> > + Don't copy over SiteAccess and PythonMethods.
> > + Delete the PythonMethods product from the Control_Panel/Products
> >   management folder.
> >
> > Will I have to manually convert each existing Python Method to
> > a PythonScript, or are they essentially the same type?
> 
> They are radically different types, and can therefore live in the same Zope,
> side-by-side, without conflicting.  There is no automatic conversion
> process.  Simply keep PythonMethods installed, and replace individual
> Methods with Scripts as you feel the need.

___
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] RESPONSE.redirect

2001-01-29 Thread ender

On Monday 29 January 2001 09:14, Oliver Vecernik wrote:
> Hi all,
>
> I'd like to show a page and after a few seconds I'd like to redirect to
> another page. If I simply add  it is
> done immediately. How can I achieve a delay of a couple of seconds?
>
> Oliver
>


meta refresh in your headers should do it. you can use dtml to dynamically 
insert the redirect page.

standard html (4?)

k

___
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] Products and Zope 2.3

2001-01-29 Thread Ron Bickers

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Chris
> Withers
> Sent: Monday, January 29, 2001 4:35 AM
> To: David K. Trudgett
> Cc: [EMAIL PROTECTED]
> Subject: Re: [Zope] Products and Zope 2.3
>
>
> "David K. Trudgett" wrote:
> >
> > This brings up the question: are there any significant products
> that don't
> > yet work with Zope 2.3?
>
> Squishdot for one ;-)

I'm confused by this statement.  I upgraded my Squishdot 0.7.3 / Zope 2.2.5
installation to Zope 2.3.0 and my Squishdot is working without any problems.
Am I missing something that's really broken?
___

Ron Bickers
Logic Etc, Inc.
[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] CacheManagers are cool :)

2001-01-29 Thread ender

On Monday 29 January 2001 10:15, Seb Bacon wrote:
> I've just been experimenting with the RAM Cache manager, and FWIW I thought
> I'd share my findings:
>
> I ran some simple tests using ab against a single, dynamic page which has
> some display logic both in the filesystem product and dtml.  I cached the
> index_html using the default RAM Cache Manager settings.
>
> Without caching, response time appeared to increase in direct proportion to
> the number of simultaneous requests up to 10.  Above 10 connections,
> response time worsened dramatically.  When there were 15 simultaneous
> connections, the response time averaged at approximately 10 seconds.  The
> relationship looked logarithmic, but I didn't really take enough samples to
> be sure.  Plus, the system I tested it on only has 96Mb RAM, and it was
> swapping a bit.
>
> In all cases the cache improved performance.  The average response time was
> improved by up to 70% where more than 10 concurrent users were simulated.
> There was an improvement of 20% - 25% between 5 and 10 concurrent requests.
> There was no significant improvement where there were no concurrent
> requests.  The relationship between the number of simultaneous requests and
> the response time remained linear across all measured levels of
> concurrency.


very cool. although i find the lack of improvement on a non concurrent 
requests a bit strange if its a the dtml is doing real computation vs. 
serving a string from memory.

> Not exactly a real-life usage scenario, but it sounds impressive :)  Not
> sure I understand what the cache keys are for though... is there any more
> documentation forthcoming on this?


so you can cache requests based on dynamic input. 

useful for authentication to present different cache pages to different 
users, and also to present common request dependent information from cache.

as for real documentation, use the source luke

k

___
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] License

2001-01-29 Thread Bill Anderson

Fabrice FRANK wrote:

>   I really agree, do NOT change the license terms.
> 
>

Ummm .. the software in questions has _no_ license terms yet.

Bill


___
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] porting from Python Methods to PythonScripts in 2.3.0; LoginManager too

2001-01-29 Thread Steve Drees

> + Delete the PythonMethods product from the Control_Panel/Products
>   management folder. 
> 
> Will I have to manually convert each existing Python Method to
> a PythonScript, or are they essentially the same type?

It's my understanding from reading release ntoes that PYthonScripts
and PythonMethods will co-exist peacefully.


___
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] Ithy Trigger Fingers (was Re: [Zope] License)

2001-01-29 Thread Bill Anderson

Andreas Heckel wrote:

>> EVERYTHING SNIPED!
> 
> PLEASE allow ME to choose the license freely and PLEASE STOP the
> flamewar on this thread!
> You can find tons of these licence discussions not only on this list and
> there is nothing new to say.

Come on people, this is not a flme war. Nobody is calling anyone names,

nobody is saying one is better than another, nobody other than those crying

'flame war' is being less than civil.

There is nothing wrong with _discussion_ and requests, they do not
constitute a flame war.

If someone comes on and says Zope can't do a certain thing, and
someone corrects them, is that a flame war too? After all, what has
happened so far has been nothing more than correcting a stated
misconception.

BTW, this also applies to some other cries about 'another flame war' in 
another thread.

Bill Anderson


___
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] CacheManagers are cool :)

2001-01-29 Thread Seb Bacon

I've just been experimenting with the RAM Cache manager, and FWIW I thought
I'd share my findings:

I ran some simple tests using ab against a single, dynamic page which has
some display logic both in the filesystem product and dtml.  I cached the
index_html using the default RAM Cache Manager settings.

Without caching, response time appeared to increase in direct proportion to
the number of simultaneous requests up to 10.  Above 10 connections,
response time worsened dramatically.  When there were 15 simultaneous
connections, the response time averaged at approximately 10 seconds.  The
relationship looked logarithmic, but I didn't really take enough samples to
be sure.  Plus, the system I tested it on only has 96Mb RAM, and it was
swapping a bit.

In all cases the cache improved performance.  The average response time was
improved by up to 70% where more than 10 concurrent users were simulated.
There was an improvement of 20% - 25% between 5 and 10 concurrent requests.
There was no significant improvement where there were no concurrent
requests.  The relationship between the number of simultaneous requests and
the response time remained linear across all measured levels of concurrency.

Not exactly a real-life usage scenario, but it sounds impressive :)  Not
sure I understand what the cache keys are for though... is there any more
documentation forthcoming on this?



___
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] porting from Python Methods to PythonScripts in 2.3.0; LoginManager too

2001-01-29 Thread Fred Yankowski

After browsing the Zope-dev list (I guess that's _yet another_ list I
need to follow) I found a note about creating the 'access' file
manually with zpasswd.py.  After doing that, LoginManager seems to
come up cleanly in Zope 2.3.0.

And now I can see that my Python Methods come in broken, apparently
because they depend on the PythonMethods product that I didn't carry
over.  So I guess I'll have to have to install PythonMethods and port
over those methods manually to Python Scripts.  Rats.  I'm just glad I
didn't have too much invested into PythonMethods.

-- 
Fred Yankowski   [EMAIL PROTECTED]  tel: +1.630.879.1312
Principal Consultant www.OntoSys.com   fax: +1.630.879.1370
OntoSys, Inc 38W242 Deerpath Rd, Batavia, IL 60510, USA

___
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] porting from Python Methods to PythonScripts in 2.3.0; LoginManager too

2001-01-29 Thread Evan Simpson

From: "Fred Yankowski" <[EMAIL PROTECTED]>
> + Don't copy over SiteAccess and PythonMethods.
> + Delete the PythonMethods product from the Control_Panel/Products
>   management folder.
>
> Will I have to manually convert each existing Python Method to
> a PythonScript, or are they essentially the same type?

They are radically different types, and can therefore live in the same Zope,
side-by-side, without conflicting.  There is no automatic conversion
process.  Simply keep PythonMethods installed, and replace individual
Methods with Scripts as you feel the need.

Cheers,

Evan @ digicool & 4-am


___
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] missing FCNTL.py after building Zope 2.3 on Python 1.5.2

2001-01-29 Thread Steven D. Majewski


I'm not sure exactly how the problem manifests itself in 1.5.2, but 
in 1.6 & later, there are a series of platform specific directories:
Lib/plat-{XXX} where XXX is some system, and a Lib/plat-generic/. 
That's where the FCNTL and some other files live.

If your system is not among the ones included in the distribution, it
has to build those system dependent files from the regen script in 
Lib/plat-generic/. 

It should probably be considered a bug of the build/makefile system
that that step does not get done when building Python, but only on
'make install' .  If you do a 'make test' before doing 'make install',
and it's your first build on a 'generic' platorm, it will always fail
for those ( FCNTL.py, TERMIOS.py, ... ) files. 

-- Steve Majewski 



___
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] Creating a namespace

2001-01-29 Thread Dieter Maurer

Stephan Richter writes:
 > I want to make my own name space with the following situation:
 > 
 > class X:
 > 
 > attributes = {'foo': 'bar'}
 > 
 > x = X()
 > 
 > 
 > Then I want to use it like that:
 > 
 > 
 >   
 > 
 > 
 > The result should be : bar
 > 
 > I found out that I have to somehow use TemplateDict and InstanceDict, but I 
 > have no clue how to use itOf course there is no documentation on any 
 > web site or in the Zope code itself
It is not you that use TemplateDict or InstanceDict,
it is "dtml-with" that does this (for you).

However, you need to look at permissions.
Read Brian's "Upgrade to Zope 2.2" or the reference Zope security
paper.


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] ANNOUNCE: please have a look at ZDatabaseTool

2001-01-29 Thread Andreas Heckel

Olaf Zanger wrote:
> 
> hi there
> 
> Andreas Heckel schrieb:
> >
> > Olaf Zanger wrote:
> > >
> > > hi there,
> > >
> > > tested the printing facility (nicely done by pdf).
> > >
> > > it crashes
> > > * acrobat reader 4.05 on win98 and
> > > * the pdf/ps/ghostview part of konqui doesn't like it either,
> > >
> > > it works though under
> > > * acrobat reader 4.0 on suse 7.0
> >
> > Hi Olaf,
> > thanks for your feedback.
> > Unfortunately I can't reproduce the error.
> > Development is done on Linux and it looks fine.
> > I tested it just two minutes ago on the Win98 box of my girlfriend.
> > Acrobat 4.05a 113001:28 ; IE 4.0 (version 4.72.3110.1)
> > What can I say ... it works :-(
> > So could you please have a look at the about boxes of your browser and
> > Acrobat Reader and report your versions ?
> acroread 4.05a 113001:28 (the same as yours)
> ms ie 5.00.2919.6307
> 
> also happens with
> netscape 4.73 de
> 
> so it might be acrobat reader on my system.
> 
> sorry -- can't test it more exactly without having it installed

Hi Olaf,
I'll do my best to release the code as soon as possible.
For now I turned off PDF compression. Would be interesting if it 
makes more sense to your KERNEL32.DLL :-)
Unfortunately I can't update to ie 5 on the Win98 box of my girlfriend
because she needs it for business and she prohibited to toch her (still)
running system.

How ever ... I already saw my program running on W2000 Acrobat 4.05 IE
5.5 .

Perhaps we can get more feedback from WinXX users on this list ?!

-- 

Andreas Heckel   [EMAIL PROTECTED]
UNIX is like a wigwam ...no gates ...no windows and an apache inside ;-)

___
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] RESPONSE.redirect

2001-01-29 Thread Oliver Vecernik

Hi all,

I'd like to show a page and after a few seconds I'd like to redirect to
another page. If I simply add  it is
done immediately. How can I achieve a delay of a couple of seconds?

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] Catalogaware ZCLass and deleting

2001-01-29 Thread Sven Hohage

Hello,
I try to delete a Catalogware ZClass with subobjects that are
also ZClasses.
That's my method to delete a Class:
-->>
  


   


   

But Zope answers:
   An exception occurred in a DTML method or document. 

 Error type: BadRequest
 Error value: 980785769 does not exist 
But '980785769' EXISTS in the management-interface !!  :-((


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] porting from Python Methods to PythonScripts in 2.3.0; LoginManager too

2001-01-29 Thread Fred Yankowski

I just installed Zope 2.3.0 and I'm planning how to port my sites from
2.2.5.  It looks like I'll have to:

+ Copy over the Products I installed, _except_
+ Don't copy over SiteAccess and PythonMethods.
+ Delete the PythonMethods product from the Control_Panel/Products
  management folder. 

Will I have to manually convert each existing Python Method to
a PythonScript, or are they essentially the same type?

I haven't been able to test what happens yet, because all my existing
Python Methods relate to LoginManager and I haven't been able to get
the LoginManager product to initialize correctly in 2.3.0.  I followed
the first two steps above and copied over my data.fs.  It comes up
cleanly except for an exception while loading the LoginManager and
some ZClass problems for ZClasses that depend on LoginManger.  The
exception is this:

--
2001-01-29T16:57:02 ERROR(200) Zope Couldn't import Products.LoginManager
Traceback (innermost last):
  File E:\PROGRA~1\Zope230\lib\python\OFS\Application.py, line 530, in
  import_products
(Object: string)
  File E:\PROGRA~1\Zope225\lib\python\Products\LoginManager\__init__.py, line 1, in ?
  File E:\PROGRA~1\Zope225\lib\python\Products\LoginManager\LoginManager.py, line 121, 
in ?
InstallError: No access file found at E:\Program Files\Zope230 - see INSTALL.txt
--

Can someone help me understand this?  The two INSTALL.txt files under
Zope230 offer no clues.  It's odd that the exception stack shows it
executing code from my older Zope225 installation.  How the heck can
that happen?  Is that some bug in Python?  There's nothing in my
environment that mentions Zope225, and I dumped sys.path late in z2.py
and it looks fine.

I tried deleting the LoginManager product from the management
interface and restarting, but the same exception occurs.

I do notice that, unlike prior Zope installs, there is no 'access'
file in the Zope root.

Oops, I just saw another message about LoginManager not yet working in
Zope 2.3.  If that's so, it's a show-stopper for me.

-- 
Fred Yankowski   [EMAIL PROTECTED]  tel: +1.630.879.1312
Principal Consultant www.OntoSys.com   fax: +1.630.879.1370
OntoSys, Inc 38W242 Deerpath Rd, Batavia, IL 60510, USA

___
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] ANNOUNCE: please have a look at ZDatabaseTool

2001-01-29 Thread Olaf Zanger

hi andreas,


> > according to what i have seen on the homepage it seems like ZDatabaseTool is the
> > missing link to push zope to a all in one solution.
> 
> Thanks for the flowers ;-)
that's for free :-)

> 
> > until now we solved most of our stuff with znolkwizard. this is a great product for
> > what it is designed.
> > it has some shortcomes though.
> 
> I never tested ZNolk ... I found it just 2 minutes ago on the product
> list.
> As far as I understand it helps you creating ZSQLMethods and
> ZDTMLDocuments for searching, inserting,
> updating and so on.
> 
> Unlike ZNolk ZDatabaseTool's Wizard creates a ZDatabaseWizard object. So
> if you give new features to this class
> all your already existing ZDatabaseWizard instances will take advantage
> of this new behavior.
well, that's missing in znolk :-(

> So far I only decided definiet to give the code back to the community in
> one or the other way.
that's great to hear

> 
> > is it possible to get a tarball for testing?
> Not at this time. It's my first product. There is not only one line to
> comment the code!
probably the source is the documentation?
or finally somebody helps you out with documentation.

> Das kann ich euch wirklich nicht antun. (Sorry ... Altavista is unable
> to translate this line ;-)
ah, you mean you can't do that to us?

anyway, probably you want to tag it as "alpha/beta/non documented" or so -- that
helps novices to keep fingers off :-).

anyway, as you said, you want to let it free so probably early freedom helps to raise
the child quickly :-)

olaf

-- 
soli-con Engineering Zanger
Dipl.-Ing. (FH) Olaf Marc Zanger
Lorrainestrasse 23
3013 Bern / Switzerland
Fon: +41-31-332 9782
Mob: +41-76-572 9782
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
http://www.soli-con.com

begin:vcard 
n:Zanger;Olaf Marc
tel;cell:+41-76-572 9782
tel;work:+41-31-332 9782
x-mozilla-html:FALSE
url:www.soli-con.com
org:soli-con Engineering Zanger
adr:;;Lorrainestrasse 23;Bern;BE;3013;Switzerland
version:2.1
email;internet:[EMAIL PROTECTED]
title:Dipl.-Ing.
note;quoted-printable:IT-Consulting=0D=0AEmbedded Systems=0D=0AEnergy Systems=0D=0AOpen Source Solutions=0D=0A
x-mozilla-cpt:;-32176
fn:Olaf Zanger
end:vcard



Re: [Zope] ANNOUNCE: please have a look at ZDatabaseTool

2001-01-29 Thread Olaf Zanger

hi there

Andreas Heckel schrieb:
> 
> Olaf Zanger wrote:
> >
> > hi there,
> >
> > tested the printing facility (nicely done by pdf).
> >
> > it crashes
> > * acrobat reader 4.05 on win98 and
> > * the pdf/ps/ghostview part of konqui doesn't like it either,
> >
> > it works though under
> > * acrobat reader 4.0 on suse 7.0
> 
> Hi Olaf,
> thanks for your feedback.
> Unfortunately I can't reproduce the error.
> Development is done on Linux and it looks fine.
> I tested it just two minutes ago on the Win98 box of my girlfriend.
> Acrobat 4.05a 113001:28 ; IE 4.0 (version 4.72.3110.1)
> What can I say ... it works :-(
> So could you please have a look at the about boxes of your browser and
> Acrobat Reader and report your versions ?
acroread 4.05a 113001:28 (the same as yours)
ms ie 5.00.2919.6307

also happens with 
netscape 4.73 de

so it might be acrobat reader on my system.

sorry -- can't test it more exactly without having it installed

> 
> BTW: Why I'm not surprised the trouble starts with Win ;-)
you are not alone on that -- ah, let's have another flamewar.

but, as you know there are people using this on the desktop.
probably you could tell me when you release it

thanks

olaf

p.s. the crash:

ACROBAT verursachte einen Fehler durch eine ungültige Seite
in Modul KERNEL32.DLL bei 016f:bff9db61.
Register:
EAX=c0030944 CS=016f EIP=bff9db61 EFLGS=00010212
EBX= SS=0177 ESP=008ffe68 EBP=00900104
ECX= DS=0177 ESI= FS=9d17
EDX=00900144 ES=0177 EDI=00615980 GS=
Bytes bei CS:EIP:
53 8b 15 e4 9c fc bf 56 89 4d e4 57 89 4d dc 89 
Stapelwerte:

-- 
soli-con Engineering Zanger
Dipl.-Ing. (FH) Olaf Marc Zanger
Lorrainestrasse 23
3013 Bern / Switzerland
Fon: +41-31-332 9782
Mob: +41-76-572 9782
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
http://www.soli-con.com

begin:vcard 
n:Zanger;Olaf Marc
tel;cell:+41-76-572 9782
tel;work:+41-31-332 9782
x-mozilla-html:FALSE
url:www.soli-con.com
org:soli-con Engineering Zanger
adr:;;Lorrainestrasse 23;Bern;BE;3013;Switzerland
version:2.1
email;internet:[EMAIL PROTECTED]
title:Dipl.-Ing.
note;quoted-printable:IT-Consulting=0D=0AEmbedded Systems=0D=0AEnergy Systems=0D=0AOpen Source Solutions=0D=0A
x-mozilla-cpt:;-32176
fn:Olaf Zanger
end:vcard



Re: [Zope] user creation & authentification

2001-01-29 Thread Gerald Gutierrez


>in order to accomplish the second task effectively you should look at
>LoginManager; in doing so you will find answers to your first
>question.  however, you may find you need to refer a lot to the
>mailing list archives to get LoginManager installed ;)

I've read that the LoginManager does not work properly under Zope 2.3. Will 
it be updated to work soon?



___
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] Python script safety

2001-01-29 Thread Gerald Gutierrez


At 10:18 AM 1/29/2001 +, you wrote:
>Robin Becker wrote:
> >
> > Yes, I can use External Methods if I have access to the machine, but
> > those 'trusted' scripts could be just as easily handled by a 'Trusted
> > Python Scripts' Zope object which didn't have all the rather (as you say
> > yourself) pointless safety checks. Then I could handle the safety issue
> > in Zope and not in the base OS. There would be many advantages in having
> > allowing 'unsafe' scripting inside the Zope domain.
>
>I'll second that ;-)

I'll third.


___
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] namespace problems

2001-01-29 Thread Chris Withers

Gary Lowder wrote:
> 
> When I use "context.REQUEST.RESPONSE.redirect(URL1)" in my python script
> I get "NameError URL1".

That should be:
RESPONSE = context.REQUEST.RESPONSE
URL1 = context.REQUEST['URL1']
RESPONSE.redirect(URL1)

> When I bind _ as you suggested, and use "_.RESPONSE.redirect(URL1)" I
> get "AttributeError RESPONSE".

Try _['RESPONSE'].redirect(_['URL1'])

errr... maybe DTML wasn't so bad afterall ;-)

*sigh*

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] Re: [Zope-dev] Creating a namespace

2001-01-29 Thread Casey Duncan

Stephan Richter wrote:
> 
> Hello everyone,
> 
> I want to make my own name space with the following situation:
> 
> class X:
> 
> attributes = {'foo': 'bar'}
> 
> x = X()
> 
> Then I want to use it like that:
> 
> 
>   
> 
> 
> The result should be : bar
> 
> I found out that I have to somehow use TemplateDict and InstanceDict, but I
> have no clue how to use itOf course there is no documentation on any
> web site or in the Zope code itself
> 
> Thanks for you help!!!
> 
> Regards,
> stephan
> --
> Stephan Richter
> CBU - Physics and Chemistry Student
> Web2k - Web Design/Development & Technical Project Management
> 


I think the key to your problem is the "mapping" option of dtml-with. If
your class/External method returns a dictionary, you can add it to the
namespace like so:





You do not need to explicitly create a new InstanceDict yourself,
dtml-with takes care of that.

-- 
| Casey Duncan
| Kaivo, Inc.
| [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] namespace problems

2001-01-29 Thread Gary Lowder

I really appreciate your help, but I continue to have problems with this
line, and this is turning into a quest of sorts  ;)  .

When I use "context.REQUEST.RESPONSE.redirect(URL1)" in my python script
I get "NameError URL1".
When I bind _ as you suggested, and use "_.RESPONSE.redirect(URL1)" I
get "AttributeError RESPONSE".

I'm confused, but very grateful for your help so far.

Gary.



Chris Withers wrote:
> 
> > Chris Withers wrote:
> > >
> > > > How would I do the URL redirect using an equivalent to the
> > > >that's in the DTML Method below?
> > >
> > > context.RESPONSE.redirect(URL1)
> 
> D'Oh...
> 
> Either replace it with:
> 
> context.REQUEST.RESPONSE.redirect(URL1)
> 
> ...or do the following:
> 
> -Go to the bindings tab and bind _ to the Namespace.
> -Then do _.RESPONSE.redirect(URL1)
> 
> cheers,
> 
> 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] missing FCNTL.py after building Zope 2.3 on Python 1.5.2

2001-01-29 Thread Brian Lloyd

> Are there any comments regarding the missing of a module named FCNTL.py
> ?
> 
> It happens that I just built Zope 2.3 from source on a Python 1.5.2
> installation and after compiling and building successfully just after
> the "./start" command, Zope crases with a "no module named FCNTL" .

This is odd - it actually crashes? The only part of the code 
that tries to use FCNTL is in the __init__.py of ZServer:


try:
import fcntl, FCNTL
FCNTL.F_SETFD; FCNTL.FD_CLOEXEC
def requestCloseOnExec(sock):
try:fcntl.fcntl(sock.fileno(), FCNTL.F_SETFD, FCNTL.FD_CLOEXEC)
except: pass

except (ImportError, AttributeError):

def requestCloseOnExec(sock):
pass


...and it is specifically designed to fail gracefully if FCNTL 
support is not available. The fact that you are getting an 
error message of "no module named FCNTL" makes it _sound_ like 
an ImportError, which should be caught. Can you send me a copy 
of the whole traceback (maybe we are somehow getting something 
other than ImportError)?



> Just by the way, recommended  trustworthy ways to find out if the Python
> installation has been compiled with threads enabled -besides knowing
> that it is a plain vanilla RPM install and what that may or may not
> imply - ...?

Start python from the command line and try:

import thread

if you get an ImportError, threading is probably not compiled
in...


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] How to upgrade to 2.3 (no differential install?)

2001-01-29 Thread Brad Clements

I'm running Zope 2.2 on RH Linux 7

I see that there's no 2.2-to-2.3 .tar file.. Why?

What's the correct way to upgrade my existing Zope installation?

--

Call me stupid, I can't find the proper command line switch to get tar to 
ignore the top level directory name Zope-2.3.0-linux2-86

Do I have to untar into a junk directory, then cp -r everything to my 
current dir?



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

___
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] ANNOUNCE: please have a look at ZDatabaseTool

2001-01-29 Thread Jerome Alet

On Mon, 29 Jan 2001, Andreas Heckel wrote:

> BTW: Why I'm not surprised the trouble starts with Win ;-)

Oh, please !!!

Please don't start a new flamewar here ;-))

bye,

Jerome Alet


___
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] ZObjectManager

2001-01-29 Thread peter bengtson

Here we go...

'Hitrate' is the whole product.
HitrateText_add() is a method you find _inside_ the ZClass called
'HitratePage' (notice the dtml-with statm.)
NoRedir is a variable I send to that method to tell it not to redirect
anywhere.


 


Hope it helps!
Mvh, Peter



- Original Message -
From: "Gordon Bergström" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, January 29, 2001 1:53 PM
Subject: [Zope] ZObjectManager


> Dear Group.
>
> I have made a Product and a Class that is ZObjectManager. But how do I
> create Object instances within the instance of the Class? I want to do
this
> programmaticly.
>
> Reagrds
>
> Gordon Bergström
>
>
> ___
> 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] ANNOUNCE: please have a look at ZDatabaseTool

2001-01-29 Thread Andreas Heckel

Olaf Zanger wrote:
> 
> hi there,
> 
> tested the printing facility (nicely done by pdf).
> 
> it crashes
> * acrobat reader 4.05 on win98 and
> * the pdf/ps/ghostview part of konqui doesn't like it either,
> 
> it works though under
> * acrobat reader 4.0 on suse 7.0

Hi Olaf,
thanks for your feedback.
Unfortunately I can't reproduce the error.
Development is done on Linux and it looks fine.
I tested it just two minutes ago on the Win98 box of my girlfriend.
Acrobat 4.05a 113001:28 ; IE 4.0 (version 4.72.3110.1)
What can I say ... it works :-(
So could you please have a look at the about boxes of your browser and 
Acrobat Reader and report your versions ?

BTW: Why I'm not surprised the trouble starts with Win ;-)

-- 

Andreas Heckel   [EMAIL PROTECTED]
UNIX is like a wigwam ...no gates ...no windows and an apache inside ;-)

___
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] problems with URL passing again

2001-01-29 Thread Horatio B. Bogbindero


> > 
> > 
> 
>Sometimes id is not a string, but a function to call: id(). To force
> Zope renders it to string always write _['id'].
>Zope 2.3 has getId() that is always function.
> 

a million thanks to you and may the gods bless you! hehehe. in other
words, it worked! where is this feature/bug documented?


--
William Emmanuel S. Yu
Ateneo Cervini-Eliazo Networks (ACENT)
email  :  [EMAIL PROTECTED]
web:  http://cersa.admu.edu.ph/
phone  :  63(2)4266001-5925/5904
 
today, n.:
A nice place to visit, but you can't stay here for long.
 


___
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] License

2001-01-29 Thread Andreas Heckel

> EVERYTHING SNIPED!
PLEASE allow ME to choose the license freely and PLEASE STOP the
flamewar on this thread!
You can find tons of these licence discussions not only on this list and
there is nothing new to say.

-- 

Andreas Heckel   [EMAIL PROTECTED]
UNIX is like a wigwam ...no gates ...no windows and an apache inside ;-)

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

2001-01-29 Thread Andy Dustman

On Sun, 28 Jan 2001, Jens Grewen wrote:

> I installed 
> 
> mySQL-3.23.32
> mySQLdb 0.3.1
> ZmySQLDA 2.0.4
> 
> When I change to mediumint (database field description) I get the
> expected 233.
> 
> How can I fix this.

You just did. :) If a mediumint is big enough for you, use that. As Ron
points out, INTEGER (particularly UNSIGNED) can overflow in Python, so
they need to be returned as Python long integers. Python adds the L when
doing str(), but Python 2.0+ does not do this (only on repr()).

-- 
Andy Dustman PGP: 0xC72F3F1D
@   .net http://dustman.net/andy
"Normally with carbonara you use eggs, but I used lobster brains instead."
-- Masahiko Kobe (Iron Chef Italian): 30-year-old Giant Lobster Battle


___
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] ANNOUNCE: please have a look at ZDatabaseTool

2001-01-29 Thread Andreas Heckel

Olaf Zanger wrote:
> 
> hi there,
> 
> according to what i have seen on the homepage it seems like ZDatabaseTool is the
> missing link to push zope to a all in one solution.

Thanks for the flowers ;-)
 
> until now we solved most of our stuff with znolkwizard. this is a great product for
> what it is designed.
> it has some shortcomes though.

I never tested ZNolk ... I found it just 2 minutes ago on the product
list.
As far as I understand it helps you creating ZSQLMethods and
ZDTMLDocuments for searching, inserting,
updating and so on.

Unlike ZNolk ZDatabaseTool's Wizard creates a ZDatabaseWizard object. So
if you give new features to this class
all your already existing ZDatabaseWizard instances will take advantage
of this new behavior. 

I know there is a lot of work especially to document the design. Perhaps
I should start 
with a small UML diagram.

> is the product planned to ship under GPL or an corresponding licence?
I really don't know. Fortunately it is not yet released so I can think
about it :-)
So far I only decided definiet to give the code back to the community in
one or the other way.
 
> is it possible to get a tarball for testing?
Not at this time. It's my first product. There is not only one line to
comment the code! 
Das kann ich euch wirklich nicht antun. (Sorry ... Altavista is unable
to translate this line ;-)

-- 

Andreas Heckel   [EMAIL PROTECTED]
UNIX is like a wigwam ...no gates ...no windows and an apache inside ;-)

___
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+SybDA]Multiplexed or not ?

2001-01-29 Thread Tony Moutaux

Hi list!

I run: -zope 2.2.4 -python 1.5.2 - solairs (sunos5) on ES450
and the ZopeSybase DA v2. I am not sure if the SQL transactions are
multiplexed (I mean that I can run several SQL requests at the same
time). I try :
/A/firstZSQLMethod - firstSybDA
/B/anotherZSQLMethod - anotherSybDA, but on the same sybase server
in two browsers running in two differents computer, and it seems the
second transaction is always waiting for the first to finish, before
running (so it will mean there is no multiplexed).

I'm not sure what the problem is, how to test and perharps fix it. What
I know is that the SybaseDA v2 claimed to be fully multithreaded.
But now :
-How do I test if Zope+SybDA is truly multiplexed ? I have try 2
simultaneous requests, but there is so much parameters (os, python,
zope, sybda ...) that I don't know if it is the right direction.
-How do I test if Python 1.5.2 is trully multitrheaded ? It is "home
mad", I have to compile it with the Sun C compiler because there is no
GNU tools on our system, and I have done a lot of work to have python
compiling. So perharps I miss something about multithreading in python.

Thanks a lot for advise.
Tony

___
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] Core Session

2001-01-29 Thread Chris McDonough

> Any ideas when it will land?


Nope.  It's pretty stable now, but any release that shows up in the core
depends on a new BTree implementation, which has been slow in the making.


___
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] Core Session

2001-01-29 Thread Chris Withers

Chris McDonough wrote:
> 
> > Any ideas when it will land?
> 
> Nope.  It's pretty stable now, but any release that shows up in the core
> depends on a new BTree implementation, which has been slow in the making.

rats... although I'd love to see a snappy new BTree implementation... got lots
of projects that use the current one :-)

cheers,

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] ZObjectManager

2001-01-29 Thread Gordon Bergström

Dear Group.

I have made a Product and a Class that is ZObjectManager. But how do I 
create Object instances within the instance of the Class? I want to do this 
programmaticly.

Reagrds

Gordon Bergström


___
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] License

2001-01-29 Thread Jerome Alet

On Mon, 29 Jan 2001, Chris Withers wrote:

> And the reason I asked is 'cos, as I understand it, if I use a GPL-licensed
> product in a product/solution I provide, then I have to do that for free and
> open source it too, which often isn't an option :-(

Of course you DON'T have to do your work for free !!! How could someone  
make a living.

The GPL says clearly that you are perfectly allowed to sell your work.

However if your soft is GPLed or uses some GPLed code then you must
distribute (sell) your code along with all its sources, or the sources
should be made available for all at a minimal fee covering the
reproduction costs (a CDR probably)

The point is you should sell your service instead of your code.

hoping this will help your better undersstand what the GPL is all about.

bye,

Jerome Alet


___
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] License

2001-01-29 Thread Gregor Hoffleit

On Mon, Jan 29, 2001 at 12:58:35PM +, Chris Withers wrote:
> And the reason I asked is 'cos, as I understand it, if I use a GPL-licensed
> product in a product/solution I provide, then I have to do that for free and
> open source it too, which often isn't an option :-(

Nope, that's wrong.

If you extend a GPL-licensed product by your own work, and if you want to
distribute this to somebody else, then you have to give this "somebody" the
right to re-distribute the complete product (including your own work) under
the terms of the GPL.

Therefore it's no problem to sell such a product... The important thing is,
though, that your customer could give away the result to everybody else for
free (and could do everything else with it that the GPL allows).

And in fact, yes, you'll have to make available the sources of your work,
too, for your customer--if he demands to see them.

So it's perfectly fine to use GPL software in a consulting work, and let the
customer pay for it--if you give him all the other rights granted in the
GPL.


A very crucial point is the exact definition of "extending a
GPL-licensed product" (that's my own words for "derived work"). According to
the FSF, typical things of "deriving a work" from a GPL-licensed product are
probably modifying or extending the code, reusing portions of the code, but
also linking with it (be it statically or shared). In the field of
interpreted languages, it gets even more complicated.

It's completely clear on the other hand, that a mere aggregetion of the
product (e.g. distribution GNU emacs on a CD with proprietary software) is
no problem, and it's also no problem to use GNU tools to produce proprietary
output (e.g. using GCC to compile a proprietary program).



The GPL definitely is not contra selling software or services (one could
even argue that it's the perfect solution for specialized consulting
products, since it gives the customer a security that he'll be able to buy
support for a product even if the original author has lost interest).

Have a look at www.gnu.org, e.g. "Selling Free Software" by RMS
(http://www.gnu.org/philosophy/selling.html) is especially interesting.


Gregor


___
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] problems with URL passing again

2001-01-29 Thread Oleg Broytmann

On Mon, 29 Jan 2001, Horatio B. Bogbindero wrote:
> 
> 

   Sometimes id is not a string, but a function to call: id(). To force
Zope renders it to string always write _['id'].
   Zope 2.3 has getId() that is always function.

Oleg.

 Oleg Broytmann http://www.zope.org/Members/phd/ [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] License

2001-01-29 Thread Fabrice FRANK

I really agree, do NOT change the license terms.

Fabrice FRANK 
Chef de projet Extranet
BOPACK T.E.A
Z.A La Claire Voie
76520 Franqueville
Tél. 02 32 86 52 69
Fax. 02 32 86 52 51


-Message d'origine-
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]De la part de ender
Envoyé : lundi 29 janvier 2001 06:38
À : Chris Withers; [EMAIL PROTECTED]
Cc : [EMAIL PROTECTED]; Zope Mailinglist
Objet : Re: [Zope] License


On Monday 29 January 2001 01:41, Chris Withers wrote:
> Olaf Zanger wrote:
> > is the product planned to ship under GPL or an corresponding licence?
>
> Please don't shit it under GPL, it makes it much less useful :-S
> A variant of the Zope License would be much mroe friendly :-)
>
> cheers,
>
> Chris


just what i needed to start the week off right, a flamewar. :(

please allow people to choose their licenses freely. knocking on the gpl, is
ignoring the reason why its there, to allow people to give their work freely
to the community without concern of it being subverted.

k

___
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] License

2001-01-29 Thread Chris Withers

Chris Withers wrote:
> 
> Please don't shit it under GPL, it makes it much less useful :-S

*embarrassed laughs*

Man, what a typo...

I actually meant ship, beleive it or not. 


And the reason I asked is 'cos, as I understand it, if I use a GPL-licensed
product in a product/solution I provide, then I have to do that for free and
open source it too, which often isn't an option :-(

Cheers,

Chris (the typo king ;-)

___
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] License

2001-01-29 Thread ender

On Monday 29 January 2001 01:41, Chris Withers wrote:
> Olaf Zanger wrote:
> > is the product planned to ship under GPL or an corresponding licence?
>
> Please don't shit it under GPL, it makes it much less useful :-S
> A variant of the Zope License would be much mroe friendly :-)
>
> cheers,
>
> Chris


just what i needed to start the week off right, a flamewar. :(

please allow people to choose their licenses freely. knocking on the gpl, is 
ignoring the reason why its there, to allow people to give their work freely 
to the community without concern of it being subverted.

k

___
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] problems with URL passing again

2001-01-29 Thread Horatio B. Bogbindero


here is a piece of code from article.html:


**









then i access it via

http://localhost:8080/article.html?pass_id=validid

and validid is a valid id of a dtml method in the
articles folder. however, i get weird results:

*validid*
0 0 

which is weird because getting a 0 0 means that none
of the ids matched. more weirdness?
 
--
William Emmanuel S. Yu
Ateneo Cervini-Eliazo Networks (ACENT)
email  :  [EMAIL PROTECTED]
web:  http://cersa.admu.edu.ph/
phone  :  63(2)4266001-5925/5904
 
today, n.:
A nice place to visit, but you can't stay here for long.
 


___
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] user creation & authentification

2001-01-29 Thread seb bacon

ralf,

> is it possible to create users "not using" the zope management interface ???

> i would like to log in some user with my own login screen or how can i edit
> the default userauthentification screens from the browser (Netscape/IE/opera) ?

my advice:
in order to accomplish the second task effectively you should look at
LoginManager; in doing so you will find answers to your first
question.  however, you may find you need to refer a lot to the
mailing list archives to get LoginManager installed ;)

seb

http://www.zope.org/Members/tsarna/LoginManager

___
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] Products and Zope 2.3

2001-01-29 Thread Tim Cook

"iap_y2fun.com" wrote:
> 
> I can't import EventFolder due to "tuple have no method 'append'" error.
> I am not sure if someone else encountered the same problem?

I imported a slightly modified version (cosmetics basically) of
EventFolder without problems. You may want to try that again. 

May not be related. But, that's the same error I got when trying
to import a folder. I cleared the catalog and rebuilt it. It
worked fine. Check the traceback to see where the error is coming
from.

-- Tim Cook, President --
Free Practice Management,Inc. | http://www.FreePM.com Office:
(901) 884-4126
"Liberty has never come from the government." - Woodrow Wilson

___
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] We get problems Zope is backed up!

2001-01-29 Thread Kevin Teague

>Does anybody have a solution for our big problem?

Heh-he. "Zope is backed up" makes it sound like Zope is a toilet in bad need
of a plumber.

Sorry, couldn't resist :)

> We are using Zope v2.2.4 running in Apache on a Linux-machine

Perhaps using the rsync technique here would make the back-ups happen
quicker (but probably not solve the problem):

http://www.zope.org/Members/jrush/howto_rsync_zope


Kevin Teague
http://www.bud.ca


___
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] let problem (or just a stupid newbie)

2001-01-29 Thread Etienne Labuschagne

Hi there

You must close the  tag like below (exactly what the error said ;)

  
  
   
-->  
   

-Original Message-
From: Hans de Wit [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 29, 2001 12:58 PM
To: [EMAIL PROTECTED]
Subject: [Zope] let problem (or just a stupid newbie)



___
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] user creation & authentification

2001-01-29 Thread Ralf Kraemer

Hello all

first question 

is it possible to create users "not using" the zope management interface ???

i tried a lot using the editUsers.dtml from zope and it works , but i dont
like the response . 
i would like to see my own pages, not the management screens 

second question 

i would like to log in some user with my own login screen or how can i edit
the default userauthentification screens from the browser (Netscape/IE/opera) ?

thanks

Ralf Kraemer


___
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] License

2001-01-29 Thread Oleg Broytmann

On Mon, 29 Jan 2001, Andrew Kenneth Milton wrote:
> | > > is the product planned to ship under GPL or an corresponding licence?
> | >
> | > Please don't shit it under GPL, it makes it much less useful :-S
> | > A variant of the Zope License would be much mroe friendly :-)
> |
> |OH, NO, PLEASE NOT AGAIN :( NONE OF THESE LICENSE WARS, PLE-E-E-SE! Do
> | allow people to choose their licenses freely!
>
> Geez Oleg, all he did was make a request... chill on the caps..

   Those requests with these answers ("Please don't shit it under GPL")
produce flamewars far too easily :(

Oleg.

 Oleg Broytmann http://www.zope.org/Members/phd/ [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] License

2001-01-29 Thread Andrew Kenneth Milton

+---[ Oleg Broytmann ]--
| On Mon, 29 Jan 2001, Chris Withers wrote:
| > Olaf Zanger wrote:
| > >
| > > is the product planned to ship under GPL or an corresponding licence?
| >
| > Please don't shit it under GPL, it makes it much less useful :-S
| > A variant of the Zope License would be much mroe friendly :-)
| 
|OH, NO, PLEASE NOT AGAIN :( NONE OF THESE LICENSE WARS, PLE-E-E-SE! Do
| allow people to choose their licenses freely!

Geez Oleg, all he did was make a request... chill on the caps..

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[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] let problem (or just a stupid newbie)

2001-01-29 Thread Oleg Broytmann

On Mon, 29 Jan 2001, Hans de Wit wrote:
> 
> 
> 
> 
[skip]
> Document Template Parse Error: (see above)

   But of course. dtml-let must be closed with 

Oleg.

 Oleg Broytmann http://www.zope.org/Members/phd/ [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] We get problems Zope is backed up!

2001-01-29 Thread 3dfestival - WebMaster

Does anybody have a solution for our big problem? How do we backup in
another way...?

When our Zope-site is being backed up we have different probs...
We have (kind of) have figured out that the problem is only (!) occuring
when we change something on our site OR somebody adds something to our site,
while it is being backed up...

We are using Zope v2.2.4 running in Apache on a Linux-machine

( = Stoons = )
 - Webmaster @ 3D festival (http://www.3dfestival.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] License

2001-01-29 Thread Oleg Broytmann

On Mon, 29 Jan 2001, Chris Withers wrote:
> Olaf Zanger wrote:
> >
> > is the product planned to ship under GPL or an corresponding licence?
>
> Please don't shit it under GPL, it makes it much less useful :-S
> A variant of the Zope License would be much mroe friendly :-)

   OH, NO, PLEASE NOT AGAIN :( NONE OF THESE LICENSE WARS, PLE-E-E-SE! Do
allow people to choose their licenses freely!

Oleg.

 Oleg Broytmann http://www.zope.org/Members/phd/ [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] let problem (or just a stupid newbie)

2001-01-29 Thread Chris Withers

Hans de Wit wrote:
> 
> I was trying the following dtml-method (just from the book) in my Zope 2.3.0 Windows 
>NT
> installation

Really? direct from the book?

> 
> 
> 
> 
> 

...that should be:







> "No closing tag, for tag , on line 2 of nog"

To be fair, that's a pretty descriptive error message ;-)

> Did i do something wrong?, it must, since this is rather basic, isn't it?  I posted 
>it to
> the collector as a question, but i am not sure whether that is correct.

Ooo... the collector is probably a little excessive. Generally ask on the list
if you want to stick something in the collector, that's what I do most of the
time ;-)

cheers,

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] Python script safety

2001-01-29 Thread Chris Withers

Robin Becker wrote:
> 
> Yes, I can use External Methods if I have access to the machine, but
> those 'trusted' scripts could be just as easily handled by a 'Trusted
> Python Scripts' Zope object which didn't have all the rather (as you say
> yourself) pointless safety checks. Then I could handle the safety issue
> in Zope and not in the base OS. There would be many advantages in having
> allowing 'unsafe' scripting inside the Zope domain.

I'll second that ;-)

cheers,

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 )




  1   2   >