Re: [Zope-dev] Windows registry?

2001-02-12 Thread Chris Maresca
If I recall correctly, there is a tool for doing this call srvany, part of the resource kit. Mine installed as a service on w2k by default... Chris. On Mon, 12 Feb 2001, Andy McKay wrote: > Anyone tried or got a script to create / delete the windows registry > settings for running a zope serv

Re: [Zope-dev] ThreadSafeCounter 0.0.1 released

2001-02-12 Thread Morten W. Petersen
[Erik Enge] | Forget it. My fault. *shame, shame* *chuckle* :-) -Morten ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/m

[Zope-dev] Re: ThreadSafeCounter

2001-02-12 Thread Morten W. Petersen
[Andy McKay] | I released FSPoll recently and was going to combine the two into one | FSCountThing with FSPoll and FSCounter subclassing of it, so maybe we could | co-operate on ThreadSafeCounter and FSCounter? The ideal solution would be to use an object that lives in the ZODB, I wonder if ther

[Zope-dev] ProxyPass and SiteAccess getting REMOTE_ADDR

2001-02-12 Thread William Noon
Last week I was setting up an Apache VirtualHost to point to a Zope object tree using the ProxyPass directive and SiteAccess to get all the urls right (great stuff!). However, I noticed that the REMOTE_ADDR was always set to the proxy host. This makes sense because Zope just gets the host/port

Re: [Zope-dev] Updates! Refresh, BTreeFolder, and ZDebug products

2001-02-12 Thread Shane Hathaway
On 13 Feb 2001, Erik Enge wrote: > [Shane Hathaway] > > | If no one reports any problems > > No problems so far :). Tried them with Zope 2.2.1. Good to hear! > | But here's the biggest news: the Refresh product > > Excellent! When will this be included in standard Zope distributions? Probabl

[Zope-dev] Windows registry?

2001-02-12 Thread Andy McKay
Anyone tried or got a script to create / delete the windows registry settings for running a zope server as a service. It would make my life a lot easier... If no-one has I could recreate them from observation. Cheers. -- Andy McKay. ___ Zope-Dev m

[Zope-dev] ThreadSafeCounter

2001-02-12 Thread Andy McKay
So the only difference between this and FSCounter is that you implemented the locking I didn't. To cut a long story short the reason i didnt implement locking was Python on Windows doesnt have fnctl (http://velocity.activestate.com/docs/ActivePython/lib/module-fcntl.html), Perl does though If

Re: [Zope-dev] Updates! Refresh, BTreeFolder, and ZDebug products

2001-02-12 Thread Erik Enge
[Shane Hathaway] | If no one reports any problems No problems so far :). Tried them with Zope 2.2.1. | But here's the biggest news: the Refresh product Excellent! When will this be included in standard Zope distributions? ___ Zope-Dev maillist -

Re: [Zope-dev] ThreadSafeCounter 0.0.1 released

2001-02-12 Thread Erik Enge
[Erik Enge] | On every view - a call to index_html() - it prints '{}' to stdout. Bug? Forget it. My fault. *shame, shame* ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encodin

Re: [Zope-dev] ThreadSafeCounter 0.0.1 released

2001-02-12 Thread Erik Enge
[Morten W. Petersen] | There's a new product available, which enables unique ids in a given context, | take a look at http://www.zope.org/Members/morphex/ThreadSafeCounter>. On every view - a call to index_html() - it prints '{}' to stdout. Bug? ___

Re: [Zope-dev] Updates! Refresh, BTreeFolder, and ZDebug products

2001-02-12 Thread Andy McKay
> But here's the biggest news: the Refresh product, which makes life just > a little bit easier for filesystem product developers, now has an > auto-refresh feature and the ability to set up dependent products. This > means changes to your Python modules are instantly recognized by Zope > and dev

[Zope-dev] Updates! Refresh, BTreeFolder, and ZDebug products

2001-02-12 Thread Shane Hathaway
Gang, BTreeFolder, now at version 0.2, has been updated for Zope 2.3.0, including the managment interface and the fix for a clipboard bug. Come'n get it! http://www.zope.org/Members/hathawsh/BTreeFolder If no one reports any problems, I think we can consider this version "stable" and re-label

Re: [Zope-dev] http headers

2001-02-12 Thread Shane Hathaway
Steve Spicklemire wrote: > > Another you might consider (though Shane's is great, but > required Tkinter, which not everybody (me!) has really easy > accesss to... ) is the more browser based, but less flexible: > > http://www.cyberclip.com/webdebug/ Ooh, that's a good idea. I bet it could tak

Re: [Zope-dev] http headers

2001-02-12 Thread Steve Spicklemire
Another you might consider (though Shane's is great, but required Tkinter, which not everybody (me!) has really easy accesss to... ) is the more browser based, but less flexible: http://www.cyberclip.com/webdebug/ -steve > "SA" == Steve Alexander <[EMAIL PROTECTED]> writes: SA> Tim

Re: [Zope-dev] manage_ methods

2001-02-12 Thread Dieter Maurer
Chris Withers writes: > Is it true that you have to have the Manager role to use any methods that start > with manage_? No. "manage_" methods are mapped to permissions (as are any other methods). You can decide which roles have which permissions. If you like, you can 'Anonymous' (or any

Re: [Zope-dev] EmployX 0.0.2

2001-02-12 Thread Johan Carlsson
> What does it do? Nothing really. It's just example code of DataSkins in Python, I kind of lacked that myself some days ago. It's basically a Dataskin that stores 4 properties and 2 computed attributes supplied from the Rack or the Customizer (subclassed Folder w/Cust and subclassed Specialist

Re: [Zope-dev] EmployX 0.0.2

2001-02-12 Thread Chris McDonough
What does it do? - Original Message - From: "Johan Carlsson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, February 12, 2001 2:36 PM Subject: [Zope-dev] EmployX 0.0.2 I've put up the latest version of my DataSkin as Python Laboration Product I have done 2/3 of my goal, that

[Zope-dev] EmployX 0.0.2

2001-02-12 Thread Johan Carlsson
I've put up the latest version of my DataSkin as Python Laboration Product I have done 2/3 of my goal, that is to have Plugin/DataSkins. (the next 4/3 will probably be to let a SQL-server take care of the attributes.) If anybody would have a peek it's at: http://www.zope.org/Members/johanc/ZPa

Re: [Zope-dev] Programmatic way to get the Zope Version

2001-02-12 Thread Casey Duncan
Steve Alexander wrote: > > Chris Withers wrote: > > > Hi, > > > > I was if do something like: > > > > if zope_version >= 2.3: > > # balh > > else: > > # blah > > > > Where do I get the zope_version bti and what format will it be in? > > You can get it as version_txt from Control_Panel. For

[Zope-dev] DateTime Patch

2001-02-12 Thread Casey Duncan
I have concluded that DateTime has bugs in its isCurrent* methods. Basically isCurrentMinute, isCurrentHour, isCurrentDay and isCurrentMonth all would return true at inappropriate times. For instance, isCurrentDay will currently return true if the day number of the date is equal to the current da

Re: [Zope-dev] problems with LoginManager and proxies

2001-02-12 Thread Phillip J. Eby
At 09:29 AM 2/12/01 -0500, Tim McLaughlin wrote: >thanks to the excellent tool (tcpwatch) I was able to pinpoint the issue I >am having with LoginManager. It seems that it is returning an HTTP/1.0 500 >Internal Server Error as the response to the proxy which then tells the >browser that the page

[Zope-dev] zpopyda problems with typecasting

2001-02-12 Thread Tim McLaughlin
Timestamp columns do not seem to be converted to DateTime objects in Zope when used with 2.2.4 and PoPy 1.4.1 and ZPoPyDA 1.0.1. It returns a string object which will not convert to a DateTime without some help. The string returned is this '2001-01-24 21:52:19-05' which does not convert because of

RE: [Zope-dev] Greedy except clauses

2001-02-12 Thread Barry A. Warsaw
> "TJ" == Tom Jenkins <[EMAIL PROTECTED]> writes: TJ> I agree. I think this would be a good project for new zope TJ> developers to get into the zope code. Would we need an TJ> ZopeException class hierarchy? IME, it's been a good idea to have a root exception class per subsyste

Re: [Zope-dev] ThreadSafeCounter 0.0.1 released

2001-02-12 Thread Martijn Pieters
On Mon, Feb 12, 2001 at 02:27:24PM +, Toby Dickenson wrote: > On Mon, 12 Feb 2001 10:27:02 +0100, Martijn Pieters <[EMAIL PROTECTED]> > wrote: > > >The ZODB will invalidate and force a retry on one of the connections. > >Chris's code is threadsafe and will result in unique, sequential values.

Re: [Zope-dev] ThreadSafeCounter 0.0.1 released

2001-02-12 Thread Toby Dickenson
On Mon, 12 Feb 2001 10:27:02 +0100, Martijn Pieters <[EMAIL PROTECTED]> wrote: >The ZODB will invalidate and force a retry on one of the connections. >Chris's code is threadsafe and will result in unique, sequential values. ** Unless

[Zope-dev] problems with LoginManager and proxies

2001-02-12 Thread Tim McLaughlin
thanks to the excellent tool (tcpwatch) I was able to pinpoint the issue I am having with LoginManager. It seems that it is returning an HTTP/1.0 500 Internal Server Error as the response to the proxy which then tells the browser that the page is a no go (despite the fact that the login page foll

Re: [Zope-dev] http headers

2001-02-12 Thread Steve Alexander
Tim McLaughlin wrote: > Anyone know how I can log or view the http headers that Zope sends when it > responds to a http request? Take a look at tcpwatch: http://www.zope.org/Members/hathawsh/tcpwatch -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net

RE: [Zope-dev] Greedy except clauses

2001-02-12 Thread Tom Jenkins
> -Original Message- > From: Jeremy Hylton [mailto:[EMAIL PROTECTED]] > Sent: Saturday, February 10, 2001 1:49 AM > To: Chris Withers > Cc: Anthony Baxter; Chris McDonough; [EMAIL PROTECTED]; > [EMAIL PROTECTED] > Subject: Re: [Zope-dev] Greedy except clauses > > > > "CW" == Chris W

Re: [Zope-dev] InterbaseStorage, Win32 anyone?

2001-02-12 Thread Phil Harris
Chris, OK, I'll give it a go, converting to gvib that is. Would you be available to 'consult' if needs be? Phil - Original Message - From: "Chris McDonough" <[EMAIL PROTECTED]> To: "Phil Harris" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, February 12, 2001 1:46 PM Subject: R

Re: [Zope-dev] Introducing ZopePrints.

2001-02-12 Thread Tres Seaver
On 12 Feb 2001, Erik Enge wrote: > [Tres Seaver] > > | Please see: > | > | http://dev.zope.org/Projects/PTK > | > | for our work-in-progress. > > Hey, looks like what I'm after. I can see that it's a work in > progress, so if you need any help, give me a shout. It didn't > say too much abou

[Zope-dev] http headers

2001-02-12 Thread Tim McLaughlin
Anyone know how I can log or view the http headers that Zope sends when it responds to a http request? Tim McLaughlin ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (

Re: [Zope-dev] InterbaseStorage, Win32 anyone?

2001-02-12 Thread Chris McDonough
Hmmm. I have no idea about this one. The Interbase DA that InterbaseStorage is written agaist seems to be out of maintenance (or was the last time that I checked). It should be reworked to make use of gvInterbaseDA, probably. I don't imagine that this is too much work. On Mon, 12 Feb 2001 0

Re: [Zope-dev] Introducing ZopePrints.

2001-02-12 Thread Erik Enge
[Tres Seaver] | Please see: | | http://dev.zope.org/Projects/PTK | | for our work-in-progress. Hey, looks like what I'm after. I can see that it's a work in progress, so if you need any help, give me a shout. It didn't say too much about the project itself, do you have any such information o

RE: [Zope-dev] Persistence ( was Thread Safe Counting )

2001-02-12 Thread Tres Seaver
Jon Franz <[EMAIL PROTECTED]> wrote > Ah! this makes more sense, the idea of persistent properties even > fits with this idea, though a true write-in-place property might be > even better for some applications ;) Two things: * Don't count on storing the hit counter as a separate, "persisten

Re: [Zope-dev] Introducing ZopePrints.

2001-02-12 Thread Tres Seaver
Erik Enge <[EMAIL PROTECTED]> wrote: > Some of us over at ZopeZen.org (http://www.zopezen.org>) have > been discussing the fenomena that is called ZopePrints. I'll give a > brief explanation, and would appretiate feedback as to whether this a > good idea or not. > > A ZopePrint is a document, o

Re: [Zope-dev] ThreadSafeCounter 0.0.1 released

2001-02-12 Thread Morten W. Petersen
[Wolfgang Strobl] | Well, yes. I wouldn't have expected that kind of platform | dependendy in products like AddressBook, though. Anyways, I'm looking into ways of making the threadsafe counter platform independent. Cheers, Morten ___ Zope-Dev maill

Re: [Zope-dev] ThreadSafeCounter 0.0.1 released

2001-02-12 Thread Wolfgang Strobl
On 12 Feb 2001, 12:01 Morten W. Petersen wrote: > [Wolfgang Strobl] > > | Doesn't even install on Windows, because it imports and uses fcntl. > | | >From the fcntl docs: "Availability: Unix". > > Well, the download page says "Platform: Generic UNIX-like", doesn't > it? Well, yes. I wouldn't h

Re: [Zope-dev] Python Based DataSkins and Propertysheets

2001-02-12 Thread Johan Carlsson
> > Ah, I see. > > But why do I need SimpleItems, isn't PropertyManagers sufficient? > > It makes your class play nicely with Zope. > > So, it can work with DAV, be copied and pasted, properly work > with traversal, work with ZDOM, be Owned, support undo, work > with Acquisition, and manage rol

Re: [Zope-dev] Python Based DataSkins and Propertysheets

2001-02-12 Thread Steve Alexander
Johan Carlsson wrote: > > Whoooha! > I added PropertyManager to EmployX and it saves properties? Is that a question? I'm not sure I can answer that. > Is this correct? > - The objects are stored presistently in the Racks storage (BTree). With the way a rack is set up by default, yes. You just

Re: [Zope-dev] Python Based DataSkins and Propertysheets

2001-02-12 Thread Steve Alexander
Johan Carlsson wrote: > > Ah, I see. > But why do I need SimpleItems, isn't PropertyManagers sufficient? It makes your class play nicely with Zope. So, it can work with DAV, be copied and pasted, properly work with traversal, work with ZDOM, be Owned, support undo, work with Acquisition, and

Re: [Zope-dev] Python Based DataSkins and Propertysheets

2001-02-12 Thread Johan Carlsson
> >>> You need to derive EmployX from DataSkin and some Zope persistent > >>> class such as SimpleItem. Otherwise, > >>> it won't be persistent. > >> > >> Accualy I don´t have to do that. > > Looking more closely at DataSkins.py, I see that class DataSkin derives from > Persistent. > > So, I

Re: [Zope-dev] Python Based DataSkins and Propertysheets

2001-02-12 Thread Johan Carlsson
> > But as I noticed the "properties" was saved as > > attributes not as properties in a propertysheet. > > That's another way of doing it. It is a bit less transparent. > I find it more straightforward to make my classes SimpleItems > and PropertyManagers, as it means I can just call > manage_ch

Re: [Zope-dev] Python Based DataSkins and Propertysheets

2001-02-12 Thread Steve Alexander
Steve Alexander wrote: > Johan Carlsson wrote: > >>> You need to derive EmployX from DataSkin and some Zope persistent >>> class such as SimpleItem. Otherwise, >>> it won't be persistent. >> >> Accualy I don´t have to do that. Looking more closely at DataSkins.py, I see that class DataSkin de

Re: [Zope-dev] ThreadSafeCounter 0.0.1 released

2001-02-12 Thread Morten W. Petersen
[Wolfgang Strobl] | Doesn't even install on Windows, because it imports and uses fcntl. | | >From the fcntl docs: "Availability: Unix". Well, the download page says "Platform: Generic UNIX-like", doesn't it? -Morten ___ Zope-Dev maillist - [EMAIL

[Zope-dev] InterbaseStorage, Win32 anyone?

2001-02-12 Thread Phil Harris
Hi all, I'm trying to get InterbaseStorage working on Win32. I've got all the requisite parts and they all seem to be working OK (well, kinterbasdb and mxDateTime do) outside Zope in plain Python. When I try and import _kinterbasdb.dll, from within Zope I'm getting an error message: Unable to

Re: [Zope-dev] ThreadSafeCounter 0.0.1 released

2001-02-12 Thread Wolfgang Strobl
On 10 Feb 2001, 13:01 Morten W. Petersen wrote: > There's a new product available, which enables unique ids in a given > context, take a look at > http://www.zope.org/Members/morphex/ThreadSafeCounter>. Doesn't even install on Windows, because it imports and uses fcntl. >From the fcntl docs: "

Re: [Zope-dev] ThreadSafeCounter 0.0.1 released

2001-02-12 Thread Martijn Pieters
On Mon, Feb 12, 2001 at 01:31:04AM +0100, Morten W. Petersen wrote: > As I've understood it, two threads serving requests have a copy each of the > database, and only when changes are committed are they reflected in > the database. Therefore, two requests created at the same time could > get an i

Re: [Zope-dev] Python Based DataSkins and Propertysheets

2001-02-12 Thread Steve Alexander
Johan Carlsson wrote: >>> Hi, >>> I am trying to figure out ZPatterns and because I rather work with Python Products >when with Zclasses I am trying to convert the EmployZ product to Python. >>> So far I got half the way there, the Rack recognizes the DataSkin >>> And on newItem in the Speciali

Re: [Zope-dev] Python Based DataSkins and Propertysheets

2001-02-12 Thread Johan Carlsson
> > Hi, > > I am trying to figure out ZPatterns and because I rather work with Python Products >when with Zclasses I am trying to convert the EmployZ product to Python. > > So far I got half the way there, the Rack recognizes the DataSkin > > And on newItem in the Specialist it a new slot gets c

Re: [Zope-dev] ThreadSafeCounter 0.0.1 released

2001-02-12 Thread Morten W. Petersen
[Steve Alexander] | I'd thought the original point of ThreadSafeCounter was to provide | a simple sequential unique values generator, without causing | writes to the Data.fs. Yes, that was the original intent. But having one that's safe over multiple ZEO clients is a Very Good Thing (tm). :-)

Re: [Zope-dev] Python Based DataSkins and Propertysheets

2001-02-12 Thread Steve Alexander
Johan Carlsson wrote: > Hi, > I am trying to figure out ZPatterns and because I rather work with Python Products >when with Zclasses I am trying to convert the EmployZ product to Python. > So far I got half the way there, the Rack recognizes the DataSkin > And on newItem in the Specialist it a

Re: [Zope-dev] ThreadSafeCounter 0.0.1 released

2001-02-12 Thread Steve Alexander
Morten W. Petersen wrote: > [Erik Enge] > > | What happens if you run this with ZEO? Will the file be kept «in > | sync» with all ZEO Clients? > > Good point. I don't think so. It could be that it is kept in sync > with one Zope instance "being responsible" and the others calling > it via XML

[Zope-dev] Introducing ZopePrints.

2001-02-12 Thread Erik Enge
¡Hola! Some of us over at ZopeZen.org (http://www.zopezen.org>) have been discussing the fenomena that is called ZopePrints. I'll give a brief explanation, and would appretiate feedback as to whether this a good idea or not. A ZopePrint is a document, or maybe a set of documents, which describe

Re: [Zope-dev] ThreadSafeCounter 0.0.1 released

2001-02-12 Thread Morten W. Petersen
[Erik Enge] | What happens if you run this with ZEO? Will the file be kept «in | sync» with all ZEO Clients? Good point. I don't think so. It could be that it is kept in sync with one Zope instance "being responsible" and the others calling it via XML-RPC. Cheers, Morten ___