Re: [Zope-dev] AW: [Summary] Caching prob with AHCM and headers

2003-09-25 Thread Chris Withers
Tres Seaver wrote:
I have wanted to add a binding to the TALES namespace to allow access to
the skin object for some time:  the current values in the namespace
are:
'content' -- the skin object's aq_parent

'view' -- the skin object's name (a really bad choice for the key)

'keywords' -- any keywords passed to the method

'request'  -- the request object

'member'  -- the authenticated member (None for anonymous)

'time' -- request time
Are these specific to the caching policy manager?

Where and how are they implemented?

cheers,

Chris

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
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] _p_deactivate() and _v_ variables?

2003-09-25 Thread Chris Withers
def traverseTree(self):
''' Traverse the tree and do something. '''
was_ghost = self._p_changed is None

for ob in self.objectValues():
traverseTree(ob)
# XXX Do something with self here :
self.doSomething()
if was_ghost:self._p_deactivate()
Hmmm, does _p_deactivate() clear the contents of the object's _v_ variables?

cheers,

Chris

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
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] Problems with ZODB and persistence

2003-09-25 Thread Chris Withers
Emiliano Marmonti wrote:
class Autores:
 def __init__( self, file='dcAuthor.fs' ):
self.file= file
self.db  = ZODB.DB( FileStorage( file ) )
This is BAD.

The level you're writing stuff at, let Zope take care of the storages, you just 
stick to writing application code ;-)

If you're doing anything more than subclassing persistent, you're doing too much :-)

Chris

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
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] Can anyone help to work with Xron on Linux?

2003-09-25 Thread Chris Withers
I-Ling Lin wrote:
 
I really don't know how to continue... Can anyone help me, please, pls
Hmmm, well, inititally:

- stop posting HTML to a non-HTML list

- post to the correct list: [EMAIL PROTECTED]
  [EMAIL PROTECTED] is for the development of, not development with, Zope...
- stop using Xron, it's old, crufty and broken. Just using unix cron or Windows
  scheduled tasks to tickle a URL in Zope that does what you want :-)
cheers,

Chris

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
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: error_log missing things?

2003-09-25 Thread Chris Withers
Shane Hathaway wrote:
Presumably, some error occurred that led to ZPublisher aborting the
transaction.  Since transaction abort is never supposed to fail, perhaps
ZPublisher doesn't use the same mechanism to report transaction abort
failures.
Yeah, that makes sense but...

It looks like DCOracle2 needs to be more careful about propagating errors 
during the second phase of a transaction.
...some of the errors (ie, once the DA connection is trashed ;-) don't occur in 
those dodgy parts of the transaction, and yet there's still no errro logged in 
the error_log...

curiouser and curiouser...

Any ideas?

Chris

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
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] _p_deactivate() and _v_ variables?

2003-09-25 Thread Toby Dickenson
On Thursday 25 September 2003 11:51, Chris Withers wrote:

 Hmmm, does _p_deactivate() clear the contents of the object's _v_
 variables?

Yes

-- 
Toby Dickenson


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
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] AW: [Summary] Caching prob with AHCM and headers

2003-09-25 Thread Tres Seaver
On Thu, 2003-09-25 at 06:41, Chris Withers wrote:
 Tres Seaver wrote:
  I have wanted to add a binding to the TALES namespace to allow access to
  the skin object for some time:  the current values in the namespace
  are:
  
  'content' -- the skin object's aq_parent
  
  'view' -- the skin object's name (a really bad choice for the key)
  
  'keywords' -- any keywords passed to the method
  
  'request'  -- the request object
  
  'member'  -- the authenticated member (None for anonymous)
  
  'time' -- request time
 
 Are these specific to the caching policy manager?

Yes.  Any object which uses TALES needs to set up the bindings for the
top-level names which are available to TALES expressions, using the
'getContext' method of the TALES engine.

 Where and how are they implemented?

Products.CMFCore.CachingPolicyManager.createCPContext.

Tres.
-- 
===
Tres Seaver[EMAIL PROTECTED]
Zope Corporation  Zope Dealers   http://www.zope.com


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
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] Caching Policy Manager (Was: Caching prob with AHCM and headers)

2003-09-25 Thread Andy McKay
This thread and an application for a client has meant i've started to 
formulate a replacement for Caching Policy Manager. From the way I see 
it all the functionality in CPM (Vary etc) should be rolled into AHCM.

CPM should then just be very simple set of policies that using a 
predicate point to a cache. Which could be an AHCM, or a Ram Cache or 
another cache. Admittedly Ram Cache is not something you'd normally want 
to do for CMF content, but there other caching options.

Then we'll have one much more functional AHCM rather than two seperate 
cache managers trying to almost the same thing... and a much more 
flexible and pluggable cacheing strategy.
--
  Andy McKay
  http://www.agmweb.ca

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
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] Caching Policy Manager (Was: Caching prob with AHCM and headers)

2003-09-25 Thread seb bacon
Andy McKay wrote:
This thread and an application for a client has meant i've started to 
formulate a replacement for Caching Policy Manager. From the way I see 
it all the functionality in CPM (Vary etc) should be rolled into AHCM.
+1

What about the don't cache the following hostnames knob for the use 
case I outlined previously, which enables you to circumvent caching 
(useful for site editors, for example)?

I think adding an extra virtual host is a very natural way to ensure 
fresh content as it is guaranteed to have a unique key in upstream caches.

seb

--

   [] j a m k i t
 web solutions for charities
seb bacon
T:  020 7549 0520
F:  020 7490 1152
M:  07968 301 336
W: www.jamkit.com


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
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] Caching Policy Manager (Was: Caching prob with AHCM and headers)

2003-09-25 Thread Tres Seaver
On Thu, 2003-09-25 at 14:06, Andy McKay wrote:

 This thread and an application for a client has meant i've started to 
 formulate a replacement for Caching Policy Manager. From the way I see 
 it all the functionality in CPM (Vary etc) should be rolled into AHCM.

 CPM should then just be very simple set of policies that using a 
 predicate point to a cache. Which could be an AHCM, or a Ram Cache or 
 another cache. Admittedly Ram Cache is not something you'd normally want 
 to do for CMF content, but there other caching options.

RAM caching is useful for subtemplates.  I am not convinced that we
should think of resource level caching (AHCM or Andy's bake-to-disk
on the fly solution) in the same framework as the tools like RCM, which
are much better suited for caching intermediate results, but don't scale
well for entire pages.

Tres.
-- 
===
Tres Seaver[EMAIL PROTECTED]
Zope Corporation  Zope Dealers   http://www.zope.com


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
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] VOcabulary stop words

2003-09-25 Thread Paulo Lobo



I need to changer my stop words in my 
vocabulary!!

I've tryed to change that file, Lexicon.py, where 
the stop words are stores, but it doesnt works
When i re-index all the data my customized stop 
words are indexed too!
___
Zope-Dev maillist  -  [EMAIL PROTECTED]
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] Caching Policy Manager (Was: Caching prob with AHCM and headers)

2003-09-25 Thread Andy McKay
RAM caching is useful for subtemplates.  I am not convinced that we
should think of resource level caching (AHCM or Andy's bake-to-disk
on the fly solution) in the same framework as the tools like RCM, which
are much better suited for caching intermediate results, but don't scale
well for entire pages.
RCM is an odd caching system that suits a particular need. Is that a no, 
this shouldn't be done or just a comment?
--
  Andy McKay
  http://www.agmweb.ca

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
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 )