[Zope-Annce] ZSparklines, a simple sparklines product for Zope

2006-11-01 Thread eric casteleijn
I'm pleased to announce ZSparklines, a simple Zope product to add 
sparklines to any Zope application. You can find version 0.1 here:


http://www.infrae.com/products/zsparklines

ZSparklines is basically Joe Gregorio's spark cgi script (1.0.0), where 
the cgi layer was replaced with a Zope layer, so it can be used as a 
zope product.


It defines two simple views, sparkline_smooth and sparkline_discrete,
and an interface, ISparklinedata, which you need to implement in your
classes to use the sparkline views on them.

If you want to use sparklines for classes you have no control over, you 
can  write an adapter to implement the interface.


Any feedback, questions and suggestions for improvement are more than 
welcome.


ZSparklines requires the Python Imaging Library.


The original cgi version can be found here:

http://bitworking.org/projects/sparklines/

--
- eric casteleijn
http://infrae.com
___
Zope-Announce maillist  -  Zope-Announce@zope.org
http://mail.zope.org/mailman/listinfo/zope-announce

 Zope-Announce for Announcements only - no discussions

(Related lists - 
Users: http://mail.zope.org/mailman/listinfo/zope

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


[Zope-Annce] Zwiki 0.58 released

2006-11-01 Thread Simon Michael

Zwiki 0.58 has been released:

Simpler skin customization, bugfixes, cleanups.

Upgrade notes
  If you have a very old zwiki relying on standard_wiki_header 
  standard_wiki_footer dtml methods, these will now be ignored;
  you must use a wikipage page template to customise the skin.
  I don't think this will affect anyone (let me know if it did!)

Installing
  * remove bad import from CMFInit breaking CMF/Plone installation (#1291,
#1295)
  * /upgradeAll now sets up a catalog and tries to fix some common
character encoding problems

Configuring
  * accept zodb skin templates with .pt or .dtml suffixes too, for easy upload
  * when adding a wiki, keep image and file suffixes
  * when adding a wiki, set the stylesheet's content type to text/css
  * code cleanup, drop standard_wiki_header/standard_wiki_footer support
  * add use_issue_links boolean property

Browsing
  * help page cleanups, link UsersGuide
  * clarify username option help
  * fix subtopics layout interference from unterminated stx lists 
literal blocks (#625)
  * improve contents page styling, make it like subtopics (but bigger)
  * fix star image in message-board-style subtopics template (#1305)

Editing
  * fix editform helppage link
  * clarify page type names, change type to markup

Issue tracking
  * set a medium severity when mailing in a new issue (kludgy, just
picks the middle list element)

General
  * use a more stable contents url to reduce bot traffic (#762, #699)
(Simon Michael, Daniel Yount, Michael Haubenwallner, Sascha Welter)
  * handle unrecognised page types properly
  * numericVotes method to get votes without voter identities
  * merge Wikis.py into __init__ and Admin


URLS
  - http://zwiki.org - start here
  - http://zwiki.org/FreeHosting - free zwiki hosting
  - http://joyful.com - zwiki demos and related sites
  - http://joyfulsystems.blogspot.com - blog


___
Zope-Announce maillist  -  Zope-Announce@zope.org
http://mail.zope.org/mailman/listinfo/zope-announce

 Zope-Announce for Announcements only - no discussions

(Related lists - 
Users: http://mail.zope.org/mailman/listinfo/zope

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


[Zope-Checkins] SVN: Zope/branches/2.10/ Collector #2213: Can't edit old ZopePageTemplate instances.

2006-11-01 Thread Tres Seaver
Log message for revision 71018:
  Collector #2213: Can't edit old ZopePageTemplate instances.
  
  o Also, made docstrings in testcase methods into comments, per coding 
standard.
  

Changed:
  U   Zope/branches/2.10/doc/CHANGES.txt
  U   Zope/branches/2.10/lib/python/Products/PageTemplates/ZopePageTemplate.py
  U   
Zope/branches/2.10/lib/python/Products/PageTemplates/tests/testZopePageTemplate.py

-=-
Modified: Zope/branches/2.10/doc/CHANGES.txt
===
--- Zope/branches/2.10/doc/CHANGES.txt  2006-11-01 14:29:33 UTC (rev 71017)
+++ Zope/branches/2.10/doc/CHANGES.txt  2006-11-01 14:37:13 UTC (rev 71018)
@@ -8,9 +8,11 @@
 
 Bugs fixed
 
-  - Collector #2208: rewriting/setting the 'charset' part of the 
content-type
-HTTP header will be done only for 'text/*'
+  - Collector #2213: Can't edit old ZopePageTemplate instances.
 
+  - Collector #2208: rewriting/setting the 'charset' part of the
+content-type HTTP header will be done only for 'text/*'
+
   - Collector #2209: ZTUtils module could not be used inside ZPT
 
   - Collector #2206: Set PYTHONPATH to include existing PYTHONPATH
@@ -43,7 +45,8 @@
   - Collector #2152: Fixed MailHost documentation; simple_send does not
 process or validate its arguments in any way.
 
-  - Collector #2175: ZTUtils.make_hidden_input did not escape 
double-quotes.
+  - Collector #2175: ZTUtils.make_hidden_input did not escape
+double-quotes.
 
   - Collector #2176: Fixed bad logging call.
 

Modified: 
Zope/branches/2.10/lib/python/Products/PageTemplates/ZopePageTemplate.py
===
--- Zope/branches/2.10/lib/python/Products/PageTemplates/ZopePageTemplate.py
2006-11-01 14:29:33 UTC (rev 71017)
+++ Zope/branches/2.10/lib/python/Products/PageTemplates/ZopePageTemplate.py
2006-11-01 14:37:13 UTC (rev 71018)
@@ -79,6 +79,7 @@
 
 func_defaults = None
 func_code = FuncCode((), 0)
+strict = False
 
 _default_bindings = {'name_subpath': 'traverse_subpath'}
 _default_content_fn = os.path.join(package_home(globals()),

Modified: 
Zope/branches/2.10/lib/python/Products/PageTemplates/tests/testZopePageTemplate.py
===
--- 
Zope/branches/2.10/lib/python/Products/PageTemplates/tests/testZopePageTemplate.py
  2006-11-01 14:29:33 UTC (rev 71017)
+++ 
Zope/branches/2.10/lib/python/Products/PageTemplates/tests/testZopePageTemplate.py
  2006-11-01 14:37:13 UTC (rev 71018)
@@ -40,7 +40,7 @@
 self.assertEqual(pt.document_src().strip(), default_text.strip())
 
 def testAddWithRequest(self):
-Test manage_add with file
+# Test manage_add with file
 request = self.app.REQUEST
 request.form['file'] = DummyFileUpload(filename='some file',
data=self.text,
@@ -51,13 +51,21 @@
 self.assertEqual(pt.document_src(), self.text)
 
 def testAddWithRequestButNoFile(self):
-Collector #596: manage_add with text but no file
+# Collector #596: manage_add with text but no file
 request = self.app.REQUEST
 self._addPT('pt1', text=self.text, REQUEST=request)
 # no object is returned when REQUEST is passed.
 pt = self.app.pt1
 self.assertEqual(pt.document_src(), self.text)
 
+def test_BBB_for_strict_attribute(self):
+# Collector 2213:  old templates don't have 'strict' attribute.
+from Products.PageTemplates.ZopePageTemplate import ZopePageTemplate
+zpt = ZopePageTemplate('issue_2213')
+del zpt.strict  # simulate old templates
+self.assertEqual(zpt.strict, False)
+
+
 class ZPTMacros(zope.component.testing.PlacelessSetup, unittest.TestCase):
 
 def setUp(self):

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


[Zope-Checkins] SVN: Zope/trunk/ Forward-port fix for #2213 from 2.10 branch.

2006-11-01 Thread Tres Seaver
Log message for revision 71019:
  Forward-port fix for #2213 from 2.10 branch.

Changed:
  U   Zope/trunk/doc/CHANGES.txt
  U   Zope/trunk/lib/python/Products/PageTemplates/ZopePageTemplate.py
  U   Zope/trunk/lib/python/Products/PageTemplates/tests/testZopePageTemplate.py

-=-
Modified: Zope/trunk/doc/CHANGES.txt
===
--- Zope/trunk/doc/CHANGES.txt  2006-11-01 14:37:13 UTC (rev 71018)
+++ Zope/trunk/doc/CHANGES.txt  2006-11-01 14:48:03 UTC (rev 71019)
@@ -11,6 +11,8 @@
   - Removed deprecated support for product initialization based on
 '__ac_permissions__' and 'meta_types' attributes.
 
+  - Collector #2213: Can't edit old ZopePageTemplate instances.
+
   - reStructuredText/ZReST: setting raw_enabled to 0 for security
 reasons
 
@@ -41,8 +43,8 @@
 
   - Collector #2209: ZTUtils module could not be used inside ZPT
 
-  - Collector #2208: rewriting/setting the 'charset' part of the 
content-type
-HTTP header will be done only for 'text/*'
+  - Collector #2208: rewriting/setting the 'charset' part of the
+content-type HTTP header will be done only for 'text/*'
 
   - Call setDefaultSkin on new requests created as the result of
 ConflictError retries.

Modified: Zope/trunk/lib/python/Products/PageTemplates/ZopePageTemplate.py
===
--- Zope/trunk/lib/python/Products/PageTemplates/ZopePageTemplate.py
2006-11-01 14:37:13 UTC (rev 71018)
+++ Zope/trunk/lib/python/Products/PageTemplates/ZopePageTemplate.py
2006-11-01 14:48:03 UTC (rev 71019)
@@ -79,6 +79,7 @@
 
 func_defaults = None
 func_code = FuncCode((), 0)
+strict = False
 
 _default_bindings = {'name_subpath': 'traverse_subpath'}
 _default_content_fn = os.path.join(package_home(globals()),

Modified: 
Zope/trunk/lib/python/Products/PageTemplates/tests/testZopePageTemplate.py
===
--- Zope/trunk/lib/python/Products/PageTemplates/tests/testZopePageTemplate.py  
2006-11-01 14:37:13 UTC (rev 71018)
+++ Zope/trunk/lib/python/Products/PageTemplates/tests/testZopePageTemplate.py  
2006-11-01 14:48:03 UTC (rev 71019)
@@ -40,7 +40,7 @@
 self.assertEqual(pt.document_src().strip(), default_text.strip())
 
 def testAddWithRequest(self):
-Test manage_add with file
+# Test manage_add with file
 request = self.app.REQUEST
 request.form['file'] = DummyFileUpload(filename='some file',
data=self.text,
@@ -51,13 +51,21 @@
 self.assertEqual(pt.document_src(), self.text)
 
 def testAddWithRequestButNoFile(self):
-Collector #596: manage_add with text but no file
+# Collector #596: manage_add with text but no file
 request = self.app.REQUEST
 self._addPT('pt1', text=self.text, REQUEST=request)
 # no object is returned when REQUEST is passed.
 pt = self.app.pt1
 self.assertEqual(pt.document_src(), self.text)
 
+def test_BBB_for_strict_attribute(self):
+# Collector 2213:  old templates don't have 'strict' attribute.
+from Products.PageTemplates.ZopePageTemplate import ZopePageTemplate
+zpt = ZopePageTemplate('issue_2213')
+del zpt.strict  # simulate old templates
+self.assertEqual(zpt.strict, False)
+
+
 class ZPTMacros(zope.component.testing.PlacelessSetup, unittest.TestCase):
 
 def setUp(self):

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


[Zope-dev] Zope Tests: 9 OK

2006-11-01 Thread Zope Tests Summarizer
Summary of messages to the zope-tests list.
Period Tue Oct 31 11:00:02 2006 UTC to Wed Nov  1 11:00:02 2006 UTC.
There were 9 messages: 9 from Zope Unit Tests.


Tests passed OK
---

Subject: OK : Zope-2.6 Python-2.1.3 : Linux
From: Zope Unit Tests
Date: Tue Oct 31 21:30:22 EST 2006
URL: http://mail.zope.org/pipermail/zope-tests/2006-October/006440.html

Subject: OK : Zope-2.6 Python-2.3.5 : Linux
From: Zope Unit Tests
Date: Tue Oct 31 21:31:53 EST 2006
URL: http://mail.zope.org/pipermail/zope-tests/2006-October/006441.html

Subject: OK : Zope-2.7 Python-2.3.5 : Linux
From: Zope Unit Tests
Date: Tue Oct 31 21:33:23 EST 2006
URL: http://mail.zope.org/pipermail/zope-tests/2006-October/006442.html

Subject: OK : Zope-2.7 Python-2.4.3 : Linux
From: Zope Unit Tests
Date: Tue Oct 31 21:34:53 EST 2006
URL: http://mail.zope.org/pipermail/zope-tests/2006-October/006443.html

Subject: OK : Zope-2.8 Python-2.3.5 : Linux
From: Zope Unit Tests
Date: Tue Oct 31 21:36:23 EST 2006
URL: http://mail.zope.org/pipermail/zope-tests/2006-October/006444.html

Subject: OK : Zope-2.8 Python-2.4.3 : Linux
From: Zope Unit Tests
Date: Tue Oct 31 21:37:53 EST 2006
URL: http://mail.zope.org/pipermail/zope-tests/2006-October/006445.html

Subject: OK : Zope-2.9 Python-2.4.3 : Linux
From: Zope Unit Tests
Date: Tue Oct 31 21:39:23 EST 2006
URL: http://mail.zope.org/pipermail/zope-tests/2006-October/006446.html

Subject: OK : Zope-2.10 Python-2.4.3 : Linux
From: Zope Unit Tests
Date: Tue Oct 31 21:40:53 EST 2006
URL: http://mail.zope.org/pipermail/zope-tests/2006-October/006447.html

Subject: OK : Zope-trunk Python-2.4.3 : Linux
From: Zope Unit Tests
Date: Tue Oct 31 21:42:23 EST 2006
URL: http://mail.zope.org/pipermail/zope-tests/2006-October/006448.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] Maintainer of Zope 2 Windows builds?

2006-11-01 Thread Christian Steinhauer
Hi, 
since month there is no new windows build of the zope2 releases. It would be 
nice if someone can make a decision who can take care of the build for the 
windows version. I´m not a fan of zope for windows but some people need it for 
windows servers and companys where they dont want to upgrade to linux os.



___
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: [z3-five] RFC: The future of Products.Five

2006-11-01 Thread Philipp von Weitershausen

Andreas Jung wrote:

Andreas Jung wrote:

What are our benefits from a Z2 Eggification. Eggification is basically
about packaging and distribution of components with little dependencies
in order to re-use them in other contexts. However most components of
Zope 2 are heavily dependent on others.


Yes, that's true. But eggs don't necessarily have to have few
dependencies ;). Eggs just have well-defined dependencies. And like Whit
said, there might be a desire to have certain Zope 2 components have a
faster life cycle than others, e.g. ZopeTestCase in Whit's case.



Yeah, it would make sense for particular components but not for all 
components just for the sake of eggs.


Well, it may be that we decide to embrace eggs for our packaging story, 
at least in Zope 3 (as a replacement for zpkg). At that point we should 
ask ourselves if it wouldn't be a good idea to do the same for Zope 2. 
In Zope 2, eggs could really help with the add-on story (as a more 
general replacement for Products).

___
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] Mime type for PDB files

2006-11-01 Thread Alan

Hi List!

I have some lines in a ZPT file creating a link to PDB files in a
LocalFS folder:

span tal:repeat=item python: options.get('pdbsw','null')
trtd
a tal:attributes=href python:
container.JOBS.absolute_url()+'/'+item+'.pdb' tal:content=python:
item+'.pdb'get file/a
/tdtd
/span

It works fine expect for one thing. When clicking at the link, my
browser (Safari), thinks my PDB file has mime type text.

Is it possible to define the mime type (chemical/x-pdb) for my linked
files in Zope?

I would thank any attention in advance.

Regards,
Alan

--
Alan Wilter S. da Silva, D.Sc. - CCPN Research Associate
Department of Biochemistry, University of Cambridge.
80 Tennis Court Road, Cambridge CB2 1GA, UK.

http://www.bio.cam.ac.uk/~awd28

___
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] Zope 2.6.4 - 2.10.0 Migration (PageTemplates, Unicode, etc.)

2006-11-01 Thread Brian Brinegar
So... We decided to move from Zope 2.6.4 to something newer (currently
targetting Zope 2.10.0). I immediately found that none of our
PageTemplates work we get an error on

PageTemplates/Expressions.py line 92 that call_with_ns is not defined.

  ob = call_with_ns(ob, ns, 2)

Changing it as follows fixes the problem, I think this is a bug.

  ob = ZRPythonExpr.call_with_ns(ob, ns, 2)

Next... we have lots of PageTemplates which raise the following exception:

  Module zope.pagetemplate.pagetemplate, line 118, in pt_render
  Module StringIO, line 271, in getvalue
UnicodeDecodeError: 'ascii' codec can't decode byte 0xb9 in position 93:
ordinal not in range(128)

I suspect there are non-ascii characters in the file, but I'm not sure
how to fix this, or how I would know what to replace it with. Is there a
way to turn off Unicode support?

Any other issues I might run into during this upgrade? Should we move to
an older version (2.8? 2.9?) first and then onto 2.10?

Thanks,
-- 
Brian Brinegar
Web Systems Developer
Engineering Computer Network
___
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: Zope 2.6.4 - 2.10.0 Migration (PageTemplates, Unicode, etc.)

2006-11-01 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Brian Brinegar wrote:
 So... We decided to move from Zope 2.6.4 to something newer (currently
 targetting Zope 2.10.0). I immediately found that none of our
 PageTemplates work we get an error on
 
 PageTemplates/Expressions.py line 92 that call_with_ns is not defined.
 
   ob = call_with_ns(ob, ns, 2)
 
 Changing it as follows fixes the problem, I think this is a bug.
 
   ob = ZRPythonExpr.call_with_ns(ob, ns, 2)

The released version of that module does not have that bug:

http://svn.zope.org/Zope/tags/2.10.0/lib/python/Products/PageTemplates/Expression.py

Are you sure you are running 2.10.0?

 Next... we have lots of PageTemplates which raise the following exception:
 
   Module zope.pagetemplate.pagetemplate, line 118, in pt_render
   Module StringIO, line 271, in getvalue
 UnicodeDecodeError: 'ascii' codec can't decode byte 0xb9 in position 93:
 ordinal not in range(128)
 
 I suspect there are non-ascii characters in the file, but I'm not sure
 how to fix this, or how I would know what to replace it with. Is there a
 way to turn off Unicode support?

I would probably just bring the affected templates up in the 2.6 ZMI and
 cut and paste their text across into the 2.10 site (to get the charset
right).

 Any other issues I might run into during this upgrade? Should we move to
 an older version (2.8? 2.9?) first and then onto 2.10?

Maybe.


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

iD8DBQFFSNdo+gerLs4ltQ4RAptUAKCnv3uwlbCcWBbZVltj2MlFKyA3JACeMbvV
QbB+jn14ymVTpKJoUcBfgnA=
=Soon
-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] Mime type for PDB files

2006-11-01 Thread Andreas Jung



--On 1. November 2006 04:56:28 + Alan [EMAIL PROTECTED] wrote:


Hi List!

I have some lines in a ZPT file creating a link to PDB files in a
LocalFS folder:

span tal:repeat=item python: options.get('pdbsw','null')
trtd
a tal:attributes=href python:
container.JOBS.absolute_url()+'/'+item+'.pdb' tal:content=python:
item+'.pdb'get file/a
/tdtd
/span

It works fine expect for one thing. When clicking at the link, my
browser (Safari), thinks my PDB file has mime type text.

Is it possible to define the mime type (chemical/x-pdb) for my linked
files in Zope?



For 'File' instances you can set the 'content_type' property within the ZMI.

-aj

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


[Zope] External Method = Slow; Shell Script = Fast

2006-11-01 Thread Edward Pollard
Hello,

I've got an external method that does some pretty complicated stuff.
Basically it takes two XML files - one defines constraints, the other
variables - and the script finds a solution using the variables that
satisfies the constraints.

At the command line (or executed via an external method that calls a shell
script) execution is 2 seconds.

As an external method execution is 15-20 seconds with the same input.

Can anyone offer tips or strategies to improve performance? It would be
obnoxious to have to encode objects for passing to a shell script.

---
Edward J. Pollard, B.Sc
Webmaster, University of Lethbridge
Ext. 1828


___
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] External Method = Slow; Shell Script = Fast

2006-11-01 Thread Jonathan


- Original Message - 
From: Edward Pollard [EMAIL PROTECTED]

To: zope@zope.org
Sent: Wednesday, November 01, 2006 5:58 PM
Subject: [Zope] External Method = Slow; Shell Script = Fast



Hello,

I've got an external method that does some pretty complicated stuff.
Basically it takes two XML files - one defines constraints, the other
variables - and the script finds a solution using the variables that
satisfies the constraints.

At the command line (or executed via an external method that calls a shell
script) execution is 2 seconds.

As an external method execution is 15-20 seconds with the same input.

Can anyone offer tips or strategies to improve performance? It would be
obnoxious to have to encode objects for passing to a shell script.


You should use something like ZopeProfiler or CallProfiler to find out where 
the time is being spent.



Jonathan 



___
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] External Method = Slow; Shell Script = Fast

2006-11-01 Thread Jonathan


- Original Message - 
From: Edward Pollard [EMAIL PROTECTED]

To: Jonathan [EMAIL PROTECTED]
Sent: Wednesday, November 01, 2006 5:21 PM
Subject: Re: [Zope] External Method = Slow; Shell Script = Fast



Hi Jon,

ZopeProfiler seems to come with no instructions to install. Can you 
advise?


Ed


I haven't installed it for years, but i seem to remember that it installed 
just like a normal product (ie. install in the Products directory, restart 
zope, it shows up automagically - in linux that is, i don't do windows). 
Wasn't there a README when you unpacked the tarball?


Maybe someone else on the list has more recent experience...


Jonathan 



___
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] newbie root addressing questions

2006-11-01 Thread Terry Brown
I'm buidling a site in /site/collected on a Zope
system.

Using ZPT rather than DTML

So every page starts with

html
metal:use-macro=root/site/collected/tmpl/basepage/macros/page

also, for the time being, the site's at
someurl.com/collected/, but in future might be
someurl.com/ so pages include things like

link href=/collected/collected.css rel=stylesheet
type=text/css/

so I'm wondering 

1) how I can make the site relocateable on the Zope
system, i.e. each file has 'root/site/collected' in
the initial macro call, can that be avoided, and

2) how can pages refer to their site's root when that
is currently /collected/ but might later become / ?

I found some discussion of DTML approaches, but I'm
hoping for something purely ZPT.

For (2) the main problem seems to be that if I put the
root path (/collected/ or /) in
/site/collected/rootpath it's hard to find from
/site/collected/gallery/ or
/site/collected/gallery/page1/ or some other
sub-sub-location.

Thanks,

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