Re: [Zope-dev] To ZCML or not ;-)

2005-04-08 Thread Chris Withers
Lennart Regebro wrote:
You know the feeling when a third party product has the wrong
permission or no permission at all on something? What are you gonna
do? Subclass: Lots of work. Patch: You gotta keep it updated. With
ZCML, you override it. TADA!
Yes, this is all stuff I know and love about Z3 ;-) When I last saw 
ZCML, it was horrible though. I don't mind XML, just not if it lots of 
pointless typing...

Jim suggests that ZCML has got better, I hope so, in which case I won't 
have to write an alternative that uses the same underlying 
infrastructure :-D

cheers,
Chris
--
Simplistix - Content Management, Zope & Python Consulting
   - http://www.simplistix.co.uk
___
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] Turning off product installation in zope.conf on all zeo clients?

2005-04-08 Thread Chris Withers
Hi,
There's an option to turn off prudct installation in zope.conf.
What happens if you turn this off in all zeo clients?
cheers,
Chris
--
Simplistix - Content Management, Zope & Python Consulting
   - http://www.simplistix.co.uk
___
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] To ZCML or not ;-)

2005-04-08 Thread Martijn Faassen
Chris Withers wrote:
Lennart Regebro wrote:
You know the feeling when a third party product has the wrong
permission or no permission at all on something? What are you gonna
do? Subclass: Lots of work. Patch: You gotta keep it updated. With
ZCML, you override it. TADA!

Yes, this is all stuff I know and love about Z3 ;-) When I last saw 
ZCML, it was horrible though. I don't mind XML, just not if it lots of 
pointless typing...

Jim suggests that ZCML has got better, I hope so, in which case I won't 
have to write an alternative that uses the same underlying 
infrastructure :-D
Since ZML is XML, creating a less verbose language may be easier to 
accomplish by actually *using* the XML infrastructure, and translating 
your language to ZCML.

Anyway, while I have my criticisms of ZCML, too much typing is really 
not very important in my list. You can get it somewhat shorter, I'm 
sure, but not *that* much shorter. I'd worry more about the reading part 
than the writing.

Regards,
Martijn
___
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] Turning off product installation in zope.conf on all zeo clients?

2005-04-08 Thread Jens Vagelpohl
On Apr 8, 2005, at 11:00, Chris Withers wrote:
Hi,
There's an option to turn off prudct installation in zope.conf.
What happens if you turn this off in all zeo clients?

New products don't get installed..?
jens
___
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] To ZCML or not ;-)

2005-04-08 Thread Lennart Regebro
On Apr 8, 2005 12:54 PM, Martijn Faassen <[EMAIL PROTECTED]> wrote:
> Chris Withers wrote:
> > Lennart Regebro wrote:
> >
> >> You know the feeling when a third party product has the wrong
> >> permission or no permission at all on something? What are you gonna
> >> do? Subclass: Lots of work. Patch: You gotta keep it updated. With
> >> ZCML, you override it. TADA!
> >
> >
> > Yes, this is all stuff I know and love about Z3 ;-) When I last saw
> > ZCML, it was horrible though. I don't mind XML, just not if it lots of
> > pointless typing...
> >
> > Jim suggests that ZCML has got better, I hope so, in which case I won't
> > have to write an alternative that uses the same underlying
> > infrastructure :-D
> 
> Since ZML is XML, creating a less verbose language may be easier to
> accomplish by actually *using* the XML infrastructure, and translating
> your language to ZCML.
> 
> Anyway, while I have my criticisms of ZCML, too much typing is really
> not very important in my list. You can get it somewhat shorter, I'm
> sure, but not *that* much shorter. I'd worry more about the reading part
> than the writing.

Yeah, I mean:



   



Is not significantly shorter than:

something/something:
   foo=bar
   frotz=fnyppel

   fingal/ohlsson:
  bitbucket=buccaneer

Which would be really a minimal/shortest way to write it.
   
For me, the main drawback with ZCML is that WingIDE doesn't to auto
completion on it. ;) An ZCML editor that automatically popped up a
list of the supported keywords for every statement would be really
nice. :-p

A benefit of using an XML format is that many editors will happily
both do syntax high-lighting, some sort of auto-indentation, and
automatic commenting/uncommenting. A non-standard syntax wouldn't do
that.

-- 
Lennart Regebro, Nuxeo http://www.nuxeo.com/
CPS Content Management http://www.cps-project.org/
___
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] To ZCML or not ;-)

2005-04-08 Thread Jim Fulton
Lennart Regebro wrote:
On Apr 8, 2005 12:54 PM, Martijn Faassen <[EMAIL PROTECTED]> wrote:
...
A benefit of using an XML format is that many editors will happily
both do syntax high-lighting, some sort of auto-indentation, and
automatic commenting/uncommenting. A non-standard syntax wouldn't do
that.
Speaking of which, a nice little project for someone would be
to write a generator to generate RelaxNG schemas from ZCML
meta configuration.  Then XML editors could provide more help with
the editing, possibly including hings like autocompletion.
This should be a realtively easy task in that apidoc already has
code for extracting documentation from meta configuration.
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
___
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] To ZCML or not ;-)

2005-04-08 Thread Stephan Richter
On Friday 08 April 2005 03:24, Chris Withers wrote:
> Yes, this is all stuff I know and love about Z3 ;-);-) When I last saw
> ZCML, it was horrible though. I don't mind XML, just not if it lots of
> pointless typing...

Can you be more specific? I think ZCML is very compact.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
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] To ZCML or not ;-)

2005-04-08 Thread Stephan Richter
On Friday 08 April 2005 07:34, Lennart Regebro wrote:
> For me, the main drawback with ZCML is that WingIDE doesn't to auto
> completion on it. ;) An ZCML editor that automatically popped up a
> list of the supported keywords for every statement would be really
> nice. :-p:

Yeah, I talked to Stephan and John about that already. Using Wing's new plugin 
architecture, it should be possible to insert such functionality. Another 
good application for the plugin system would be the recognition of interfaces 
by showing the interface documentation of a class implementing a certain 
interface.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
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] Re: [Zope 2.8] Inclusion of ExtendedPathIndex?

2005-04-08 Thread Andreas Jung

--On Donnerstag, 7. April 2005 8:00 Uhr -0400 Tres Seaver 
<[EMAIL PROTECTED]> wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Andreas Jung wrote:
I wonder if it is of public interest to include the ExtendedPathIndex
from Plone in Zope 2.8.
It offers some the nice extension  to limit the depth of the search and
improves building navigation-trees
or similar structures. Opinions?
I doubt many folks on this list know the code that well.  Are you
thinking to lift the features you mention, making them part of the
regular PathIndex?
I succeeded in merging the ExtendedPathIndex code with the existing
PathIndex code without changing the existing behaviour (means
all original tests + the new tests) pass.
Andreas

pgpzfM5WuKiur.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] To ZCML or not ;-)

2005-04-08 Thread Lennart Regebro
On Apr 8, 2005 3:09 PM, Stephan Richter <[EMAIL PROTECTED]> wrote:
> On Friday 08 April 2005 07:34, Lennart Regebro wrote:
> > For me, the main drawback with ZCML is that WingIDE doesn't to auto
> > completion on it. ;) An ZCML editor that automatically popped up a
> > list of the supported keywords for every statement would be really
> > nice. :-p:
> 
> Yeah, I talked to Stephan and John about that already. Using Wing's new plugin
> architecture, it should be possible to insert such functionality. Another
> good application for the plugin system would be the recognition of interfaces
> by showing the interface documentation of a class implementing a certain
> interface.

Cool, that's good news. I won't have time to do it for the forseeable
future though...

-- 
Lennart Regebro, Nuxeo http://www.nuxeo.com/
CPS Content Management http://www.cps-project.org/
___
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] To ZCML or not ;-)

2005-04-08 Thread Martijn Faassen
Lennart Regebro wrote:
[snip]
For me, the main drawback with ZCML is that WingIDE doesn't to auto
completion on it. ;) An ZCML editor that automatically popped up a
list of the supported keywords for every statement would be really
nice. :-p
Actually emacs + nxml + the Relax NG schema (unfortunately out of date; 
it should be autogenerated from the code) for ZCML does that.

A benefit of using an XML format is that many editors will happily
both do syntax high-lighting, some sort of auto-indentation, and
automatic commenting/uncommenting. A non-standard syntax wouldn't do
that.
Yup, and if you use some XML editor (or an XML editor extension for your 
favorite editor) it can do quite sophisticated schema-driven stuff.

Regards,
Martijn
___
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: ZPT: defer expression fix

2005-04-08 Thread Christian Heimes
Evan Simpson wrote:
Christian Heimes wrote:
That's an interessting use case. Do you want me to keep the code and 
make up a new expression? I'm thinking about "lazy:".

If you have a particular use for "defer:" that would justify the split, 
please go ahead.  I have no particular interest in keeping it.
I left defer: like it was coded by you and added a new expression lazy: 
that is working like a lazy initialization variable.

Christian
___
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: ZPT: defer expression fix

2005-04-08 Thread Christian Heimes
Tres Seaver wrote:
I'd be glad to help with that, Christian.
I've added a doc string to the DeferExpr module. Do you want me to write 
 more docs is it enough to be added to the ZPT guide?

Also I need a little help for the unit tests. How can I emulate 
tal:content or similar inside an expression test?

Except of some missing unit tests the branch is ready to merge. I would 
like to get the changes into Zope 2.7.6 so we could use them for Plone 
2.1.0.

Christian
___
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] debug-mode on under Windows 2000.

2005-04-08 Thread DonJFreeman
Zope Version: (Zope 2.7.3-0, python 2.3.4, win32) 
Python Version: 2.3.4 (#53, May 25 2004, 21:17:02) [MSC v.1200 32 bit (Intel)] 
System Platform: Windows 2000

I'm trying to get Zope to reload my Python modules so I don't have to restart Zope after code changes. Even with debug-mode on (according to the zope config file, it defaults to on) my modules are not being reloaded unless I do a restart. Is there a fix for this?

Thanks,
Don

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