[Zope] Re: GenericSetup examples?

2006-06-12 Thread yuppie

Hi Chris!


Chris Withers wrote:

yuppie wrote:
I just checked in the SampleSite demo product to the doc directory of 
GenericSetup. You can get it from GenericSetup/trunk.


Thanks, this looks great :-)

However, it now makes me wonder:

- how would I compare the current configuration with what's on disk 
without creating a snapshot?


- how can I "synch" just one python script or page template with what's 
on disk?


Sorry. Both use cases are not supported.


PS: I think there's a few rough edges on trunk:


There are more rough edges ;)

I setup a sample site, 
created a snapshot and then compared with what's on disk, the following 
differences were reported:


[...]
  
-
-
   Import custom roles and non-default role-permission mappings.
-
  
  
-
-
   Import site configuration.
-
  
 


This is annoying, but not annoying enough to make someone write a patch. 
If you use the "Ignore lines of whitespace" option you don't see these.



Index: siteroot.xml
===
--- siteroot.xml 2006/06/12 13:12:08.028 GMT+1
+++ siteroot.xml 2006/06/12 13:01:01 GMT+1
@@ -1,5 +1,5 @@
 
-
+
  Sample Zope Site
  
  



Avoiding this would have made the example more complex. The adapter 
responsible for that code is normally used for sub-folders, not the 
root. The name of the site root is ignored by the import handler but 
exported by the export handler.



Cheers,

Yuppie

___
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: GenericSetup examples?

2006-06-12 Thread yuppie

Chris Withers wrote:

Does anyone know of a good example product that uses GenericSetup?

I'm particularly interested in the PythonScript and PageTemplate 
thingies...


I just checked in the SampleSite demo product to the doc directory of 
GenericSetup. You can get it from GenericSetup/trunk.


HTH, Yuppie


___
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: Adding TextIndexNG 3.1.1 error

2005-12-07 Thread yuppie

Andreas Jung wrote:


--On 6. Dezember 2005 22:25:25 +0100 Andreas Jung 
<[EMAIL PROTECTED]> wrote:


--On 6. Dezember 2005 21:19:08 +0100 yuppie 
<[EMAIL PROTECTED]>

wrote:


Garth B. wrote:

What the heck! I get the exact same error with a fresh instance of
2.8.4!  Am I just not installing this correctly?


You'll see the problem if you start Zope in debug mode:
TextIndexNG3/adapters/configure.zcml depends on ATContentTypes.


Ups.. mea culpa...I have not thought of this dependency...I'll
thinkn about how to resolve this issue in a hopefully sane way...


However when I run TXNG with a bare Zope 2.8 installation then Zope 
fails to start in a sane way with an error message telling you that 
there is a ZCML configuration error because the ATCT classes are not 
available but I can not see the error message you posted earlier.


If you turn off debug mode Zope starts up with broken ZCML 
configuration. (Don't know why - Zope is seriously broken in that case 
and you don't see any useful error messages.)


Maybe you need Five 1.2 to see the error Garth posted earlier. The i18n 
machinery of Five doesn't work without the utilities set up by ZCML.


Cheers, Yuppie

___
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: Adding TextIndexNG 3.1.1 error

2005-12-06 Thread yuppie

Garth B. wrote:

What the heck! I get the exact same error with a fresh instance of
2.8.4!  Am I just not installing this correctly?


You'll see the problem if you start Zope in debug mode:
TextIndexNG3/adapters/configure.zcml depends on ATContentTypes.

Cheers, Yuppie

___
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: ZopeZoo

2005-06-22 Thread yuppie

Hi John!


John Poltorak wrote:
In my quest to get to grips with the basics of ZPT I eventually stumbled 
across ZopeZoo which I found very useful. Looking at it again, there seem 
to be several variations of the same examples.


I used this one:- 


http://www.plope.com/Books/2_7Edition/SimpleExamples.stx#2-10


This one is the latest version and as soon as the 2.7 edition (or maybe 
it will become the 2.8 edition) of the Zope Book is done it will replace 
the 2.6 edition on zope.org.


This chapter is not finished jet. The last part is just copied from the 
2.6 edition and doesn't work with the rest.



but find there are a couple of variations here:-

http://www.zope.org/Documentation/Books/ZopeBook/2_6Edition/SimpleExamples.stx


This one is the last 'official' version, but I would not recommend to 
use it.



http://www.zope.org/Members/jwhitener/zopeZoo_2_6


The 2.7 rewrite is based on this text, but while this text is a 'stand 
alone' tutorial, the book chapter builds on top of the previous chapters.


Is there a definitive site for ZopeZoo? And is there a followup anywhere? 
I found I was getting the hang of it but could have done with a part two 
to show how to incorporate various divisions such as columns under ZPT.


The guest book example has to be converted to ZPT anyway, but the 
highest priority should be to *finish* the latest edition, not adding 
new examples.



Cheers,

Yuppie

___
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: How to make a ZPT-based form that calls itself? (Part II)

2005-05-19 Thread yuppie
Lennart Regebro wrote:
Well, the generic method is to create a script that you call in the
start of you ZPT that returns a dictionary with all the data to be
displayed.  This can also be the same script that actually does the
deletion.
http://blogs.nuxeo.com/sections/blogs/lennart_regebro/2005_04_19_python_statement/
Well. This is not *the* generic method, its one of two patterns which 
have both their pros and cons. See the File Library example for doing it 
the other way round, calling the template at the end of the script:

http://www.plope.com/Books/2_7Edition/SimpleExamples.stx#1-8
Cheers, Yuppie
___
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: Bad Hostname with Zope 2.8.X on Windows

2005-05-13 Thread yuppie
Hi Simon!
Simon ALEXANDRE wrote:
The problem is quite simple: when I start the zope server the hostname 
is ‘Localhost’ then it’s impossible to connect the server remotely (i.e. 
by specifying the IP address of the server)

I know that in version 2.7 this problem doesn’t appear. When I launch 
zope 2.7 the hostname is ‘MyMachineName’

How to fix that? Which file should I update?
This is a known issue, see: http://www.zope.org/Collectors/Zope/1507
As a workaround, change your etc/zope.conf:
In front of the port number add '0.0.0.0:' to the address of each server 
section, e.g. the default http-server section should look like this:


  # valid keys are "address" and "force-connection-close"
  address 0.0.0.0:8080
  # force-connection-close on

HTH,
Yuppie
___
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 )