[Zope] ZCA / five / zcml overrides issue...

2010-03-26 Thread Bruno Desthuilliers
Hi there

I probably missed some point about how this Component Architecture /
ZCML config stuff is supposed to work with zope 2.10+ (actually Zope
2.10.5), ,so any hint or pointer welcome...

Here's my problem:

I use a third-part product (ContentMirror) that defines some interfaces
and their implementations, and register the adapters in it's
configure.zcml. It also defines a couple zcml directives, with actions
that call  component.getMultiAdapter to retrieve the implementation for
these interfaces.

I'd like to provide my own implementation for one of these interfaces.
So I wrote the implementation, added an include of the ContentMirror
package in my own configure.zcml, and an overrides.zcml with the
registration directive for my own implementation:

configure xmlns=http://namespaces.zope.org/zope;
  !-- use our own PeerFactory implementation instead --
  adapter
 for=ore.contentmirror.interfaces.IMirrored
ore.contentmirror.interfaces.ISchemaTransformer
 provides=ore.contentmirror.interfaces.IPeerFactory
 factory=.peer.ManagedSchemaPeerFactory
 /
/configure


Bad luck, the whole thing then crashes when ContentMirror's own zcml
directive are executed - looks like none of the adapter are effectively
registred by that time (it of course worked just fine - but with the
original IPeerfactory implementation - before I added this override).

Here's the traceback I get at startup:

2010-03-23 11:41:41 ERROR Application Couldn't install Five
Traceback (most recent call last):
  File /home/zope/share/Plone-3.0.6/lib/python/OFS/Application.py,
line 786, in install_product
initmethod(context)
  File
/home/zope/share/Plone-3.0.6/lib/python/Products/Five/__init__.py,
line 28, in initialize
zcml.load_site()
  File /home/zope/share/Plone-3.0.6/lib/python/Products/Five/zcml.py,
line 53, in load_site
_context = xmlconfig.file(file)
  File
/home/zope/share/Plone-3.0.6/lib/python/zope/configuration/xmlconfig.py,
line 581, in file
context.execute_actions()
  File
/home/zope/share/Plone-3.0.6/lib/python/zope/configuration/config.py,
line 612, in execute_actions
callable(*args, **kw)
  File
/home/zope/share/Products/ProductsOTHERS/ContentMirror/eggs/ore.contentmirror-0.5.2b2-py2.4.egg/ore/contentmirror/loader.py,
 


line 39, in load
peer_class = self.peer( instance, transformer )
  File
/home/zope/share/Products/ProductsOTHERS/ContentMirror/eggs/ore.contentmirror-0.5.2b2-py2.4.egg/ore/contentmirror/loader.py,
 


line 51, in peer
interfaces.IPeerFactory )
  File /home/zope/share/Plone-3.0.6/lib/python/zope/component/_api.py,
line 103, in getMultiAdapter
raise ComponentLookupError(objects, interface, name)
ConfigurationExecutionError:
zope.component.interfaces.ComponentLookupError: ((ATDocument at
transient, ore.contentmirror.transform.SchemaTransformer object at
0xb6e028c), InterfaceClass ore.contentmirror.interfaces.IPeerFactory,
u'')
  in:
  File
/home/zope/share/Products/ProductsOTHERS/ContentMirror/eggs/ore.contentmirror-0.5.2b2-py2.4.egg/ore/contentmirror/content.zcml,
 


line 3.4-3.80
  ore:mirror
content=Products.ATContentTypes.content.document.ATDocument /



I obviously did something wrong - but what ???

TIA
-- 
bruno desthuilliers
br...@websiteburo.com


___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Question about Zope and security

2006-03-30 Thread bruno desthuilliers
Cyrille Bonnet wrote:
 Hi there,
 
 I have been telling all my clients about how great Zope is for security:
 fine-grained permissions, security framework, roles, etc.
 
 Now, one of my clients has a security expert who took a close look at
 how Zope authenticates users. The results were not good.
 
 The main problem is that Zope stores the username and password in a
 cookie in clear text (base64 encoded).

*Zope* don't do that. It's the (infamous) CookieCrumbler products that
is responsible for this horror.

 Even though it only happens in their internal network, my client wasn't
 too happy, because it makes them vulnerable to a man-in-the-middle attack.
 
 I know, the odds of that happening are low, but storing the username and
 password in clear text is clearly not best practice.

That's an understatement.

 So, my question is: is there a way to secure Zope authentication?

yes : use https.

-- 
bruno desthuilliers
développeur
[EMAIL PROTECTED]
http://www.modulix.com
___
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] newbie Simple WebSite Construction Using Zope and Search

2006-03-07 Thread bruno desthuilliers
Matt Slavin wrote:
 Hi,
 I am trying to use Zope to create a very simple company website (about
 40 pages, or so) with the intention of having the flexibility to
 expand functionality etc in due course. I have very little Python /
 DTML experience,

Python is in itself pretty easy to learn. DTML is a pure horror IMHO,
and I avoid it by all means. ZPT (Zope Page Templates) are perhaps not
the simplest existing template solution, but combined with metal macros
and acquistion, it's a very powerful solution.

 but have managed to set up the site using
 includes on the main index page and then use aquisition to provide
 the content within each section.
 
 I'm not sure if this is a safe - or correct way of going about it, but
 it seems ideal for our purposes. The navigational menus dynamically
 include a link to each sub folder - ie website/services/ - and
 navigating to a section, index_html is automatically shown. The
 mainContent variable is then
 dynamically placed into index_html. (So there are separate
 mainContent dtmlDocuments in About Us, Services etc..) This means we
 can keep the content completely separate, and do not have to include
 headers, footers and other includes within the mainConte nt variable.
 Brilliant.
 
 However, when using the search script -
 http://www.zope.org/Members/Ioan/SiteSearch - results return a link
 back to the dtml_Document file mainContent, which gets displayed
 without any of the header of footer information. Is there any way to
 render the page with header and footer info? (By, I guess, redirecting the
 page to the containing folder, so that it pulls out index_html instead...)


What I do is using ZPT and metal macros.

1/ I have one or more master page template(s) for the layout(s).
This|these template(s) define a a page macro at the beginning (before
the doc type declaration) and slots for the parts that are to be
overridden by other templates - one of these slots being the main_content.

2/ then I have content page templates that callback on the appropriate
master template and fill in the needed slots

The whole thing relies on the Product used for content knowing how to
render in a page template (the EpozDocument product provides a good base
for this - don't be afraid, it's not that terrible).



A sample master template would look like this:

metal:block define-macro=page
DOCTYPE 
html
head
  title tal:content=here/title_or_idtitle/title
  metal:block define-slot=meta/metal:block
  ...
/head
body
 div id=header
  metal:block define-slot=header
  the standard header, can be overriden
  /metal:block
  /div

  div id=sidebar
   metal:block define-slot=sidebar
   div tal:replace=here/get_side_menu /
   /metal:block
  /div

  div id=main_content
   metal:block define-slot=main_content
 this is the main content area, to be overriden
   /metal:block
  /div

  div id=footer
  the standard header, can be overriden
  /metal:block
  /div
/body
/html
/metal:block


And a (very simple) page template for a given content type could be
(assume there's a get_master_template method (ie python script or method
of the content product) that returns the appropriate master template):

metal:block use-macro=here/get_master_template/macros/page
metal:block fill-slot=main_content
h1 tal:content=here/title_or_idthe title/h1
div tal:content=here/content
 the real content
/div
/metal:block
/metal:block


I did my first Zope site with this architecture and the EpozDocument
product for content pages, and it has proven to be a pretty
usable/maintainable/extensible solution.

HTH
-- 
bruno desthuilliers
développeur
[EMAIL PROTECTED]
http://www.modulix.com
___
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] How do I do this using Zope?

2006-03-06 Thread bruno desthuilliers
John Poltorak wrote:
 
 I would like to create a folder (news) which contains several news items, 
 lets say news1, news2, news3.
 
 I would like to set up a menu box which lists all the news items in 
 the news folder which when clicked on would load each one up.
 
 
 How do I code this up? (Hope someone understands what I'm getting at)
 

What's your question exactly ? How to create a new Folder-like type and
the related news type ? How to create the html for the menu ? Something
else ?


-- 
bruno desthuilliers
développeur
[EMAIL PROTECTED]
http://www.modulix.com
___
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] How do I do this using Zope?

2006-03-06 Thread bruno desthuilliers
John Poltorak wrote:
(reposted to zope.org)
 Hi,
 
 On Mon, Mar 06, 2006 at 02:08:10PM +0100, bruno desthuilliers wrote:
 
John Poltorak wrote:

I would like to create a folder (news) which contains several news items, 
lets say news1, news2, news3.

I would like to set up a menu box which lists all the news items in 
the news folder which when clicked on would load each one up.


How do I code this up? (Hope someone understands what I'm getting at)


What's your question exactly ? How to create a new Folder-like type and
the related news type ? How to create the html for the menu ? Something
else ?
 
 
 Forget 'news' for the moment, I was just using it as an example.
 
 What I wanted to do was create a folder where I could place objects

Quite simple for now: create a folder and place objects inside !-)

 and 
 have them automatically appear on a selectable menu.

You mean a menu of links, or a select in a field ?

 
 As an example I might have an 'events' folder where I had objects event1, 
 event2, event3 so would want to see a list of selectable objects on a 
 particular menu.

news.objectValues(['event']) method will give you the list of objects
with meta_type 'event' contained in the folder with id 'news'. So
Andrew's answer was almost ok:

tal:block define=news python: context.news.objectValues(['event'] 
ul tal:condition=news tal:repeat=new news 
  li
a tal:attributes=href news/absolute_url
   tal:content=news/titleLink/a
  /li
/ul
/tal:block

(replace html markup with what appropriate of course...)

NB: see also objectIds() and objectItems() in the doc.

HTH
-- 
bruno desthuilliers
développeur
[EMAIL PROTECTED]
http://www.modulix.com
___
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] Error Value: 'File' object has no attribute 'manage_fixupOwnershipAfterAdd'

2006-02-16 Thread bruno desthuilliers
Roman Klesel wrote:
 Hello,
 
 Roman Klesel schrieb:
 
Hello,

in a product I try to make a file object persistent with the _setObject() 
method.

What's wrong with:

container.manage_addProduct['OFSP'].manage_addFile(id, file='',
title='', precondition='', content_type='', REQUEST=None)


-- 
bruno desthuilliers
développeur
[EMAIL PROTECTED]
http://www.modulix.com
___
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] Advice needed before settling on Zope

2006-02-15 Thread bruno desthuilliers
Lennart Regebro wrote:
 On 2/15/06, Rainsford, David [EMAIL PROTECTED] wrote:
 
Our client is quite specific about what they require and how they want it to
be presented, so ease of customisation and extensibility is a major factor.
We have looked around at existing CMSes but have not found one that fulfills
all of our requirements or that is customisable enough that we can fulfill
our requirements with a bit of work.  We looked at Plone, and then I decided
we might be better off going down a level and building on Zope.
 
 
 Have you looked at CPS? It seems to fulfill most of your requirements
 out of the box.

I can confirm this - In fact, I was about to post about it !-)

Now for the downside:
- CPS is a complex beast built on top of CMF, which is a complex beast
built on top of Zope2 which is itself already quite complex.
- Zope2's documentation is in a very sorry state (lot of outdated stuff,
sometime contracting each others, and lot of undocumented or
underdocumented features and gotchas).
- It's even worse for CPS and CMF since they have almost no usable
documentation. Due to the hi abstraction level of these frameworks, even
using-the-code-luke can become a kind of nightmare.

Learning Python is surely not a problem. Any decent programmer should be
able to productive with Python in less than 2 weeks. The problem is
learning Zope2, then learning CMF and CPS. And this is really another story.

Not to say you shouldn't use Zope or CPS - they are both great pieces of
software and you should definitely take time to evaluate CPS as a
possible solution.

Now would you choose to stick to 'barebone' Zope, and since you're fresh
to Zope, I'd say that Zope3 might be a far better option than Zope2. And
 AFAICT, Zope3 seems to be better documented than Zope2.

My 2 cents...
-- 
bruno desthuilliers
développeur
[EMAIL PROTECTED]
http://www.modulix.com
___
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] Method to return the properties of an object

2006-02-10 Thread bruno desthuilliers
George wrote:
 Is there a method to return the properties of an object?
 

Not sure what you're talking about... Properties as defined by the
PropertySheet/PropertyManager API, or just attributes ?


-- 
bruno desthuilliers
développeur
[EMAIL PROTECTED]
http://www.modulix.com
___
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] zope / web content

2006-02-06 Thread bruno desthuilliers
azzouz wrote:
 Hi,
 
 In our institut customer administration want to manage editing updating
 and modifying web page under zope with account authentification. There
 aren't supposed to know html, dmtl, zpt language. Are there tools to
 allow them do those actions under text format which will fill the web
 content of our web site under zope plateform.

Some possible solutions that comes to mind:
- using stx or rst format
- using ZWiki -  it has support for different wiki syntaxes, and the API
seems quite clean, so integrating it in another Zope app may be quite
possible (I'm actually investigating this solution for our intranet)
- using Epoz, Kupu, TinyMCE or any other 'WYSWYG' html editor. A first
start could be the EpozDocument product.

-- 
bruno desthuilliers
développeur
[EMAIL PROTECTED]
http://www.modulix.com
___
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] Zope vs Plone: performance issues!

2006-01-24 Thread bruno desthuilliers
Hugo Ramos wrote:
 Hi all,
 
 I'm responsible for a big corporate intranet and corporate portal.
 They were using Zope/Plone before I got here and the problems are too many.
 
 Let's talk about performance issues... Plone is VERY SLOW responding
 requests. All content is stored in ZODB objects and zcatalog is used
 to search. But even if you request the intranet home only, it takes
 about 10 seconds to load. The hardware is very good and lots of ram is
 used in the servers.
 
 They also have zeo + 2 zope instances running in the same machine.
 I've never seen this in my life... only 3 machines running 2 zope
 instances + zeo instance, separately.
 
 Do you think Zope(logic)+MySQL(content)+Apache(HTTP server) is better
 solution than Zope+Plone ???

I think the problem has more to do with Plone than with Zope or the
ZODB. We have a couple 'barebones' zope applications here that serve
public website. Hosting is on a shared server (behind apache) with no
zeo, no cache, no tuning, no fancy configuration, and performances are
pretty good - even with search. For the record, we've tried Plone on the
same server, and even with almost no content, it *is* *very* slow.

-- 
bruno desthuilliers
développeur
[EMAIL PROTECTED]
http://www.modulix.com
___
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] Newbee interfaces and implementations

2006-01-18 Thread bruno desthuilliers
Roman Klesel wrote:
 Hello,
 
 I'm in the process of learning to develop fs-zope-products.
 
 The developers guide recommends to write interfaces and implement them in 
 classes. Now my question:
 
 When I have an interface:
 
 DoThings
 
 with several methods:
 
 doThis()
 doThat()
 doThattoo()
 ...
 
 and I have an implementation:
 
 DoThingsClass
 
 How will I then access the methods e.g. in a Template?

myObject = DoThingsClass(any_args_here)
myObject.doThis()

 
 Through the interface:
 
 tal:define=context/DoThings/doThis

should be:
tal:define=some_name context/some_thing/some_attribute_or_method

 or through the implemantation:
 
 tal:define=context/DoThingsClass/doThis

Looks like you're newbie to OO too !-)

A class defines a type. You then need to have an instance of that type
(like, say, 42 is an instance of type integer and 'foo' is an instance
of type string).

(Interfaces (I mean, 'explicit' interfaces) defines an 'abstract' type,
that can be implemented by many classes. With Python's dynamic typing,
you don't *need* explicit interfaces - at least with Zope 2.x. AFAICT,
the recommandation to use explicit interfaces is mostly about Zope3
relying on them to implement some nice features).

So it would be:

tal:define=some_name context/myObject/doThis

As you see, you don't have to worry about interface at this level...

 I would think the first one should be the case. 

And you would be wrong.

 Please shed some light on me!
 

Hope that does...

-- 
bruno desthuilliers
développeur
[EMAIL PROTECTED]
http://www.modulix.com
___
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] Re: Java vs Zope

2006-01-06 Thread bruno desthuilliers
Rocky Burt wrote:
 David H wrote:
 
Python is also object oriented.  In python, x = 10 creates an object not
a simple type - if I recall the same is true in Java.
 
 
 In fact this is not quite right.  In java, int x = 10 produces a
 primitive type.  Not a class instance at all.  In this case x has no
 methods which can be invoked whatsoever.  This is something I always
 despised about Java.  Java does have an Integer class but that is
 generally only used when an object is absolutely required (which is not
 often).  Java 1.5 did introduce autoboxing on primitive types so that
 int's and Integer instances could be interchanged without knowing in
 method calls, etc ... but x is still not an object with methods.
 
 In fact I'd go as far as to say that Python seems *more* object-oriented
 than Java.

s/seems/is/

Java is more class-oriented than object-oriented. It forces you to use
classes for everything, but not everything is an object. Python let you
use the paradigm that seems appropriate for the task at hand, but still
everything is an object (really everything : functions, classes and
modules too...)


-- 
bruno desthuilliers
développeur
[EMAIL PROTECTED]
http://www.modulix.com
___
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] Re: Java vs Zope

2006-01-06 Thread bruno desthuilliers
Andreas Jung wrote:
 
 
 --On 6. Januar 2006 10:06:55 -0500 Asad Habib [EMAIL PROTECTED]
 wrote:
 
 Well, the class is simply a construct that Java uses to define an object.
 Also, the concept of object is well defined in Java which makes it easier
 for the programmer to know what can and cannot be done. In Python, it is
 not as explicit. Java is a programming language and hence cannot be
 compared directly to a scripting language such as Python or PHP. These 2
 types are designed for different purposes.


 
 Python is not a programming language??? huh..the difference is that
 Java is compiled and Python is interpreted.

Not even - Python is byte-compiled too. The difference is that the
Python interpreter (call it 'VM' if you think that 'interpreter' isn't
buzzword-compliant enough) is smart enough to take care of the
compilation phase by itself.


-- 
bruno desthuilliers
développeur
[EMAIL PROTECTED]
http://www.modulix.com
___
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] Re: Java vs Zope

2006-01-06 Thread bruno desthuilliers
Asad Habib wrote:
(top-post corrected)

 
 On Fri, 6 Jan 2006, bruno desthuilliers wrote:
 
 Asad Habib wrote:
 (top-post corrected)

 On Fri, 6 Jan 2006, bruno desthuilliers wrote:
 Rocky Burt wrote:

 (snip)


 In fact I'd go as far as to say that Python seems *more*
 object-oriented
 than Java.



 s/seems/is/

 Java is more class-oriented than object-oriented. It forces you to use
 classes for everything, but not everything is an object. Python let you
 use the paradigm that seems appropriate for the task at hand, but still
 everything is an object (really everything : functions, classes and
 modules too...)

 Well, the class is simply a construct that Java uses to define an
 object. Also, the concept of object is well defined in Java which makes
 it easier for the programmer to know what can and cannot be done. In
 Python, it is not as explicit.


 Ho, really ? Chapter and verse, please ?

 Java is a programming language and hence
 cannot be compared directly to a scripting language such as Python


 Lol.

 or
 PHP. These 2 types are designed for different purposes.


 Learn Python, learn about it's object model, learn about it's execution
 model, and stop talking like a clueless newbie.


 Bruno, it's evident to me that you cannot distinguish between opinion
 and fact.

opinions :
- Java is a programming language, Python is a scripting language,
- Zope is like PHP,

facts :
- the two main differences between Python and Java are the type system
(declarative static in Java, dynamic in Python) and the fact that in
Python, everything is an object (which is not true in Java)
- Python is successfully used for large-scale applications
- Zope is a web application server written in Python


 My advice to you, try thinking outside your box! Python is one
 of several languages being used for software development in the world
 today 

I use, did use, and will still use other languages too (including Java,
which I really liked - before I discovered Python and Smalltalk).

 and just because I don't think it's optimal for large-scale
 applications (the keywork here is I, not everyone) does not mean that
 you have to insult me.

As I said elsewhere, you have the absolute right to think what you want,
prefer whichever language you prefer etc.

The problem here is not that you prefer Java, it is that you present a
mix of unbacked opinions and erroneous beliefs as facts. Hence my
advice. BTW, please re-read it carefully: I do not say you *are* a
clueless newbie - just that you actually talk like one. But you're of
course free to feel insulted if you prefer...


-- 
bruno desthuilliers
développeur
[EMAIL PROTECTED]
http://www.modulix.com
___
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] Re: Java vs Zope

2006-01-06 Thread bruno desthuilliers
Lennart Regebro wrote:
 On 1/6/06, bruno desthuilliers [EMAIL PROTECTED] wrote:
 
Not even - Python is byte-compiled too. The difference is that the
Python interpreter (call it 'VM' if you think that 'interpreter' isn't
buzzword-compliant enough) is smart enough to take care of the
compilation phase by itself.
 
 
 Ah, but that's not the only difference. 

Of course not !-)
This was only about the 'compiled-vs-interpreted' thing.



-- 
bruno desthuilliers
développeur
[EMAIL PROTECTED]
http://www.modulix.com
___
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] à l'aide

2005-12-16 Thread bruno desthuilliers
adeline nombre wrote:
 bonjour
 je suis un débutant. je veux installer zope sur la debian. mais j'ai
 remarqué un repertoire /usr/lib/zope. j'ai donc conclu que zope a été
 installé avec mon system debian. maintenant comment faire pour démarer
 zope. dois-je faire un start et où?
 merci

Hi.

First, please dont post in french here, this is an english-speaking list.

Havin zope libs installed is mandatory, but not enough - you now need to
create a zope instance (the actual server).

/usr/lib/zope holds zope's libs, as well as some utilities in the bin
subdirectory. One of these utilies is named mkzopeintance.py, and you
have to use it to create your Zope instance. mkzopeinstance will ask you
where you want to install the instance, and for an admin name and
password. Once done, you can start that instance with
path/to/your/zope/instance/bin/zopectl/start, then point your browser
to localhost:8080/manage, log in, and enjoy !-)

HTH
-- 
bruno desthuilliers
développeur
[EMAIL PROTECTED]
http://www.modulix.com
___
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] Silva

2005-11-02 Thread bruno desthuilliers
Piotr wrote:
 On Tue, 1 Nov 2005, bruno desthuilliers wrote:
(snip)

Oh, BTW: what versions of Zope and Silva ?
 
 Zope 2.7.4-0, python 2.4.0, linux2
 Silva 1.3
 

Err... You should consider:
- upgrading to Zope 2.7.8 (IIRC, Silva does not yet runs on 2.8.x)
- and install Python 2.3.5 - Zope 2.x is not supposed to be Python 2.4.x
compatible




-- 
bruno desthuilliers
développeur
[EMAIL PROTECTED]
http://www.modulix.com
___
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] Silva

2005-11-01 Thread bruno desthuilliers
Piotr wrote:
 Thank you Bruno for your answer. 
 On Mon, 31 Oct 2005, bruno desthuilliers wrote:
 
 
Piotr Konstanty wrote:

I'm new in zope world. I would like to install Silva as a product in zope. 
When 
I put all core silva product to lib/python/Products cataloge unpack it an 
restart zope again every think seems to be good 

How did you restart your zope instance ? If you want to make sure you
see start-time errors, you may want to use ZOPE-INSTANCE/bin/runzope
instead of ZOPE-INSTANCE/bin/zopectl start.
 
 OK. I started zope like you suggested and I didn't fnd nothik special in 
 log
 [EMAIL PROTECTED] ~]# /usr/bin/runzope
 --
 2005-10-31T18:29:43 INFO(0) ZServer HTTP server started at Mon Oct 31 
 18:29:43 2005
 Hostname: elunia.bibltor.torun.pl
 Port: 9080
 --
 2005-10-31T18:29:43 INFO(0) ZServer FTP server started at Mon Oct 31 
 18:29:43 2005
 Hostname: Elunia
 Port: 9021
 --
 2005-10-31T18:29:43 INFO(0) ZServer HTTP server started at Mon Oct 31 
 18:29:43 2005
 Hostname: elunia.bibltor.torun.pl
 Port: 9081
 --
 2005-10-31T18:29:43 INFO(0) Zope Set effective user to zope
 --
 2005-10-31T18:29:43 DEBUG(-200) FileStorage create storage 
 /var/lib/zope/data/Data.fs
 --
 2005-10-31T18:29:43 DEBUG(-200) TemporaryStorage create storage session
 --
 2005-10-31T18:29:43 BLATHER(-100) ZODB Commiting subtransaction of size 
 6044
 /usr/lib/python2.4/whrandom.py:38: DeprecationWarning: the whrandom module 
 is deprecated; please use the random module
   DeprecationWarning)
 --
 2005-10-31T18:29:44 BLATHER(-100) Z2 Installed sighandler for SIGTERM
 --
 2005-10-31T18:29:44 BLATHER(-100) Z2 Installed sighandler for SIGINT
 --
 2005-10-31T18:29:44 BLATHER(-100) Z2 Installed sighandler for SIGHUP
 --
 2005-10-31T18:29:44 BLATHER(-100) Z2 Installed sighandler for SIGUSR2
 --
 2005-10-31T18:29:44 INFO(0) Zope Ready to handle requests
 

Ok, seems clean...

but when I want to do next step 
from INSALL.txt of Silva namely on add list of ZMI I choose Slva root and 
want to add it to zope root folder after I feed Id and Title on the Add 
Silva 
Root page and I push Add button I receive HTTP 500 - Inside Error of 
server 
Internet Explorer. Where is an reason of this error? Any hints? 

I'd say that some required dependencies are missing.

To check this, you can either:
- have a look at ZOPE-INSTANCE/log/Z2.log

oops, sorry, I meant event.log. Z2.log is the equivalent of Apache's
acces.log. My bad :(

- goto Control_Panel/Products in the ZMI and check if some products are
'broken' (they have a special icon)

 
 Wolud you lke to mae a glance and hint me once more?

Have you checked for broken products in the Control_Panel ?

If you run in debug mode (cf ZOPE-INSTANCE/etc/zope.conf), have no
error when starting with runzope, have nothing wrong the event.log, and
have no broken product in the Control_Panel, then it must have something
to do with the phase of the moon...

Oh, BTW: what versions of Zope and Silva ?

-- 
bruno desthuilliers
développeur
[EMAIL PROTECTED]
http://www.modulix.com
___
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] Zope 2.8 or 3.1?

2005-10-28 Thread bruno desthuilliers
HaraldFinnås wrote:
 
(snip)

 and I plan on writing a simple application for tracking
 Non-Conformaties, Incident Reports etc (QA related).

Have you tried Trac ?

-- 
bruno desthuilliers
développeur
[EMAIL PROTECTED]
http://www.modulix.com
___
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 )