[Zope-Checkins] SVN: Zope/branches/2.9/ Move to ZODB 3.6.0b4.

2005-12-04 Thread Tim Peters
Log message for revision 40533:
  Move to ZODB 3.6.0b4.
  

Changed:
  _U  Zope/branches/2.9/doc/
  _U  Zope/branches/2.9/lib/python/
  _U  Zope/branches/2.9/utilities/

-=-

Property changes on: Zope/branches/2.9/doc
___
Name: svn:externals
   - ZEO  svn://svn.zope.org/repos/main/ZODB/tags/3.6.0b3/doc/ZEO

   + ZEO  svn://svn.zope.org/repos/main/ZODB/tags/3.6.0b4/doc/ZEO



Property changes on: Zope/branches/2.9/lib/python
___
Name: svn:externals
   - ZConfigsvn://svn.zope.org/repos/main/ZConfig/tags/ZConfig-2.3.1
BTrees svn://svn.zope.org/repos/main/ZODB/tags/3.6.0b3/src/BTrees
persistent svn://svn.zope.org/repos/main/ZODB/tags/3.6.0b3/src/persistent
ThreadedAsync  svn://svn.zope.org/repos/main/ZODB/tags/3.6.0b3/src/ThreadedAsync
transactionsvn://svn.zope.org/repos/main/ZODB/tags/3.6.0b3/src/transaction
ZEOsvn://svn.zope.org/repos/main/ZODB/tags/3.6.0b3/src/ZEO
ZODB   svn://svn.zope.org/repos/main/ZODB/tags/3.6.0b3/src/ZODB
ZopeUndo   svn://svn.zope.org/repos/main/ZODB/tags/3.6.0b3/src/ZopeUndo
zdaemon-r 39732 svn://svn.zope.org/repos/main/zdaemon/trunk/src/zdaemon
pytz   -r 40369 svn://svn.zope.org/repos/main/Zope3/trunk/src/pytz
zodbcode   -r 40369 svn://svn.zope.org/repos/main/Zope3/trunk/src/zodbcode
ClientCookie   -r 40369 
svn://svn.zope.org/repos/main/Zope3/trunk/src/ClientCookie
mechanize  -r 40369 svn://svn.zope.org/repos/main/Zope3/trunk/src/mechanize

   + ZConfigsvn://svn.zope.org/repos/main/ZConfig/tags/ZConfig-2.3.1
BTrees svn://svn.zope.org/repos/main/ZODB/tags/3.6.0b4/src/BTrees
persistent svn://svn.zope.org/repos/main/ZODB/tags/3.6.0b4/src/persistent
ThreadedAsync  svn://svn.zope.org/repos/main/ZODB/tags/3.6.0b4/src/ThreadedAsync
transactionsvn://svn.zope.org/repos/main/ZODB/tags/3.6.0b4/src/transaction
ZEOsvn://svn.zope.org/repos/main/ZODB/tags/3.6.0b4/src/ZEO
ZODB   svn://svn.zope.org/repos/main/ZODB/tags/3.6.0b4/src/ZODB
ZopeUndo   svn://svn.zope.org/repos/main/ZODB/tags/3.6.0b4/src/ZopeUndo
zdaemon-r 39732 svn://svn.zope.org/repos/main/zdaemon/trunk/src/zdaemon
pytz   -r 40369 svn://svn.zope.org/repos/main/Zope3/trunk/src/pytz
zodbcode   -r 40369 svn://svn.zope.org/repos/main/Zope3/trunk/src/zodbcode
ClientCookie   -r 40369 
svn://svn.zope.org/repos/main/Zope3/trunk/src/ClientCookie
mechanize  -r 40369 svn://svn.zope.org/repos/main/Zope3/trunk/src/mechanize



Property changes on: Zope/branches/2.9/utilities
___
Name: svn:externals
   - ZODBTools  svn://svn.zope.org/repos/main/ZODB/tags/3.6.0b3/src/scripts

   + ZODBTools  svn://svn.zope.org/repos/main/ZODB/tags/3.6.0b4/src/scripts


___
Zope-Checkins maillist  -  Zope-Checkins@zope.org
http://mail.zope.org/mailman/listinfo/zope-checkins


[Zope-dev] Zope tests: 8 OK

2005-12-04 Thread Zope tests summarizer
Summary of messages to the zope-tests list.
Period Sat Dec  3 12:01:02 2005 UTC to Sun Dec  4 12:01:02 2005 UTC.
There were 8 messages: 8 from Zope Unit Tests.


Tests passed OK
---

Subject: OK : Zope-2_6-branch Python-2.1.3 : Linux
From: Zope Unit Tests
Date: Sat Dec  3 22:20:55 EST 2005
URL: http://mail.zope.org/pipermail/zope-tests/2005-December/003706.html

Subject: OK : Zope-2_6-branch Python-2.3.5 : Linux
From: Zope Unit Tests
Date: Sat Dec  3 22:22:25 EST 2005
URL: http://mail.zope.org/pipermail/zope-tests/2005-December/003707.html

Subject: OK : Zope-2_7-branch Python-2.3.5 : Linux
From: Zope Unit Tests
Date: Sat Dec  3 22:23:56 EST 2005
URL: http://mail.zope.org/pipermail/zope-tests/2005-December/003708.html

Subject: OK : Zope-2_7-branch Python-2.4.2 : Linux
From: Zope Unit Tests
Date: Sat Dec  3 22:25:26 EST 2005
URL: http://mail.zope.org/pipermail/zope-tests/2005-December/003709.html

Subject: OK : Zope-2_8-branch Python-2.3.5 : Linux
From: Zope Unit Tests
Date: Sat Dec  3 22:26:56 EST 2005
URL: http://mail.zope.org/pipermail/zope-tests/2005-December/003710.html

Subject: OK : Zope-2_8-branch Python-2.4.2 : Linux
From: Zope Unit Tests
Date: Sat Dec  3 22:28:26 EST 2005
URL: http://mail.zope.org/pipermail/zope-tests/2005-December/003711.html

Subject: OK : Zope-2_9-branch Python-2.4.2 : Linux
From: Zope Unit Tests
Date: Sat Dec  3 22:29:56 EST 2005
URL: http://mail.zope.org/pipermail/zope-tests/2005-December/003712.html

Subject: OK : Zope-trunk Python-2.4.2 : Linux
From: Zope Unit Tests
Date: Sat Dec  3 22:31:26 EST 2005
URL: http://mail.zope.org/pipermail/zope-tests/2005-December/003713.html

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


[Zope-dev] Re: RFC: _verifyObjectPaste cleanup

2005-12-04 Thread yuppie

Hi Dieter!


Dieter Maurer wrote:

yuppie wrote at 2005-12-2 16:50 +0100:

...
checkPermission now respects proxy roles, so this workaround is no 
longer needed.


But we should also have some way to check permissions without proxy roles:

   It sometimes is useful for something with a proxy role
   to check whether the user (without a proxy) could
   perform the operation as well.

Thus, if checkPermission changed its behaviour, it probably
should get an optional parameter to get the old behaviour back.


Sounds reasonable, but I didn't fix checkPermission and I don't feel 
responsible for adding a parameter like that. Maybe this is something 
for the collector...



Otherwise, I am happy with your cleanup.


Fine.


Cheers,

Yuppie

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

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


Re: [Zope-dev] KeyError: 'URL' in HTTPRequest using zope2.7-py2.3.3

2005-12-04 Thread Brian Watson
Brian Watson wrote at 2005-12-1 20:55 -0500:
 brian w.
 
 Traceback (most recent call last):
  File 
 E:\NBCJEAP\Zope\lib\python\zExceptions\ExceptionFormatter.py, 
 line 157,
 in formatLine
result.extend(self.formatSupplement(supp, tb))
  File 
 E:\NBCJEAP\Zope\lib\python\zExceptions\ExceptionFormatter.py, 
 line 105,
 in formatSupplement
extra = self.formatExtraInfo(supplement)
  File 
 E:\NBCJEAP\Zope\lib\python\zExceptions\ExceptionFormatter.py, 
 line 231,
 in formatExtraInfo
extra = getInfo(1)
  File E:\NBCJEAP\Zope\lib\python\Products\PageTemplates\TALES.py, 
 line 277, i
 n getInfo
 ...
  File E:\NBCJEAP\Zope\lib\python\ZPublisher\HTTPRequest.py, line 
 1295, in __r
 epr__
return %s, URL=%s % (self.__class__.__name__, self['URL'])
  File E:\NBCJEAP\Zope\lib\python\ZPublisher\HTTPRequest.py, line 
 1214, in __g
 etitem__
raise KeyError, key
 KeyError: 'URL'

The request in your PageTemplate context lacks an URL.

URL is set in the HTTPRequests constructor (__init__).
If an HTTPRequest instance lacks URL this means either:

   *  the instance was created in a wrong way (contructor not called)

   *  URL was deleted after construction.

Unfortunately, the details you have provided does not allow
to say more about this problem.
--
Dieter

thanks for your reply.  theres really not all that much info to go along with 
the error; is there anything i could try and include?  i followed the error 
just like you said and see where theyre init'd, but the object just seems to be 
empty.  i can str it and get your normal zope-style table of a request only it 
lacks the base#/url# attributes.  its __dict__ seems normal, but .other and 
._urls are both empty.  i'm not sure how 'URL' could have been deleted or how 
the httprequest could have been instantiated wrong.  it doesnt happen 
everytime, but when i open multiple browsers and click-crazy to tax it a bit it 
will happen in ~1-2mins, almost when it boggs down the server a little.  
afterward the server runs slower for a while until it seems to catch up.  my 
items in plone are archetype-based and do a little db.  it must be something 
wierd in my svr versions because the exact same thing happened here:
http://mail.zope.org/pipermail/zope-dev/2003-November/020952.html
and sort of here where they found the problem:
http://mail.zope.org/pipermail/zope-dev/2004-February/021793.html
but i've scoured my code/site for any similar name issues and cannot find any. 
i wish the guy who posted the first issue would've at least thrown me a hint, 
but he got pissed when i emailed him directly to ask.

thanks again for your help, and please let me know if there are any other lists 
i should be in (not sure if this is really zope-dev related),
brian w.


-- 
___
Play 100s of games for FREE! http://games.mail.com/

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


[Zope-dev] Time for a beta!

2005-12-04 Thread Jim Fulton


Zope 3 seems to ve ready for a beta release.  Does that mean Zope 2
is ready?

Jim

--
Jim Fulton   mailto:[EMAIL PROTECTED]   Python Powered!
CTO  (540) 361-1714http://www.python.org
Zope Corporation http://www.zope.com   http://www.zope.org

---BeginMessage---


I think it's time for a beta release of Zope 3.  All of the critical
issues and bugs have been dealt with except for one.  I'm hopeful
that that will be resolved when the person who submitted verifies
that it has been resolved or gives more specific examples of problem
behavior.

Also, it is getting quite late.  We very much want to get the final
release this month.

Stephan, what needs to be done to get a beta out?

Jim

--
Jim Fulton   mailto:[EMAIL PROTECTED]   Python Powered!
CTO  (540) 361-1714http://www.python.org
Zope Corporation http://www.zope.com   http://www.zope.org

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


Re: [Zope-dev] Time for a beta!

2005-12-04 Thread Andreas Jung



--On 4. Dezember 2005 14:36:17 -0500 Jim Fulton [EMAIL PROTECTED] wrote:



Zope 3 seems to ve ready for a beta release.  Does that mean Zope 2
is ready?



Zope 2 should be ready. However there seems to be an unresolved issue with
building the distribution archive from the sources (something for Philipp?).
I can cut a 2.9 b1 release as soon as this issue is resolved (hopefully
this week).

[EMAIL PROTECTED]:~/sandboxes/Zope-2.9/Zope: make sdist
zpkg -C /develop/sandboxes/Zope-2.9/Zope/releases/Zope2.cfg
'Zopepy' is an invalid distribution component: all components must either 
be a Python package or provide a SETUP.cfg file


temporary files are in /tmp/zpkg-hFk-Wg
make: *** [sdist] Error 1


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


Re: [Zope-dev] Please vote about conflict errors logging

2005-12-04 Thread Dieter Maurer
Jean-Marc Orliaguet wrote at 2005-12-2 23:57 +0100:
 ... on what level to report retried ConflictError ...
BLATHER (I have never be able to get any meaningful information from 
them, except that zope tries several times)

That's because the generated messages *were* uninformative.

You can see the critical spots (the objects causing lots of conflicts)
easily with sane log messages.

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


Re: [Zope-dev] AcceleratedHTTPCache and virtual hosting (collector 1447)

2005-12-04 Thread Dieter Maurer
Jens Vagelpohl wrote at 2005-12-3 16:08 +:
 ...
 Another thought: Maybe before doing anything else, I should make the
 client class used by AcceleratedHTTPCache configurable, so I can more
 easily get a mock in there.  Something like:

I like the secondary route, but I'm not sure the production code  
should contain testing only turds. :)

We could use monkey patching for this -- used only for testing purposes.


The five people included a small piece of my software
(ReuseUtils.rebind.rebindFunction) in five (therefore,
it should now be somewhere in Zope 2.8 and above) which
makes monkey patching such as replacing httplib by some
mockup rather painless (i.e. without copying code to be tested).

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


Re: [Zope-dev] Logging of ConflictError

2005-12-04 Thread Dieter Maurer
Florent Guillaume wrote at 2005-12-2 22:59 +0100:
 ...
If you look at the way their purpose is explained in zLOG, you'll see  
that level INFO is reserved for things like server startup and  
shutdown.
Or, as shown above, initial mounting of databases. Anything  
recurring that can happen many times in the life of the server but  
does not pose any problems should *not* be visible at INFO.

Really?

You infer that from the

  INFO  For things like startup and shutdown, do you?

That's very weak reasoning...

  The level obviously has an importance association:
  higher values indicate higher importance.


If fact, the ConflictError messages should not be reported
at INFO but at level PROBLEM because

   they are not causing any immediate problems, but
   deserve attention.

On the other hand, that's exactly what BLATHER is for folks! Use it!  

You see it this way. I do not:

  ConflictErrors are definitely as important as mount
  messages and therefore should be reported on at least
  the level of mount reports: i.e. at INFO or above.

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


Re: [Zope-dev] Please vote about conflict errors logging

2005-12-04 Thread Dieter Maurer
Florent Guillaume wrote at 2005-12-2 23:00 +0100:
Please vote for the level at which you want to log retried conflict  
errors. These are the ConflictErrors that aren't returned to the user  
but automatically retried by the Zope publisher.

1. Do you want these ConflictErrors retried logs to be at level:
- INFO
- BLATHER
- DEBUG
- not logged
- other

INFO


2. In addition, please specify if you feel those retried  
ConflictErrors should have their full traceback logged?
- Yes, with traceback
- No, without traceback

No traceback, as it usually will come from commit code and not
really contain useful information.


3. Finally, please tell us if the ConflictErrors that *can't* be  
retried (and are returned to the user as an error, and are also  
logged to the error_log) should be additionally explicitely logged to  
the event log, and at which level:
- ERROR
- not logged
- other

They should be treated as any other exception seen by the user:

   They should be routed via error_log and standard_error_message;
   they should not cause a special log entry (they are not more
   dangerous than other exceptions seen by the user).


I think your vote might be more interesting for Zope users rather
than Zope developers.

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


Re: [Zope-dev] Please vote about conflict errors logging

2005-12-04 Thread Jean-Marc Orliaguet

Dieter Maurer wrote:


Jean-Marc Orliaguet wrote at 2005-12-2 23:57 +0100:
 


... on what level to report retried ConflictError ...
BLATHER (I have never be able to get any meaningful information from 
them, except that zope tries several times)
   



That's because the generated messages *were* uninformative.

You can see the critical spots (the objects causing lots of conflicts)
easily with sane log messages.

 

In my case it's mostly filesystem-based resources (css files, or images) 
accessed in read mode (zope-2.8.4). But the information no matter where 
it comes from has very little value compared to other messages in the 
log file, because these are completely predictable.


In the log flle I'd like to be informed about events that are 
unexpected. Conflict errors of this kind occur by design.


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

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


Re: [Zope-dev] Logging of ConflictError

2005-12-04 Thread Dennis Allison

Dieter's point about not includeing the traceback makes sense
if all it does is report on the reporting code.

Wlorent, do you envision a single ConflicError or two -- one which
succeeds on retry and another where the retry fails?


On Sun, 4 Dec 2005, Dieter Maurer wrote:

 Florent Guillaume wrote at 2005-12-2 22:59 +0100:
  ...
 If you look at the way their purpose is explained in zLOG, you'll see  
 that level INFO is reserved for things like server startup and  
 shutdown.
 Or, as shown above, initial mounting of databases. Anything  
 recurring that can happen many times in the life of the server but  
 does not pose any problems should *not* be visible at INFO.
 
 Really?
 
 You infer that from the
 
   INFO  For things like startup and shutdown, do you?
 
 That's very weak reasoning...
 
   The level obviously has an importance association:
   higher values indicate higher importance.
 
 
 If fact, the ConflictError messages should not be reported
 at INFO but at level PROBLEM because
 
they are not causing any immediate problems, but
deserve attention.
 
 On the other hand, that's exactly what BLATHER is for folks! Use it!  
 
 You see it this way. I do not:
 
   ConflictErrors are definitely as important as mount
   messages and therefore should be reported on at least
   the level of mount reports: i.e. at INFO or above.
 
 

-- 

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


Re: [Zope-dev] KeyError: 'URL' in HTTPRequest using zope2.7-py2.3.3

2005-12-04 Thread Dieter Maurer
Brian Watson wrote at 2005-12-4 14:33 -0500:
 ...
raise KeyError, key
 KeyError: 'URL'

The request in your PageTemplate context lacks an URL.

URL is set in the HTTPRequests constructor (__init__).
If an HTTPRequest instance lacks URL this means either:

   *  the instance was created in a wrong way (contructor not called)

   *  URL was deleted after construction.
 ...
i can str it and get your normal zope-style table of a request only it lacks 
the base#/url# attributes.  its __dict__ seems normal, but .other and ._urls 
are both empty.

The URL (and its derivatives) is maintained in other.
Thus, if other is cleared (it is not protected, normal application
code can do it), then URL will disappear.

other (and frieds) is cleared when the request is closed.
But that should only happen when the request is no longer used.

  i'm not sure how 'URL' could have been deleted or how the httprequest could 
 have been instantiated wrong.  it doesnt happen everytime, but when i open 
 multiple browsers and click-crazy to tax it a bit it will happen in ~1-2mins, 
 almost when it boggs down the server a little.

Can you have a lock into your logfile (event.log). Do
you see any strange exceptions at about this time, maybe
ConflictError?
Maybe the problem occurs when a request is retried in case of
a ConflictError.

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


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


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 )


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





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


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 installthe "pristine" application in a 
/home/user 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 Version2.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 usagethrough 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 
  andinstalled in their own home directories to allow us to control and 
  manageeachuser or groupsbandwidth 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 operating and 
  application environments. 
  
  
  
  
  Thanks a lot, regards, 
  
  Russ 
  

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:
 
  dtml-in allids prefix=loop
  dtml-if expr=loop_item == 17
  something
  dtml-elif expr=loop_item == 17 and loop_item != 18
  doesn't work
  /dtml-if
  /dtml-in
 
  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.
dtml-if 17 in allids
  you're here!
/dtml-if

 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 Designhttp://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 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:


dtml-if 17 in list_map_dir_id and 21 not in list_map_dir_id
dtml-call RESPONSE.setCookie(list_type,'lodge')
dtml-elif 21 in list_map_dir_id and 17 not in list_map_dir_id
dtml-call RESPONSE.setCookie(list_type,'resto')
dtml-elif 21 in list_map_dir_id and 17 in list_map_dir_id
dtml-call RESPONSE.setCookie(list_type,'restolodge')
dtml-else
dtml-call RESPONSE.setCookie(list_type,'other')
/dtml-if

dtml-in insert_listing1_sql
id: dtml-var newid
dtml-call REQUEST.set('list_map_list_id', newid)
/dtml-in
dtml-call insert_listing_map_sql
dtml-call 
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:

dtml-in allids prefix=loop
dtml-if expr=loop_item == 17
something
dtml-elif expr=loop_item == 17 and loop_item != 18
doesn't work
/dtml-if
/dtml-in

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.
dtml-if 17 in allids
 you're here!
/dtml-if

 


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 )


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

  sectiontype name=zoperunner
description
  This section describes the options for zopectl.  These options
...

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

multikey name=program required=no
  description
   The program(s) that will be run by the runner
  /description
/multikey

key name=daemon datatype=boolean
 required=no default=true
  description
Command-line option: -d or --daemon.



- call umask(022)
  /description
/key

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 Designhttp://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
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:

 dtml-if 17 in list_map_dir_id and 21 not in list_map_dir_id
 dtml-call RESPONSE.setCookie(list_type,'lodge')
 dtml-elif 21 in list_map_dir_id and 17 not in list_map_dir_id
 dtml-call RESPONSE.setCookie(list_type,'resto')
 dtml-elif 21 in list_map_dir_id and 17 in list_map_dir_id
 dtml-call RESPONSE.setCookie(list_type,'restolodge')
 dtml-else
 dtml-call RESPONSE.setCookie(list_type,'other')
 /dtml-if

 dtml-in insert_listing1_sql
 id: dtml-var newid
 dtml-call REQUEST.set('list_map_list_id', newid)
 /dtml-in
 dtml-call insert_listing_map_sql
 dtml-call
 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:
 
 dtml-in allids prefix=loop
 dtml-if expr=loop_item == 17
 something
 dtml-elif expr=loop_item == 17 and loop_item != 18
 doesn't work
 /dtml-if
 /dtml-in
 
 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.
 dtml-if 17 in allids
   you're here!
 /dtml-if
 
 
 
 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] 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] 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 )


[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] 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 )


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:

http://www.zope.org/Members/ajung/ZopeHomeOfAndreasJung/BTrees/FrontPage



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 )