Re: [Zope] [Off-Topic] KSS ugly?

2008-10-13 Thread Tarek Ziadé
On Mon, Oct 13, 2008 at 8:37 AM, Damien Baty [EMAIL PROTECTED] wrote:
 On Mon, Oct 13, 2008 at 2:24 PM, Encolpe Degoute
 [EMAIL PROTECTED] wrote:

 That is what KSS opponents atr thinking:
 http://svn.plone.org/svn/collective/collective.kss.fucker/trunk/README.txt

  I think that these KSS opponents (sic) may want to choose a more
 elegant name...


I would like to mention that Christophe talks and acts on his own
right there, he submitted this
package on his own self and Ingeniweb is not part of this action.

I just had a breakfast with Godefroid this morning where we talked
about our uses
cases at ingeniweb and things we could do together.

I have asked Christophe to remove the ingeniweb name from this
package,  and to remove the kss
name as well, because this is not only insulting the KSS guys, this is
also insulting
the Ingeniweb guys that works with KSS everyday.



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




-- 
Tarek Ziadé | Association AfPy | www.afpy.org
Blog FR | http://programmation-python.org
Blog EN | http://tarekziade.wordpress.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 )


[Zope-dev] Five, Z2 publisher, and zope.traversing views

2008-06-03 Thread Tarek Ziadé
Hi,
When using a resource directory in a Zope 2 app, if the directory contains
subdirectories that have the same
names than the views defined in zope.traversing, this will lead to a bug
when traversed because the Z2 Publisher will
get slaped back.

This can happen for example if your resourcedirectoy has a lang folder (or
vh or skin, etc..)

We have wrote a small package with an adapter to make it work:

http://ingeniweb.svn.sourceforge.net/svnroot/ingeniweb/iw.resourcetraverser/trunk/iw/resourcetraverser/README.txt


But my understanding is that it would be better to fix it in Five,


Opinions ?


Regards,


Tarek

-- 
Tarek Ziadé | Association AfPy | www.afpy.org
Blog FR | http://programmation-python.org
Blog EN | http://tarekziade.wordpress.com/
___
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] zope.testing console script

2008-05-20 Thread Tarek Ziadé
On Fri, May 16, 2008 at 1:31 PM, Christian Theune [EMAIL PROTECTED] wrote:

 On Thu, May 15, 2008 at 08:32:28AM -0400, Benji York wrote:
  On Thu, May 15, 2008 at 7:43 AM, Wichert Akkerman [EMAIL PROTECTED]
 wrote:
   Is there a reason to advocate zope.testing over the others? Would it
   perhaps make more sense to use one of the more widely used tools
 instead
   of maintaing our own testing toolkit?
 
  I'd also like for us to adopt one of the more widely used test
  runners, but as mentioned in replies, there are some features in
  zope.testing that we depend on.  If someone were adequately motivated
  and had sufficient time (neither of which I have, so I suspect no one
  else does either), it would be interesting to attempt to endue another
  test runner with the features we need (layers, etc.).

 I like our test runner and spent time refactoring it so we can actually
 start
 making changes again. I looked at other test runners (nose, py.test) and
 didn't find anything compelling (to me) that we didn't already have.

 Christian


I am on Christian's side here: zope.testing is a great tool, used by many
people,
and with strong features,

it looks like it does not need a lot of work to be usable without a buildout
environment,
and to have modern features nose and py.test provides.

At least :

1. the console script (I'll add that in the trunk asap in any case)
2. being able to write tests without subclassing TestCase, in functions and
classes (regexp based+ wrapping)
3. being able to create suites without any extra boiler-plate code, like
nose does (afaik)

Christian, are you willing to work on 2. and 3. ?

++
Tarek




 --
 Christian Theune · [EMAIL PROTECTED]
 gocept gmbh  co. kg · forsterstraße 29 · 06112 halle (saale) · germany
 http://gocept.com · tel +49 345 1229889 7 · fax +49 345 1229889 1
 Zope and Plone consulting and development




-- 
Tarek Ziadé | Association AfPy | www.afpy.org
Blog FR | http://programmation-python.org
Blog EN | http://tarekziade.wordpress.com/
___
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] zope.testing console script

2008-05-15 Thread Tarek Ziadé
Hi,

I am comparing nose, py.test and zope.testing, and I realized
zope.testing does not install a console script at
Python level.

it is not really a problem when working with a buildout-centric
approach (thanks to zc.recipe.testrunner),
but how can zope.testing be used with plain Python package ?

Is there any installer available, that would allow running
zope.testing from the shell ?

To advocate zope.testing, I need to be able to demonstrate it can be
used like the other tools available out there :D

If nothing exists, I would like to suggest adding a setuptools console
entry point in zope.testing setup.py file,
to get a python script in the $PYTHON/bin folder, exactly like what
zc.recipe.testrunner does.

It could be called zope.testrunner maybe ? (nose= nostests, py.test = py.test)

Regards
Tarek



-- 
Tarek Ziadé | Association AfPy | www.afpy.org
Blog FR | http://programmation-python.org
Blog EN | http://tarekziade.wordpress.com/
___
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] zope.testing console script

2008-05-15 Thread Tarek Ziadé
On Thu, May 15, 2008 at 2:10 PM, Christian Theune [EMAIL PROTECTED] wrote:
 On Thu, May 15, 2008 at 01:43:05PM +0200, Wichert Akkerman wrote:
 Previously Tarek Ziadé wrote:
  I am comparing nose, py.test and zope.testing, and I realized
  zope.testing does not install a console script at
  Python level.
 
  it is not really a problem when working with a buildout-centric
  approach (thanks to zc.recipe.testrunner),
  but how can zope.testing be used with plain Python package ?
 
  Is there any installer available, that would allow running
  zope.testing from the shell ?
 
  To advocate zope.testing, I need to be able to demonstrate it can be
  used like the other tools available out there :D

 Is there a reason to advocate zope.testing over the others? Would it
 perhaps make more sense to use one of the more widely used tools instead
 of maintaing our own testing toolkit?

Good question,

I am not through in my comparison work, but the range of features are
quite interesting in zope.testing ihmo, compared to others, and the zope
community is used to it.



 For one: the others don't have layers.


Yes, and other provides test fixtures at method, class, module and
(nose) package level.

Although, py.test and nose provide a lighter approach where there's no need
to use the unittest base classes, as the tools wraps on the fly any
function, class so there's no need for extra boiler-plate code.

py.test is using an iterator to launch tests immediatly while looking
for them, the script is very fast

This work i am doing is for a book, but I can publish the conclusion here if
it can help making a decision on this.

At this point I think that the work being done by Collin Winter in Python 3K
will lead to a new testing framework in Python/unitest  that will be
less Java-oriented
and lighter for test writer.

From there, the third party libraries will probably be reduced to the
test discovery
part. (I don't think this will be integrated in python but I might be wrong)

My point of view is that zope.testing should evolve a little bit to be usable
naturally from the command line like others, and maybe be more flexible in the
discovering part, by wrapping tests that are not based on TestCase.

This would make a unique testing tool, for the Zope community,
and with a lighter way to write new tests, and with the command-line interface
they are used to since years

Tarek
___
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] zope.testing console script

2008-05-15 Thread Tarek Ziadé
Phillip:
 I suppose having it called 'test' (which is our convention) is a bit 
 arrogant. But calling it 'zope.testrunner' creates the allusion that the 
 package is called zope.testrunner as well. How about 'run-zope.testing' or 
 something along those lines?

Chris McDonough [EMAIL PROTECTED] wrote:
 FWIW, we wrapped it up like this:

 http://svn.repoze.org/repoze.zope2/trunk/repoze/zope2/scripts/testrunner.py

 (that's the backend for a zope2testrunner console script)


mmm, what about a shorter name ?

ztests

Tarek

-- 
Tarek Ziadé | Association AfPy | www.afpy.org
Blog FR | http://programmation-python.org
Blog EN | http://tarekziade.wordpress.com/
___
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] PluggableAuthService and PrincipalDeleted

2008-04-16 Thread Tarek Ziadé
Hi,

the IPrincipalDeleted event is never notified. As a matter of fact,
this would be useful to be able to trigger some cleanup in various
plugins,
when user data has to be cleaned up.

(FYI the PrincipalCreated event has a nice high level API _doAddUser
that triggers IPrincipalCreated but no high level API for deletion)

PAS also provides an  IUserAdderPlugin interface for plugins that adds users.

For deletion, I would like to do some changes into PAS:

- add a IUserRemoverPlugin interface that adds a removeUser *or*
rename IUserAdderPlugin to IUserManagerPlugin, but the latter would
involve a lot of trouble i think
- make ZODBUserManager implements it
- add a notify(PrincipalDeleted(user_id))   in ZODBUserManager

This would be helpfull to catch the event in various plugins

My final goal is to make sure user properties are cleaned up in
PlonePAS when a user is removed.


Opinions ?


Tarek
-- 
Tarek Ziadé | Association AfPy | www.afpy.org
Blog FR | http://programmation-python.org
Blog EN | http://tarekziade.wordpress.com/
___
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-PAS] PluggableAuthService and PrincipalDeleted

2008-04-16 Thread Tarek Ziadé
Hi,

The IPrincipalDeleted event is never notified. As a matter of fact,
this would be useful to be able to trigger some cleanup in various
plugins, when user data has to be cleaned up.

(FYI the PrincipalCreated event has a nice high level API _doAddUser
that triggers IPrincipalCreated but no high level API for deletion)

PAS also provides an  IUserAdderPlugin interface for plugins that adds users.

For deletion, I would like to do some changes into PAS:

- add a IUserRemoverPlugin interface that adds a removeUser *or*
  rename IUserAdderPlugin to IUserManagerPlugin, but the latter
  would involve a lot of trouble i think
- make ZODBUserManager implements it
- add a notify(PrincipalDeleted(user_id))   in ZODBUserManager

This would be helpfull to catch the event in various plugins

My final goal is to make sure user properties are cleaned up in
PlonePAS when a user is removed.


Opinions ?

Wichert's feedback on this:

  I'ld also define a new interface for acl_users which supports mutable
  users and groups. The current one (which PAS implements) is read-only by
  design. That is also why _addUser is not defined in an interface
  anywhere and starts with an underscore.


Tarek


-- 
Tarek Ziadé | Association AfPy | www.afpy.org
Blog FR | http://programmation-python.org
Blog EN | http://tarekziade.wordpress.com/
___
Zope-PAS mailing list
Zope-PAS@zope.org
http://mail.zope.org/mailman/listinfo/zope-pas


Re: [Zope] [buildout] bootstrap and develop

2008-02-06 Thread Tarek Ziadé


Maurits van Rees-3 wrote:
 
 ...
 2. What would be alternatives or how can this be changed?
 
 You can use the z3c.recipe.egg:editable recipe.  I briefly tried that,
 but it did not work for our (Zest Software) internal password
 protected subversion repository, where we keep the code for our
 clients.  The recipe tries to easy_install a package but it fails as
 it cannot use our repository without a password.
 

You can use the #egg trick within the [buildout] find-links variable,
then add lovely.buildouthttp to take care of the svn login.

You will need a simple .httpauth file in your HOME/.buildout directory
 
++
Tarek
-- 
View this message in context: 
http://www.nabble.com/-buildout--bootstrap-and-develop-tp15119239p15309668.html
Sent from the Zope - General mailing list archive at Nabble.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] [buildout] bootstrap and develop

2008-02-06 Thread Tarek Ziadé


Janko Hauser-2 wrote:
 
 Besides I didn't know that there is an extension mechanism besides  
 recipes.
 
 One of our repositories is also password protected, but after the  
 first successful login with an interactive svn session on the console  
 this is not an actual issue.
 

Yes that's how lovely.buildouthttp is hooked (a extension), to add
authentication.
So no interactive session is required at all. You should try it, it's very
handy.

For svndevelop, beware that your buildout syntax will therefore depend on
this
extension. Regular develop are fine, if you have a buildout-friendly layout
in your subversion: you can checkout a whole tree and use relative paths
in your buildout.

++
Tarek

-- 
View this message in context: 
http://www.nabble.com/-buildout--bootstrap-and-develop-tp15119239p15324086.html
Sent from the Zope - General mailing list archive at Nabble.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 )


[Zope] Compilation issues

2007-06-13 Thread Tarek Ziadé

Hello,

I am trying to set up a Python/Zope in my home because I have a limited
access to the server,
but I have an issue when i try to run Zope with unicode compilation with the
Persitency module.

I remember I had this problem once with PyLucene, and recompiling Python
with the right option
resolved it. But in the present case, it doesn't solve it...

Any ideas ?

Thanks

Tarek

1/ Error:

$ ./bin/runzope
[...]
Traceback (most recent call last):
 File /home/tarek/opt/zope-2.8.4/lib/python/Zope2/Startup/run.py, line
56, in ?
[...]
 File /home/tarek/opt/zope-2.8.4/lib/python/persistent/__init__.py, line
19, in ?
   from cPersistence import Persistent, GHOST, UPTODATE, CHANGED, STICKY
ImportError: /home/tarek/opt/zope-2.8.4/lib/python/persistent/cPersistence.so:
undefined symbol: PyUnicodeUCS2_AsEncodedString

2/ So i tried this:

Python compilation:

$ ./configure --enable-unicode=ucs2 --prefix=/home/tarek/opt/python-2.3.5
$ make  make install

Zope compilation:

$ ./configure 
--prefix=/home/tarek/opt/zope-2.8.4--with-python=/home/tarek/opt/python-
2.3.5/bin/python
$ make  make install

3/ My system info (regular debian):

$ cat /proc/cpuinfo   more /etc/debian_version  uname -a
processor   : 0
vendor_id   : CentaurHauls
cpu family  : 6
model   : 10
model name  : VIA Esther processor 2000MHz
stepping: 9
cpu MHz : 1995.084
cache size  : 128 KB
fdiv_bug: no
hlt_bug : no
f00f_bug: no
coma_bug: no
fpu : yes
fpu_exception   : yes
cpuid level : 1
wp  : yes
flags   : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge cmov
pat clflush acpi mmx fxsr sse sse2 tm nx pni est tm2 rng rng_en ace ace_en
ace2 ace2_en phe phe_en pmm pmm_en
bogomips: 3992.74

lenny/sid
Linux  2.6.18.1dedibox_r6_final #1 Mon Oct 16 14:05:25 CEST 2006 i686
GNU/Linux


--
Tarek Ziadé | Association AfPy | www.afpy.org
Blog FR | http://programmation-python.org
Blog EN | http://tarekziade.wordpress.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 )


Fwd: [Zope] Compilation issues

2007-06-13 Thread Tarek Ziadé

Forwarding my reply (the reply-to header seem misconfigured on this list)

-- Forwarded message --
From: Tarek Ziadé [EMAIL PROTECTED]
Date: Jun 13, 2007 3:10 PM
Subject: Re: [Zope] Compilation issues
To: Andreas Jung [EMAIL PROTECTED]



On 6/13/07, Andreas Jung [EMAIL PROTECTED] wrote:




--On 13. Juni 2007 14:50:04 +0200 Tarek Ziadé [EMAIL PROTECTED]
wrote:

 Hello,

 I am trying to set up a Python/Zope in my home because I have a limited
 access to the server,
 but I have an issue when i try to run Zope with unicode compilation with
 the
 Persitency module.

 I remember I had this problem once with PyLucene, and recompiling Python

 with the right option
 resolved it. But in the present case, it doesn't solve it...


You're mixing somehow Python modules compiled with different Python
versions (in detail with different internal unicode representation UCS2 vs

UCS4).

-aj




Something like that probably, I recompiled Zope and Python, recreated a
fresh instance, removed all .pyc
from my old Products directory and copied it in the fresh instance, copied
the Data.fs and now it works...

Thanks

--
Tarek Ziadé | Association AfPy | www.afpy.org
Blog FR | http://programmation-python.org
Blog EN | http://tarekziade.wordpress.com/


--
Tarek Ziadé | Association AfPy | www.afpy.org
Blog FR | http://programmation-python.org
Blog EN | http://tarekziade.wordpress.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: Compilation issues

2007-06-13 Thread Tarek Ziadé

On 6/13/07, Tres Seaver [EMAIL PROTECTED] wrote:



These are both in clean source trees?  'make clean' in the Zope tree
might be worth trying.  I just ran similar builds in a completely empty
directory tree (unpacking from source) without problems.



Hi Tres, the problem was fixed by creating a new instance AFAIU.
I was trying to run an old instance I copied from another server on the
fresh Zope/python install.
(the old instance had the same Python/Zope versions, same paths, and no .so
files in the Products)

Maybe it was a pyc problem or something in the Data.fs. I copied the
Products (clean, w/o pycs)
and copied the old Data.fs and now it works.

Thanks for your help

Tarek


Tres.

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

iD8DBQFGb/KD+gerLs4ltQ4RAtpBAJwP29kwXUNMTrA6eWOqUHVBAaTGKACfeU4i
vY4sPx3mhZ4B/QypMTmPvN4=
=/HtD
-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 )





--
Tarek Ziadé | Association AfPy | www.afpy.org
Blog FR | http://programmation-python.org
Blog EN | http://tarekziade.wordpress.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: [ZWeb] Foundation Site

2006-10-13 Thread Tarek Ziadé
Andrew Sawyers wrote:
 See:  foundation.zope.org

 This is using Darryl's magic.  It was painful to get such a beast of RH 9
 working (with 2 arms tied behind my back) but we did it.  Thanks Darryl and
 David from ZC.

 I will need to speak with someone about getting the necessary pieces from
 Darryl's end into svn so we can have the whole ball of wax in svn.


 Andrew Sawyers

   
cool :)
Until someone answers Baiju about a place to report issues,

I'd like to give a feedback about the menu

from this page:

http://foundation.zope.org/members/

looking at the menu, I think that it will be more readable if we change
all labels
from members  submenu

Zope Foundation Strategic Developer Members - Strategic Developer Members
Zope Foundation Associate Members - Associate Members
etc..

We all know it's the members list for ZF so we can cut the ZF header I
think.
to get a lighter, more readable menu, with one line entries

Tarek




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

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


Re: [Zope] AJAX and Zope

2006-05-24 Thread Tarek Ziadé
Lennart Regebro wrote:

 On 5/24/06, Pascal Peregrina [EMAIL PROTECTED] wrote:

 By Zope objects I meant:

 You've got a page template for example, and you include such an AJAX
 enabled object, basically rendering an HTML fragment, and the
 resulting page will include the page template code + the fragment
 (similar to a macro call), but will also include the needed
 javascript code to handle the asynchronous communication.


 That is a macro call. There is no difference. It just that the macro
 includes the HTML needed to suck in the JS library you use.

 Then another thing would be something like a PythonScript object (so
 you define python code and return python structures) and get it
 rendered as javascript to be included in somepage for processing the
 data returned by an asynchronous XML-RPC call to Zope within the
 browser.


 Thare has been discussions and efforts to make a library where you can
 write python code and get Ajax out, yes. It is very non-trivial. :)


You might want to look at Azax approach as well:
besides the way it works (you define behaviors in XML files, that get
processed by a js engine)

it gathers Zope 3 help views, that let the developer define the behavior
in Python

I think the stuff lennart talks about is CrackAjax, but IIRC it is  not
really maintained
and let you kinda write javascript in Python: the python code is not
valid (can't be tested, etc..), but translated to valid javascript

Tarek


___
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-dev] Z2 / Z3 publisher

2006-02-13 Thread Tarek Ziadé
Sidnei da Silva wrote:

On Mon, Feb 13, 2006 at 12:44:44AM +0100, Tarek Ziadé wrote:
| Hello,
| 
| I've hurd a bit ago that some people wanted to replace Zope 2 publisher
| with Zope 3 one.
| Is it still planned ?

I've looked at it and opened a can of worms *wink*. OTOH, I've
factored out parts of Zope 2 ZPublisher enough to implement
IPublication. The next step from there is providing a compatible
request and response objects.

This branch has a couple hacks to start up twisted and adapt the Zope
3 request/response to the expected Zope 2 ones. It does enough to
render the quickstart page with Zope 3's-included twisted and the
IPublication from Zope 2 but not much else.

http://svn.zope.org/Zope/branches/publication-refactor/

I think the refactoring into IPublication can be merged to trunk
without problem, but the branch needs some cleaning before that.

  

neat !
___
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] Progress bar for file upload

2006-02-13 Thread Tarek Ziadé
Andrew Milton wrote:

The actual submission is to a small CGI that handles updating the status 
inside 
Zope via XMLRPC (you could also update a response file that the product could
check as well, but, that's just more files that have to be written to and
removed), when it's complete it passes in the location of the file(s) to the
Zope Product so it can process them further (by spawning a worker thread, so
you don't stop Zope from responding to requests).
  

oh k. i am trying to add this directly to the publisher, by providing
 a set of api and keeping running request state.

Part of the product also just draws a status graph giving a message saying
what is happening and what the progress is, if there's more processing to be
done (parsing or whatever), the graph can continue to be updated.

  

nice. in my use case it's a simple progress bar below the form

When I said outside the box, I was pretty serious about being outside the box
d8) Obviously you need to have some webserver available that can run CGIs, and
talk to Zope, and (in this case is local to Zope for the file handling to
work). It doesn't have to be in front of Zope.
  

yes, i've seen some similar systems to deal with large file upload
is you product avalaible ?

Tarek

___
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] server optimisation

2006-02-13 Thread Tarek Ziadé
Andreas Jung wrote:



 --On 13. Februar 2006 12:38:12 +0100 santiago [EMAIL PROTECTED]
 wrote:

 hello

 I'm looking for information on how to optimise a zope server :

 -what should I check in order to see what is slowing the server
 -what can I customise to make it run faster
 and so on.

 are there some source of information of this kind if topics ?



 The six-line version:

 - don't write dumb code
 - use cache managers
 - disable debug-mode in zope.conf
 - use front-side cache (Apache, Squid)
 - adjust ZODB cache
 - don't use X

 There are a lot of issues that can have an impact on the performance.
 If you have a particular case you should first profile the related
 code (using PTProfiler, ZopeProfiler).

 -aj

Funkload might help you as well, to find the bottlenecks on your app. it
has very detailed reports

Tarek
___
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] Progress bar for file upload

2006-02-13 Thread Tarek Ziadé
Andrew Milton wrote:

+---[ Tarek Ziad? ]--
| Andrew Milton wrote:
| 
| The actual submission is to a small CGI that handles updating the status 
inside 
| Zope via XMLRPC (you could also update a response file that the product 
could
| check as well, but, that's just more files that have to be written to and
| removed), when it's complete it passes in the location of the file(s) to the
| Zope Product so it can process them further (by spawning a worker thread, so
| you don't stop Zope from responding to requests).
|   
| 
| oh k. i am trying to add this directly to the publisher, by providing
|  a set of api and keeping running request state.

Yeah ugly. I don't think distributing a Product that monkey-patches ZPublisher
would be all that warmly received d8)

  

I was not talking about doing a monkey patch there, but add a feature
within the publisher.

| Part of the product also just draws a status graph giving a message saying
| what is happening and what the progress is, if there's more processing to be
| done (parsing or whatever), the graph can continue to be updated.
| 
|   
| 
| nice. in my use case it's a simple progress bar below the form

You could probably do that too using some JavaScript if you wanted, the API 
is all available in Zope. I'm not a 'front-end' type of guy, my main concern
is to make sure it works so that people can put whatever frontend they want on
it.
  

they are two distinctive part to do that:
1/the client side, wich gets asynchronous feedback from the server, that
is javascript or whatever.
2/ the server side that keep track of a given request state. (getting
data / processing)
   (that's the missing part, that you probably did with another cgi
server on seperate thread)

| When I said outside the box, I was pretty serious about being outside the 
box
| d8) Obviously you need to have some webserver available that can run CGIs, 
and
| talk to Zope, and (in this case is local to Zope for the file handling to
| work). It doesn't have to be in front of Zope.
|   
| 
| yes, i've seen some similar systems to deal with large file upload
| is you product avalaible ?

The code is quite old, so I'm currently making sure it still works, and
sanitizing it for public consumption. Give me a day or two, to clean it up,
add a simple demo, and write up some docs about how to use it. My days are
currently consumed with visiting recruiters who are in the way of actual jobs
(unfortunately not Zope related ones).

  

Don't waste your time for me about it, i would just have had a look to
see how it's done, but
i am not planning to use it soon

Regards

Tarek

___
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] Progress bar for file upload

2006-02-13 Thread Tarek Ziadé
Andrew Milton wrote:

| Yeah ugly. I don't think distributing a Product that monkey-patches 
ZPublisher
| would be all that warmly received d8)
|
| I was not talking about doing a monkey patch there, but add a feature
| within the publisher.

I was referring to my code, not your code d8)
[cut]

No, I didn't. There's only one CGI to handle the upload. The rest is inside
the Zope Product, which tracks the state of each upload. You can call
http://example.com/path/UploadManager/uploadId/percentComplete
and get a number from 0.0 to 100.0. There's also methods to get error messages 
etc.

I'm just too lazy to write a nifty front-end to it d8) I'm sure someone else 
will and I can just add that to the codebase...

  

ah ok, if i get it right you've patched the publisher to plug your
code that let the product get the upload state of a given request.
so beside the CGI stuff it's pretty close to what i want to do

| The code is quite old, so I'm currently making sure it still works, and
| sanitizing it for public consumption. Give me a day or two, to clean it up,
| add a simple demo, and write up some docs about how to use it. My days are
| currently consumed with visiting recruiters who are in the way of actual 
jobs
| (unfortunately not Zope related ones).
| 
|   
| 
| Don't waste your time for me about it, i would just have had a look to
| see how it's done, but
| i am not planning to use it soon

A few people have expressed interest in it, so I'll get it scrubbed up and
released. At least the next time someone asks, there's somewhere to point them
to d8)

  

cool, i'll watch for that :)

___
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-dev] Z2 / Z3 publisher

2006-02-12 Thread Tarek Ziadé
Hello,

I've hurd a bit ago that some people wanted to replace Zope 2 publisher
with Zope 3 one.
Is it still planned ?

Regards,

Tarek
___
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] Progress bar for file upload

2006-02-12 Thread Tarek Ziadé
Bruno Grampa wrote:

 Hello,
 what is the better way to implement a simple progress bar when
 uploading a file in Zope?

 Thanks (also for all the answers, hints and tips i've received from
 this wonderful community in the past times!)
Bruno

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

Hello,

IIRC you cannot do it because Zope 2 publisher won't let you get a
request state (ie, how much data
has been retrieved by the server)

I've started to work to add this feature for Zope 3 though.

Tarek
___
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] Progress bar for file upload

2006-02-12 Thread Tarek Ziadé
Andrew Milton wrote:

+---[ Bruno Grampa ]--
| Hello,
| what is the better way to implement a simple progress bar when uploading 
| a file in Zope?

The way I did it was to write a FS Product to handles uploads and that spawns
a new thread for each upload. You should generate an id and redirect to a
status page that can render any graphs you need (based on the id).

  

interesting, how do you know in your thread the progress of data (i mean
the %) that is beeing uploaded on the server ?

Tarek
___
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] Off Topic: Good linux editors?

2006-01-29 Thread Tarek Ziadé

Andreas Jung wrote:




--On 28. Januar 2006 21:14:51 -0800 David [EMAIL PROTECTED] wrote:


Hi list,

I'm fairly new to Linux (ubuntu server version) and simply hate VIM. Nor
do I want to mind meld with the complex EMACS.   I just wonder what
Editors some of you prefer as you write stuff like external scripts, 
etc.





Look at http://wiki.python.org/moin/PythonEditors
 
You might ask 100 developers about their favorite editor and you might 
get 80 different answers. Every developers has its very own reasons 
for using an certain editor. In some way editors are like 
women...choose one (or two) for your lifetime and be happy :-)


-aj


there's also a recent review here: 
http://spyced.blogspot.com/2005/09/review-of-6-python-ides.html

the people will present it updated in a track at PyCon 06 as well

Tarek

___
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-dev] Zope 2.10: Wiki started

2005-12-23 Thread Tarek Ziadé
Andreas Jung wrote:


 I created a wiki for the 2.10 development:

 http://www.zope.org/DevHome/Projects/Wikis/DevSite/Projects/Zope2.10/FrontPage


 Feel free to contribute and comment.

I've bumped into a problem in one of my five product lately, moving from
2.8 to 2.9
some Z3 package have disapeared to keep essential ones.

This is pretty cool but hard to follow for developers.

I'd like to suggest a page in this wiki to list included Z3 packages.

This will be helpfull for developers that tries to integrate Z3 flavored
code as much as possible
in their Z2/Five products.

Another page could list Z3 package people would like to see integrated
in 2.10 (with some
 kind of proposal process maybe)

(for example in my case i'd like to propose zope.app.cache as I use it
in some five products,
this is a small thing, but this is one more piece of logic/code I won't
have to refactor :) )

Tarek

-- 
Tarek Ziadé | Nuxeo RD (Paris, France)
CPS Plateform : http://www.cps-project.org
mail: tziade at nuxeo.com | tel: +33 (0) 6 30 37 02 63
You need Zope 3 - http://www.z3lab.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 )


[Zope-dev] removing test.py from path

2005-11-25 Thread Tarek Ziadé

Hello,

Benji recently changed test.py in Z3 in order to avoid collision name 
with the standard python 'test' module.


I bumped into the same problem running tests under Z 2.8.
I would like to add this change as well in Z 2.8 bin/test.py if no one 
objects.


Tarek

--
Tarek Ziadé | Nuxeo RD (Paris, France)
CPS Plateform : http://www.cps-project.org
mail: tziade at nuxeo.com | tel: +33 (0) 6 30 37 02 63
You need Zope 3 - http://www.z3lab.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] removing test.py from path

2005-11-25 Thread Tarek Ziadé

Tarek Ziadé wrote:


Hello,

Benji recently changed test.py in Z3 in order to avoid collision name 
with the standard python 'test' module.


I bumped into the same problem running tests under Z 2.8.
I would like to add this change as well in Z 2.8 bin/test.py if no one 
objects.


oups, tipo, (Z2 trunk, i mean)

___
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-Annce] CPSMailAccess 1.0 beta released

2005-06-08 Thread Tarek Ziadé
June, 8 2005 -- Nuxeo is happy to release CPSMailAccess 1.0 beta 1.

CPSMailAccess is a full featured open source webmail application for
CPS3 under the GPL licence. It provides a flexible web interface to
browse and send mails, fully integrated to CPS portals, as it can be
used by any allowed member of the portal.

CPSMailAccess provides among others features:

* AJAX based mail editor
* drag'n'drop for mails and folders
* incoming mails filtering
* private and public address books
* etc.

CPSMailAccess is built on Five, thus making the Product easily portable
to Zope 3. Its architecture also allows to integrate it to any
Zope-based platform as its dependencies to CPS3 are close to none and
thought to be easily overriden.

For more functional and technical information, see the CPSMailAccess web
site:

* http://www.cps-project.org/sections/projects/cpsmailaccess

CPSMailAccess can be downloaded here:

* http://www.cps-project.org/static/misc/CPSMailAccess-1.0.0-b1.tgz

You can also get the latest changes on the svn repository, browsable here:

* http://svn.nuxeo.org/trac/pub/browser/CPSMailAccess/

And get the cutting edge version from the trunk with this command:

svn co http://svn.nuxeo.org/pub/CPSMailAccess/trunk CPSMailAccess

Look at the INSTALLATION.txt file in the package for more information on
how to install CPSMailAccess, or on the web site:

* http://www.cps-project.org/sections/projects/cpsmailaccess/install
  http://www.cps-project.org/sections/projects/cpsmailaccess
*

If you'd like to help with CPSMailAccess development or porting to other
plateforms, please join the cps-devel mailing list at:

* http://lists.nuxeo.com/mailman/listinfo/cps-devel

(a dedicated list will be created if needed in the future)

For any user feedback or information, use the CPS users mailing lists:

* http://lists.nuxeo.com/mailman/listinfo/cps-users:
  http://lists.nuxeo.com/mailman/listinfo/cps-users english
  speaking list
* http://lists.nuxeo.com/mailman/listinfo/cps-users-fr : french
  speaking list

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