Re: [Zope] Can Zope use a Different Python?

2000-11-11 Thread Petr van Blokland

We made a link in zope/lib to the real python,
replacing the python folder there. That works.

Gary Perez wrote:

 Hi.

 We've got Zope 2.2.2 installed on a Linux box. We want to be able to use
 the full-up python that's on the box instead of the python interpreter
 that comes with Zope for playing with External Methods.

 Is there any way to circumvent Zope's python in this way?

 If not, what's the easiest way to extend Zope to be able to use our
 non-Zope python?

 Alternatively, we're plagued by import and attribute errors when
 accessing the External Methods. Will simply moving (or linking?) all the
 pieces (whatever.py, __init__.py, etc.) into a subdirectory of "Shared"
 fix the problem?

 Thanks in advance for your help.
 -GMP

 ___
 Zope maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope
 **   No cross posts or HTML encoding!  **
 (Related lists -
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope-dev )


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope-dev] Re: [Zope] Multi-lingual sites and workflow

2000-11-02 Thread Petr van Blokland



Lee Hunter wrote:

 I was wondering if anyone here has used Zope to create
 bilingual/multi-lingual/localised websites.

 I've done a number of bilingual (French and English) projects in recent
 years using plain old html where the two language versions had to be kept
 mostly symmetrical and its been a bit of a pain as the site grows to keep
 the two versions in synch and make sure the translations are done on time
 etc.

 Its seems that Zope might help manage these kinds of projects - by smoothing
 the workflow - tracking what needs translation, perhaps sending stuff to the
 translator automatically, reporting on what's been done by who and comparing
 the two language versions to make sure they are parallel. And perhaps even
 sharing a common architecture - so that you didn't need two sets of DTML
 methods etc.

 I'm wondering if this fits into other generic Zope workflow products that
 people have talked about developing or if it would have to be built from
 scratch.

 Anyone have thoughts on this subject?

Yes. Look at our bilingual site at http://www.petr.com
In the url: http://z.petr.com/buro/p/index_html?language=en
the parameter 'language' is available in the whole object tree.
Only text modules need to know how to react on this parameter.
Pages, images, navigation, templates etc. are not aware of the language
(though they may if needed, e.g. changing the layout)
So there in only one tree of pages, one set of navigation.
The text modules have syntax like:

dtml-if "getform('language') == 'nl'"De kracht van het werken met klein
team...
dtml-elseThe strength of working with a small team...
/dtml-if

Pages only contain references to text modules and the name of a template
to be used.

Kind regards, Petr van Blokland
[EMAIL PROTECTED]


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




[Zope] Re: Multi-lingual sites and workflow

2000-11-02 Thread Petr van Blokland

Holger,
thanks, I will check it out.
Reason for the different approach is that we have to have
an aditional layer inbetween pages and modules as we call them.

We have a list of modules which are plain texts pieces that can
be on several pages in the site (and other things, they are xml based
and can be used in PDF as well).
There is one template for the whole site (which is a *complete* html
document since just headers and footers won't work most of the time).

Pages are only bindings of module names to labelnames and the
template name to be used for the page.
A typical page is:

dtml-let
 labelfeature="m.front.feature_css"
 sidenavigation="m.products.sidenavigation_css"

 label1="'m.navigation.panorama_to_building'"
 label3="'m.front.buro_address'"
 label4="'m.front.map_delft'"
 label5="'m.front.working_on_database'"

dtml-with templates
 dtml-var template_balloon_dtml
/dtml-with
/dtml-let

The site-template would contain something like:

span id="navigationtext"
 dtml-if label1
  span id="label1"dtml-var label1_to_html/span
 /dtml-if
 dtml-if label2
  span id="label2"dtml-var label2_to_html/span
 /dtml-if
/span

span id="otherlabels"
 dtml-var label3_to_html
 dtml-var label4_to_html
 dtml-var label5_to_html
 dtml-var label6_to_html
 dtml-var label7_to_html
/span

dtml-if label8
 span id="sidelabel"dtml-var label8_to_html/span
/dtml-if

One of the advantages this way is that modules take care of themselves.
Adding a parameters in the url will make all the modules add a button
to themselves as link to an editor windows on that module. Page and
template don't need to know.

This contruction has proved very flecxible, but is the opposite from
the translate approach.

Regards, Petr



___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] images in directories

2000-11-02 Thread Petr van Blokland


 "Farrell, Troy" wrote:

 dtml-with IMAGES
   dtml-var image1
 /dtml-with

This also works:

dtml-var "IMAGES.image1"


Petr van Blokland
[EMAIL PROTECTED]


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] Upscaling of performance

2000-11-02 Thread Petr van Blokland

Hi,
does have anyone reference on or information about
the upscaling of Zope for *very* large hit performance:
1.000.000 per day or so?

Petr van Blokland
[EMAIL PROTECTED]


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )