Re: [Zope] Finding a match in a large dataset - btrees?

2005-12-04 Thread Andreas Jung



--On 5. Dezember 2005 16:57:03 +1300 Cameron Beattie <[EMAIL PROTECTED]> 
wr> I've read a bit about btrees on the zope wiki and wonder if that's the

best way. However I am struggling with the basics:
1. How do I get the data from MySQL into a btree in Zope? Something like:
from BTrees.IIBTree import *
t = IIBTree()
t.update(context.select_from_LOCATION_MATCH) # errr, no


Reading helps:





2. How do I find the matching node i.e. when I want to know that 6422
relates to location_id 15?



I still have no idea what your example should tell me. A BTree basically
implements the same API as a Python dictionary. If you can implement your 
solution in pure Python then you can just switch to BTrees. But I have no 
idea about your example especially BTrees implement a 1:1

relationship (when using an IIBTree).

-aj

pgpJEXUnC9XUz.pgp
Description: PGP signature
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Re: Zope Calendar

2005-12-04 Thread Bakhtiar A Hamid
I wanted something which looks like Plone Calendar> - 
http://www.zope.org/Members/teyc/CalendarTag
this has a howto (or is it in the readme), and with the necessary css, can look pretty much like plone's
hth

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


[Zope] Finding a match in a large dataset - btrees?

2005-12-04 Thread Cameron Beattie
I have a large set of data (that will be stored in MySQL) that I wish to 
match to and am wondering what the best method is.


Assume the following data in table LOCATION_MATCH:
LOCATION_IDLOCATION_PATTERNPARENT_ID
106
11410
13211
12911
14113
15213

The string 6438 should return 11, 6421 14, 6422 15 and 6499 12.

I've read a bit about btrees on the zope wiki and wonder if that's the best 
way. However I am struggling with the basics:

1. How do I get the data from MySQL into a btree in Zope? Something like:
from BTrees.IIBTree import *
t = IIBTree()
t.update(context.select_from_LOCATION_MATCH) # errr, no

2. How do I find the matching node i.e. when I want to know that 6422 
relates to location_id 15?


Any help or pointers to further documentation would be appreciated.

Regards

Cameron 


___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] add multiple images to zope folder

2005-12-04 Thread Chris Purves
On 04/12/05, Jonathan Cyr <[EMAIL PROTECTED]> wrote:
> Use FTP,
>
>  Open Internet Explorer, type ftp://zopeusername:[EMAIL 
> PROTECTED]:8021/directory/
>
>  and drag and drop from explorer to ie, zope assigns them as images 
> automatically.
>
>  Any FTP client will do, Filezilla is nice/free, as well. 
> (filezilla.sourceforge.net)  Substitute 8021 with your Zope's FTP port.
>
>  I use it regularly for uploading website graphical components, a nice 
> shortcut.

That looks like exactly what I want, but is it possible to make the
connection secure?

--
Take care, eh.
Chris
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] add multiple images to zope folder

2005-12-04 Thread Chris Purves
On 04/12/05, Peter Bengtsson <[EMAIL PROTECTED]> wrote:
> There's a script with zope called load_site.py that can do this.
>

I got load_site.py to work after a few tries.  Thanks for the help.



--
Take care, eh.
Chris
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] checking for elements in a list

2005-12-04 Thread Peter Bengtsson
I suggest you try a little scripting language called Python.
You can use in inside Zope by creating Python Scripts (formal name:
Script (Python))
Try to stay away from DTML as much as possible. It's only about as
good as PHP alone.

On 12/4/05, Christopher Rivard <[EMAIL PROTECTED]> wrote:
> Thanks Peter,
>
> The conditional within the dtml did the trick.
> This is a continuation of this issue (a bit cumbersome):
>
> http://groups.yahoo.com/group/zope/message/150345
>
> The solution that I have come to is to simply set a cookie and serve up
> the correct fields based on the cookie:
>
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
> 
> id: 
> 
> 
> 
>  "RESPONSE.redirect('add_listing2?list_id=%s'%(REQUEST['list_map_list_id']))">
>
>
> add_listing2 is the form that displays restaurant specific fields
> (price, cc's accepted) or lodge (type, price range, internet access) or
> both...those tricky motel/restaurants in rural NM...
>
> It seems that if I try this after the list is inserted, it comes out of
> MySQL as a string, not integer and therefore I could not iterate to
> check membership in the list.
>
> I am sure there are more elegant ways to do this  - the client wanted
> the data in a RDBMS for portabilityyah yah yah
>
> Thanks for you help!
> Chris
>
> Christopher Rivard
> Clearwired Web Services
>
> 5345 Wyoming NE Suite 200C
> Albuquerque, NM 87109
>
> office/ 505.217.3505
> mobile/ 505.301.4010
> toll-free/ 866.430.2832
> fax/ 505.217.3506
>
> e/ [EMAIL PROTECTED]
> w/ www.clearwired.com
>
>
>
>
> Peter Bengtsson wrote:
>
> >On 12/4/05, J Cameron Cooper <[EMAIL PROTECTED]> wrote:
> >
> >
> >>Christopher Rivard wrote:
> >>
> >>
> >>>Hello,
> >>>
> >>>I'm am trying to check for the membership of items in a list and think
> >>>I'm missing something.
> >>>How is this done in dtml?
> >>>
> >>>List allids: [15,16,17,18]
> >>>
> >>>Check for multiple items in the list:
> >>>
> >>>
> >>>
> >>>something
> >>>
> >>>doesn't work
> >>>
> >>>
> >>>
> >>>The goal is to check for combinations:
> >>>17 and not 18
> >>>18 only
> >>>17 only
> >>>17 and 15
> >>>18 and 16
> >>>...combinations.
> >>>
> >>>I don't think that I really want to loop through the list, just want to
> >>>check membership in the list.
> >>>
> >>>
> >>In Python, you can simply ask::
> >>
> >>   17 in allids
> >>
> >>   18 not in allids
> >>
> >>and so forth as boolean expressions.
> >>
> >>
> >>
> >He can do this in DTML too.
> >
> >  you're here!
> >
> >
> >
> >
> >>Just make sure that the elements of the list you're getting are what you
> >>think they are. If you ask about the integer 17 and the list actually
> >>has a string "17" they won't match. You can either adjust what you test
> >>or use something like the 'int' function to "cast".
> >>
> >>--jcc
> >>--
> >>Building Websites with Plone
> >>http://plonebook.packtpub.com/
> >>___
> >>Zope maillist  -  Zope@zope.org
> >>http://mail.zope.org/mailman/listinfo/zope
> >>**   No cross posts or HTML encoding!  **
> >>(Related lists -
> >> http://mail.zope.org/mailman/listinfo/zope-announce
> >> http://mail.zope.org/mailman/listinfo/zope-dev )
> >>
> >>
> >>
> >
> >
> >--
> >Peter Bengtsson,
> >work www.fry-it.com
> >home www.peterbe.com
> >hobby www.issuetrackerproduct.com
> >
> >
> >
> >
> >
>
>


--
Peter Bengtsson,
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Re: zdsock

2005-12-04 Thread John Poltorak
On Sun, Dec 04, 2005 at 09:15:34AM -0500, Tres Seaver wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> John Poltorak wrote:
> > On Sun, Dec 04, 2005 at 11:32:15AM +0100, Andreas Jung wrote:
> > 
> >>WHY?
> > 
> > 
> > Because 'zdsock' is not an acceptable name.
> > 
> > I am running on OS/2 and the path name must start with '\\socket\\'.
> 
> Johh, you are likely going to have to hack the 'socket-name' key into
> $SOFTWARE_HOME/lib/python/Zope2/zopeschema.xml (as a top-level option, I
> think, bound to 'sockname';  it might need to be a sub-option of
> 'zoperunner').

Tres,

Do you mean ?

$SOFTWARE_HOME/lib/python/Zope2/Startup/zopeschema.xml

That is the location of such a file on my system.

As for hacking schema's that is something I'm not familiar with so I might
need a little hand holding before I manage to apply  the change you
suggest.

  

  This section describes the options for zopectl.  These options
...

  options, the command line option (short and long form) are given
  here too.



  
   The program(s) that will be run by the runner
  



  
Command-line option: -d or --daemon.



- call umask(022)
  


How exactly do I hack the 'socket-name' key into the file?

Would the file

$SOFTWARE_HOME/lib/python/zdaemon/sample.conf

be of any use in this matter?


> Please submit a patch (to http://www.zope.org/Collectors/Zope) when you
> get it working.


It may take some time to get working...

 
> Tres
> - --
> ===
> Tres Seaver  +1 202-558-7113  [EMAIL PROTECTED]
> Palladion Software   "Excellence by Design"http://palladion.com
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.1 (GNU/Linux)
> Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
> 
> iD8DBQFDkvoF+gerLs4ltQ4RAk3CAJ94XslX9sOw6VmcC2JDaooIXmotmACgtP5X
> ymxZAWD9nZn3ZmoetoV/DhE=
> =IhnZ
> -END PGP SIGNATURE-


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


Re: [Zope] Hooks for methods other than GET/POST on port 80?

2005-12-04 Thread Dieter Maurer
Roman Suzi wrote at 2005-12-3 21:56 +0200:
>I am looking for a way in Zope to receive HTTP-requests with, eg,
>DELETE and PUT in the object method. Zope (2.7.x) seems to intercept these and
>issue "Not authorised".

"DELETE" and "PUT" are WebDAV methods (and defined in
"webdav.Resource.Resouce").

You have the usual hook: override the definition in your class.
Do not forget to assign a new permission to your new method definitions
(otherwise, the 'Unauthorized' will remain).

-- 
Dieter
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] checking for elements in a list

2005-12-04 Thread Christopher Rivard

Thanks Peter,

The conditional within the dtml did the trick.
This is a continuation of this issue (a bit cumbersome):

http://groups.yahoo.com/group/zope/message/150345

The solution that I have come to is to simply set a cookie and serve up 
the correct fields based on the cookie:













id: 



"RESPONSE.redirect('add_listing2?list_id=%s'%(REQUEST['list_map_list_id']))">



add_listing2 is the form that displays restaurant specific fields 
(price, cc's accepted) or lodge (type, price range, internet access) or 
both...those tricky motel/restaurants in rural NM...


It seems that if I try this after the list is inserted, it comes out of 
MySQL as a string, not integer and therefore I could not iterate to 
check membership in the list.


I am sure there are more elegant ways to do this  - the client wanted 
the data in a RDBMS for portabilityyah yah yah


Thanks for you help!
Chris

Christopher Rivard
Clearwired Web Services

5345 Wyoming NE Suite 200C
Albuquerque, NM 87109

office/ 505.217.3505
mobile/ 505.301.4010
toll-free/ 866.430.2832
fax/ 505.217.3506

e/ [EMAIL PROTECTED]
w/ www.clearwired.com




Peter Bengtsson wrote:


On 12/4/05, J Cameron Cooper <[EMAIL PROTECTED]> wrote:
 


Christopher Rivard wrote:
   


Hello,

I'm am trying to check for the membership of items in a list and think
I'm missing something.
How is this done in dtml?

List allids: [15,16,17,18]

Check for multiple items in the list:



something

doesn't work



The goal is to check for combinations:
17 and not 18
18 only
17 only
17 and 15
18 and 16
...combinations.

I don't think that I really want to loop through the list, just want to
check membership in the list.
 


In Python, you can simply ask::

  17 in allids

  18 not in allids

and so forth as boolean expressions.

   


He can do this in DTML too.

 you're here!


 


Just make sure that the elements of the list you're getting are what you
think they are. If you ask about the integer 17 and the list actually
has a string "17" they won't match. You can either adjust what you test
or use something like the 'int' function to "cast".

   --jcc
--
Building Websites with Plone
http://plonebook.packtpub.com/
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )

   




--
Peter Bengtsson,
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com



 



___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: zdsock

2005-12-04 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

John Poltorak wrote:
> On Sun, Dec 04, 2005 at 11:32:15AM +0100, Andreas Jung wrote:
> 
>>WHY?
> 
> 
> Because 'zdsock' is not an acceptable name.
> 
> I am running on OS/2 and the path name must start with '\\socket\\'.

Johh, you are likely going to have to hack the 'socket-name' key into
$SOFTWARE_HOME/lib/python/Zope2/zopeschema.xml (as a top-level option, I
think, bound to 'sockname';  it might need to be a sub-option of
'zoperunner').

Please submit a patch (to http://www.zope.org/Collectors/Zope) when you
get it working.


Tres
- --
===
Tres Seaver  +1 202-558-7113  [EMAIL PROTECTED]
Palladion Software   "Excellence by Design"http://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDkvoF+gerLs4ltQ4RAk3CAJ94XslX9sOw6VmcC2JDaooIXmotmACgtP5X
ymxZAWD9nZn3ZmoetoV/DhE=
=IhnZ
-END PGP SIGNATURE-

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


Re: [Zope] checking for elements in a list

2005-12-04 Thread Peter Bengtsson
On 12/4/05, J Cameron Cooper <[EMAIL PROTECTED]> wrote:
> Christopher Rivard wrote:
> > Hello,
> >
> > I'm am trying to check for the membership of items in a list and think
> > I'm missing something.
> > How is this done in dtml?
> >
> > List allids: [15,16,17,18]
> >
> > Check for multiple items in the list:
> >
> > 
> > 
> > something
> > 
> > doesn't work
> > 
> > 
> >
> > The goal is to check for combinations:
> > 17 and not 18
> > 18 only
> > 17 only
> > 17 and 15
> > 18 and 16
> > ...combinations.
> >
> > I don't think that I really want to loop through the list, just want to
> > check membership in the list.
>
> In Python, you can simply ask::
>
>17 in allids
>
>18 not in allids
>
> and so forth as boolean expressions.
>
He can do this in DTML too.

  you're here!


> Just make sure that the elements of the list you're getting are what you
> think they are. If you ask about the integer 17 and the list actually
> has a string "17" they won't match. You can either adjust what you test
> or use something like the 'int' function to "cast".
>
> --jcc
> --
> Building Websites with Plone
> http://plonebook.packtpub.com/
> ___
> Zope maillist  -  Zope@zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )
>


--
Peter Bengtsson,
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


WAS [Zope] Beginners Confusion - NOW I Think I have Pegged It

2005-12-04 Thread Russell Winter



Folks
 
Firstly, thanks to all those who replied...  I am pleased to say 
that I have an Test installation working .. Whoohoo..! 
 
If anyone see's any gapping security, configuration holes or poor 
practices, please drop me a line, otherwise, I have document the how's and 
what's of what I finally ended up doing so that it might save someone else the 
time, effort and frustration I had.
 
 
After much banging of heads, scratching of unmentionables and a "little" 
bit of swearing, I think I have it pegged... 
 
OK, start off with my major mistakes;
 
1)  I chose to install the "pristine" application in a 
/home/ directory, 
 this now appears to have been a bad choice due 
to permissions and access issues.
 I really just needed a non-root user account to 
actually run Zope, not a non-root user account to install it 
in...
 
2) I hadn't fully read and comprehended the zope.conf 
comments
    I have now read (numerous times) the comments and am 
beginning to get a better understanding of the intracasacies
 
 
Our Environment; 
 
   CentOS 4.2 x86_64
   cPanel Management
   Zope 2.8.2-final, python 2.3.5, linux2   
Python Version 2.3.5 (#2, Sep 28 2005, 03:41:37) [GCC 3.4.3 20050227 (Red 
Hat 3.4.3-22.1)] 
 
 
 
What I have done now;
 
1) I have installed the "pristine" application under /usr/local/Zope, 

    configured zope to run as the original planned user 
(zope.conf > effective-user parameter)
    (I actually just copied the original, modified 
zope.conf and runzope to suit)
 
2) Made the appropriate user directory for the department/group wishing 
to run a Zope instance
 
3) NOTE: I think this part is theoretically correct but should be run as 
the new user, not as root,
    so as not to have to chown the user files afterwards, 
I haven't tried this yet to see if that is right.
    
    I ran (?as root?) /usr/localZope/bin/mkzopeinstance.py 
to install the appropriate instance files in the 
    new users home directory (answer and remember the 
appropriate login details)
 
3a) I then had to chown the files, but as I said, I think running 
mkzopeinstance.py as the right user would negate this
 
4) Modify etc/zope.conf  to set the effective-user, database size 
limit and modify management ports to those 
    that are unused for any other application (also 
modifying my firewall config to allow access)
 
5) Run bin/zopectl start  - login with the appropriate credentials 
used in the mkzopeinstance procedure
    Check that everything looks to be ok 

 
6) untar the appropriate componemts (I installed CMF and Plone) in to the 
users products directory
    Restart ZopeServer  (zopectl 
restart)
 
8) Select Root, add a new Plone Site, (Remember the name you give it for 
use in the httpd rewrite rule below)
 
7) As I am running behind Apache, configure httpd.conf for the domain and 
add Rewrite & Proxy directives and 
    rewrite rules to the new plone site 
instance.
 
I 
believe this allows me to achieve, multiple instances for multiple users, each 
having their own ZopeServer to control, their own Plone and other component 
control, I can manage DB size and disk usage through zope.conf (I assigned 
read only rights to the users after I modified it) and bandwidth through 
mod_bandwidth on apache. The users have normal FTP and email access to their own local 
virtual machines without effecting any other services or users on the 
machine.
 
I 
now will be trying to setup MySQL access and some other components to try out, 
document management etc and skins/themes is on the list the get my head 
around.
 
Thanks again
 
Russ
 
 

  
  
  From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED] On Behalf Of Russell 
  WinterSent: Friday, December 02, 2005 7:47 AMTo: 
  zope@zope.org; [EMAIL PROTECTED]Subject: [Zope] Beginners 
  Confusion
  
   
   
  
  Folks,
   
  I am trying to 
  understand instances, any help or suggestions would be appreciated as I am 
  obviously missing something.
   
  I would like to 
  have each user having, either,  their own Zope Server binaries (including 
  CMF & Plone) in their home directories.
   
  Alternatively, as 
  multiple Zope Servers on one machine will be quite a resource eater, (probably 
  20 main users) is it possible to have just one Zope Server and multiple 
  instances of the database/CMF/Plone for the users? All user instances and 
  content including the database entries would need to be accounted for in 
  and installed in their own home directories to allow us to control and 
  manage each user or groups bandwidth and quota's etc 
  etc.
   
  Is this possible? 
  If so, is there a how-to or something I have not found yet or some advice 
  would be appreciated. I have several books on Zope now and none of them seem 
  to describe instances or multiple user configurations in any 
  detail.
   
  I am looking for 
  each department/user/group to be able to manage, for the most part, their 
  own web-services, but with us still managing the usual operatin

Re: [Zope] zdsock

2005-12-04 Thread Andreas Jung



--On 4. Dezember 2005 10:47:43 + John Poltorak <[EMAIL PROTECTED]> wrote:


On Sun, Dec 04, 2005 at 11:32:15AM +0100, Andreas Jung wrote:

WHY?


Because 'zdsock' is not an acceptable name.



I pass. OS/2 is ancient and also no longer supported by IBM.

-aj



pgpLAZaOsAd7N.pgp
Description: PGP signature
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] zdsock

2005-12-04 Thread John Poltorak
On Sun, Dec 04, 2005 at 11:32:15AM +0100, Andreas Jung wrote:
> WHY?

Because 'zdsock' is not an acceptable name.

I am running on OS/2 and the path name must start with '\\socket\\'.
 
> --On 4. Dezember 2005 10:26:03 + John Poltorak <[EMAIL PROTECTED]> wrote:
> 
> > On Sun, Dec 04, 2005 at 11:13:29AM +0100, Andreas Jung wrote:
> >>
> >>
> >> >
> >> > At the top of sample.conf it says
> >> >
> >> ># Sample config file for zdctl.py and zdrun.py (which share a schema).
> >> >
> >> > This sounds like something other than zope.conf.
> >> >
> >>
> >> Is there a real need for you to touch the configuration. Also as very
> >> advanced Zope user I've never had the need to touch this configuration
> >> for  any reason. So what are your reasons?
> >
> > I need to change the name of the socket.
> >
> >>
> >> -aj
> >
> > --
> > John


-- 
John


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


Re: [Zope] zdsock

2005-12-04 Thread John Poltorak
On Sun, Dec 04, 2005 at 11:13:29AM +0100, Andreas Jung wrote:
> 
> 
> >
> > At the top of sample.conf it says
> >
> ># Sample config file for zdctl.py and zdrun.py (which share a schema).
> >
> > This sounds like something other than zope.conf.
> >
> 
> Is there a real need for you to touch the configuration. Also as very 
> advanced Zope user I've never had the need to touch this configuration for 
> any reason. So what are your reasons?

I need to change the name of the socket.

> 
> -aj

-- 
John


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


Re: [Zope] zdsock

2005-12-04 Thread Andreas Jung





At the top of sample.conf it says

# Sample config file for zdctl.py and zdrun.py (which share a schema).

This sounds like something other than zope.conf.



Is there a real need for you to touch the configuration. Also as very 
advanced Zope user I've never had the need to touch this configuration for 
any reason. So what are your reasons?


-aj

pgpyFgtYZyCND.pgp
Description: PGP signature
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] zdsock

2005-12-04 Thread John Poltorak
On Sun, Dec 04, 2005 at 09:51:22AM +0100, Andreas Jung wrote:
> 
> 
> --On 4. Dezember 2005 08:36:06 + John Poltorak <[EMAIL PROTECTED]> wrote:
> 
> >
> > How do I override the default name of zdsock for the socket used by Zope?
> >
> > I see socket-name defined in Zope/lib/python/zdaemon/sample.conf but have
> > no idea what this sample.conf is used for.
> >
> 
> Likely by including the file into your zope.conf.

I haven't found any documentation for zope.conf anywhere and have no idea 
if  is an acceptable keyword.

At the top of sample.conf it says

# Sample config file for zdctl.py and zdrun.py (which share a schema).

This sounds like something other than zope.conf.

> 
> -aj

-- 
John



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


Re: [Zope] zdsock

2005-12-04 Thread Andreas Jung



--On 4. Dezember 2005 08:36:06 + John Poltorak <[EMAIL PROTECTED]> wrote:



How do I override the default name of zdsock for the socket used by Zope?

I see socket-name defined in Zope/lib/python/zdaemon/sample.conf but have
no idea what this sample.conf is used for.



Likely by including the file into your zope.conf.

-aj

pgpmMReOIXCJj.pgp
Description: PGP signature
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Hooks for methods other than GET/POST on port 80?

2005-12-04 Thread Roman Susi
Tino Wildenhain wrote:

>Am Samstag, den 03.12.2005, 21:56 +0200 schrieb Roman Suzi:
>  
>
>>Hi!
>>
>>
>>
>...
>  
>
>>DELETE /path/to/object/X/Y HTTP/1.1
>>Host: myhost.myorg.org
>>Content-Type: application/myprotocol+xml
>>
>>Of course, I have a product Z which has this class:
>>
>>class Z:
>>...
>>
>>def Y(self, REQUEST):
>>if REQUEST.REQUEST_METHOD == 'POST':
>> # no problem
>>elif REQUEST.REQUEST_METHOD == 'DELETE':
>> # this is never reached... Zope doesnt call Y
>>
>>
>>What do I tweak so object X will receive Y on a usual HTTP port 80?
>>THANKS!
>>
>>
>
>It seems you want the action and not the original request.
>
>When you use if ... why not just define
>manage_delObjects on your class?
>  
>

No, I want to control whatever is done. That is, I want to intercept
that request.

>This works for PUT and most other request types
>as well.
>
>HTH
>Tino
>  
>

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


[Zope] zdsock

2005-12-04 Thread John Poltorak

How do I override the default name of zdsock for the socket used by Zope?

I see socket-name defined in Zope/lib/python/zdaemon/sample.conf but have 
no idea what this sample.conf is used for.


-- 
John


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