Re: [Zope] how to prevent URL access to an external method?

2009-04-28 Thread Garito
In my opinion Tres's way is the correct one for this case

Why? Because the original must be is to run the script only for internal
processes

The main diference between an internal call and a user one is the REQUEST
parameter and then the Tres's solution seems the more convenient way

It's only my opinion

2009/4/28 Jaroslav Lukesh luk...@seznam.cz

 Why? It is more transparent and better way - use security tab.


 - Original Message -
 From: Tres Seaver tsea...@palladion.com


  -BEGIN PGP SIGNED MESSAGE-
  Hash: SHA1
 
  Pedro LaWrench wrote:
  I need to do something on the filesystem, which requires unrestricted
  python, so I created an external method. The problem is that anyone
  can call that directly via URL, so I added a permission check. Even
  then, users with the sufficient permissions can call this via URL,
  which I don't want them to do. I only want them to have access
  indirectly from other pages (such as a page template that will pass
  sane parameters). Is there anyway to do this?
 
  Add a REQUEST argument to your function, defaulting to None.  The
  publisher will always pass the request in for that argument, while the
  other templates / scripts should not.  E.g.:
 
  def doSomething(self, REQUEST=None):
   Don't call me directly via a URL!!!
  
  if REQUEST is not None:
  raise ValueError('Wicked, evil, naughty Zoot!')

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




-- 
Mis Cosas
http://blogs.sistes.net/Garito
Zope Smart Manager
http://blogs.sistes.net/Garito/670
___
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] Fwd: Building a fast, scalable yet small Zope application

2009-04-27 Thread Garito
2009/4/27 Tres Seaver tsea...@palladion.com

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Garito wrote:
  jajajajajajajajajajajajaja
 
  Amazing!
 
  I don't know how the other list doesn't collapse using reply-to field
  jajajajajajajajajajajajaja

 I said religious because I meant that people have strong opinions
 about which style they prefer, and are not going to change them because
 others argue for the other style.  I didn't say (or imply) that those
 who disagree with me are wrong / evil / stupid.  I *did* say that this
 list is run according to the no-munging rules, and that it was a
 deliberate choice, not subject to debate.


Making joke, man, that's the point about religious, isn't it?



  What wonders me more is how belligerent some in this list are with this
  question

 I don't see how my reply can be considered belligerent.  Patrick asked
 why doesn't the list munge 'Reply-To'?, and I replied with a link to
 an explanation, along with a statement that arguing the question would
 not be fruitful.


I mix other conversations with that



  You cause the problem,

 If you had actually read the link I sent, you would have learned about
 the problems caused by munging 'Reply-To'.  I have participated in
 *lots* of mailing lists since the early nineties:  those which do munge
 the header are more painful, and routinely have oops, that was supposed
 to be a private reply messages show up.  The damage from such messages
 is *much* higher than the occasional forget to CC the list stuff on
 non-munging lists.  Again, this is *opinion,* shared by lots of mailing
 list maangers / users, but certainly not by all.

  at least try to don't threaten us with ban us if we
  send you private messages by mistake

 I don't know what you are talking about here:  I didn't threaten to ban
 anybody.  I generally ask (politely) that people keep their replies
 on-list, and assume that the occasional off-list reply is an honest
 mistake.  I *have* set up filters (in my own mail processing) dropping
 messages from a couple of users who persist in sending me private mail
 after being asked to keep the traffic on the list.


There are people that response very rude to a mistake private message



  This kind of things are to don't take you seriously, sorry, but this
 cause a
  very bad impression of the people of this list

 I'm sorry you feel that way.


I respect the opinions, yes, nothing to say about that. I respect you, all
of you, sometimes the email is not a good way to express. I'm a little bit
critic with some of the decisions you make because I think that Zope is the
best operating system (yes, I said operating system) someone could need

I think I need to be as critic because when you decide to make a step far
the vision of Zope I see more work I need to do for myself
I see Zope as a very very smart idea, a univers for my data in a very
similar way as a human brain seems to work and when I see how you invest
your time in another direction I sufer a lot

But, yes, I know that perhaps my vision of Zope is not like yours but it
was, at least when I know Zope the people publish some products with the
same vision

In that point I want to apologize. If I never offend you: sorry, nothing
personal




 Tres.
 - --
 ===
 Tres Seaver  +1 540-429-0999  tsea...@palladion.com
 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

 iD8DBQFJ9cVx+gerLs4ltQ4RAoCdAJ9xOVCuNjNoxf5uMgTeaSQhiaXMNwCgpnvR
 GHTZGcy1s0hP1/HRJPxX5xE=
 =shhQ
 -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 )




-- 
Mis Cosas
http://blogs.sistes.net/Garito
Zope Smart Manager
http://blogs.sistes.net/Garito/670
___
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] Fwd: Building a fast, scalable yet small Zope application

2009-04-26 Thread Garito
jajajajajajajajajajajajaja

Amazing!

I don't know how the other list doesn't collapse using reply-to field
jajajajajajajajajajajajaja

What wonders me more is how belligerent some in this list are with this
question

You cause the problem, at least try to don't threaten us with ban us if we
send you private messages by mistake

This kind of things are to don't take you seriously, sorry, but this cause a
very bad impression of the people of this list

2009/4/26 Tres Seaver tsea...@palladion.com

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Patrick Gerken wrote:

  Argl, why does this mailing list not use the reply-to: field?

 That would be a religious question, and one which is not helpful to
 debate here..  E.g., see:

  http://www.unicom.com/pw/reply-to-harmful.html

 The Zope mailing lists are *all* organized that way, because the admins
 / long-time users (including myself) are adherents of the munging
 considered harmful denomination.


 Tres.
 - --
 ===
 Tres Seaver  +1 540-429-0999  tsea...@palladion.com
 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

 iD8DBQFJ9J3E+gerLs4ltQ4RAnIyAKDAsEHOn49A4rY7S5GZ84NCbypytACfdNGr
 yXP1QjIwUofepjFrwccbwjU=
 =eapg
 -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 )




-- 
Mis Cosas
http://blogs.sistes.net/Garito
Zope Smart Manager
http://blogs.sistes.net/Garito/670
___
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] The history of Zope

2009-04-24 Thread Garito
To Jim Fulton with the permission of the list:

Did you read the Guido's The history of Python weblog?
If you are not busy enought ;), will be so much interessant and useful for
us to know the Zope history

We win on empathy with the people who make it possible (and we need to win
on this ;))
We win on general knowledge with Zope
We win on don't repeat the same mistakes you do (I think this is a goal for
you, isn't it?)

;)

Thanks!

-- 
Mis Cosas
http://blogs.sistes.net/Garito
Zope Smart Manager
http://blogs.sistes.net/Garito/670
___
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-dev] Zope 4.0, maybe not such a bad idea...

2009-04-14 Thread Garito
Well, Andreas, I think you don't understand that I'm in the process to left
behind Zope as my application framework, again you don't read what I write
you properly (the same problem again and again and again and again...)

2009/4/14 Andreas Jung li...@zopyx.com

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 On 13.04.2009 22:15 Uhr, Garito wrote:

 
  do you want that everyone contribute here? Well, respect us and don't
  think we are as stupids to talk to us like you are

 Very encouraging for continuing my Zope 2 relaunch project. You are once
 again throwing stones at people doing the work for you and the community.

 - -aj
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.9 (Darwin)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

 iEYEARECAAYFAknkML0ACgkQCJIWIbr9KYyxNgCguebp/awnKpJGxrHg/wcuDoiJ
 8rsAnipQ3B2IZb8BZeJjL74oPCGFwA8/
 =9eOy
 -END PGP SIGNATURE-




-- 
Mis Cosas
http://blogs.sistes.net/Garito
Zope Smart Manager
http://blogs.sistes.net/Garito/670
___
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-dev] Zope 4.0, maybe not such a bad idea...

2009-04-13 Thread Garito
This kind of actitude is what doing me and other like me stop to participate
to this list and I hope soon left Zope as a good tool without future

Andreas your actutide and your way make some of others seek at other
technologies

Is you who could be silent if you can't be gentle

You think that you are God but you are only one as others, I don't see why
your opinion is better thant Dieter's or mine or other's

The real thing is that you and other like you are killing Zope community,
take note, man

You need some listening course. Here we are human beings not machines like
you who know everything and never make mistakes

Sorry, man, we make mistakes and we sometimes seem stupid, in spanish we
said: quien tiene boca se equivoca (who have mouth make mistakes)

I appreciate your help everysingle time you give me but if it's needed to
hear you saying how wrong I am or how stupid I am...

2009/4/13 Dieter Maurer die...@handshake.de

 Andreas Jung wrote at 2009-4-12 09:52 +0200:
  
 @Dieter: participate or be silent.

 I do not obey your orders.

 You are Zope 2 release manager and part of the
 Foundation board -- but you do not have command power over things outside
 the Zope 2 release management and the foundation.

 Thus, I will participate in the way I have participated so far (i.e
 outside the circles controlled by the current Zope developers).
 And I will not be silent but continue to criticize tendencies that
 make Zope a less reliable platform for long living applications.


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




-- 
Mis Cosas
http://blogs.sistes.net/Garito
Zope Smart Manager
http://blogs.sistes.net/Garito/670
___
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-dev] Zope 4.0, maybe not such a bad idea...

2009-04-13 Thread Garito
Did you think that I'm considering myself part of these comunity?

Since the first time I wrote here you are telling me that I'm wrong even if
you don't know a word of what I'm doing

Did you think that I have good opinion about Zope, at this time, to
contribute?

I make a contribution that no one except Tim Nash make any kind of comment
(thanks again Tim!)

By now I only use Plone at work for money not for passion and I make things
by money or by passion

What kind of contribution do you think someone needs to do to be respected?

Something that you think it was useful or something that the contruibutor
thinks it was?

Perhaps if you know how to hear you could think that ZSM (or other products)
will be interessat for the Zope community

But you choose what you choose

This is what do open source big: you could be agree with a community or you
can make your own way

I choose the tools I'm using because they are great ideas AND has a good
people how wants to help and wants to be a community

Zope is a great idea, with people how wants to help except when they don't
understand what are you doing and you don't say nothing about the future of
your investment (and yes we are investing like you our time and money with
something that you create, we are confiding our lives to you movements.
Perhaps in other communities they think that this is quite important)

do you want that everyone contribute here? Well, respect us and don't think
we are as stupids to talk to us like you are

2009/4/13 Andreas Jung li...@zopyx.com

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 On 13.04.2009 14:28 Uhr, Garito wrote:

 
  The real thing is that you and other like you are killing Zope
  community, take note, man

 Before you make such nonsense statements, please step up and show
 your engagement in the Zope community e.g. by contributing to it.
 There are lots of low hanging fruits for showing your engagement e.g.
 the Zope 2 relaunch project (announced and blogged several times about
 it). People having expectations like  there will be some dorks doing the
 dirty community work like maintaining software and websites can kill a
 community.

 Andreas
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.9 (Darwin)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

 iEYEARECAAYFAknjh2IACgkQCJIWIbr9KYy/iQCdFl/DnX4DyhkfCcqX7JAVM1ht
 XMQAn1LWRP590dfzB50UvtVtoJSGe3P2
 =c66e
 -END PGP SIGNATURE-




-- 
Mis Cosas
http://blogs.sistes.net/Garito
Zope Smart Manager
http://blogs.sistes.net/Garito/670
___
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] Filesystem Directory View Child Folders

2009-02-18 Thread Garito
Hi!
I have a filesystem directory view that has 2 child folders

But when I switch to debug mode off the 2 folders disappears

Is this the normal FDV behaviour or I have any kind of problem?

Thanks!

-- 
Mis Cosas
http://blogs.sistes.net/Garito
Zope Smart Manager
http://blogs.sistes.net/Garito/670
___
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] TextIndexNG normalizer

2009-02-11 Thread Garito
Hi!
I'm trying to use TextIndexNG with english + spanish + catalan

I have no problem with english and spanish but catalan searches don't
normalize the accents etc

I suppose that I need an specific normalizer but I can't find any help in
google or in the official index homepage

Could someone point me where I could find this kind of information?

Thanks in advance!!!

-- 
Mis Cosas
http://blogs.sistes.net/Garito
Zope Smart Manager
http://blogs.sistes.net/Garito/670
___
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] TextIndexNG normalizer

2009-02-11 Thread Garito
Hi, Andreas, thank you for the response!

I don't know if I have the knowhow to achieve my goal but if I could see the
spanish normalizer (very similar with the catalan one) I could create it and
my boss is agree to pay the effort if he can put some credits on the product
;)

Are you interested on include the catalan as a normalized language in
TextIndexNG3?
If so, please, send me the normalizer code and I send you back with the
catalan specialization

2009/2/11 Andreas Jung li...@zopyx.com

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 On 11.02.2009 16:12 Uhr, Garito wrote:
  Hi!
  I'm trying to use TextIndexNG with english + spanish + catalan
 

 With TextIndexNG3 - you register your own normalizer implementation as
 a Z3 utility providing the INormalizer API (requires solid knowhow in
 the  Zope component architecture).

 - -aj
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.9 (Darwin)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

 iEYEARECAAYFAkmS7PoACgkQCJIWIbr9KYxSNgCfRV0yMM7CQTeAEEgAIymFNil0
 a/oAn0kJ/aygt/HK3tsspp9ktvMeDUSb
 =the8
 -END PGP SIGNATURE-




-- 
Mis Cosas
http://blogs.sistes.net/Garito
Zope Smart Manager
http://blogs.sistes.net/Garito/670
___
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] TextIndexNG normalizer

2009-02-11 Thread Garito
Are you refering normalizer.c? TXNG is a big product with a lot of files and
google don't help me so much (I try to find a response at google before ask
here ;) )

2009/2/11 Andreas Jung li...@zopyx.com

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 On 11.02.2009 16:47 Uhr, Garito wrote:
  Hi, Andreas, thank you for the response!
 
  I don't know if I have the knowhow to achieve my goal but if I could see
  the spanish normalizer (very similar with the catalan one) I could
  create it and my boss is agree to pay the effort if he can put some
  credits on the product ;)
 
  Are you interested on include the catalan as a normalized language in
  TextIndexNG3?

 - - put it into the bugtracker

  If so, please, send me the normalizer code

 TXNG is open-source so you can find and read the code yourself.
 (use 'grep' and 'find').

 - -aj
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.9 (Darwin)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

 iEYEARECAAYFAkmS830ACgkQCJIWIbr9KYw2GwCfZpq9JY0EXlXYW8POCQv/Hl9a
 P1AAmQFNm+6PXdC2QoNWxBWZ2MPEYlBD
 =9iTB
 -END PGP SIGNATURE-




-- 
Mis Cosas
http://blogs.sistes.net/Garito
Zope Smart Manager
http://blogs.sistes.net/Garito/670
___
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] TextIndexNG normalizer

2009-02-11 Thread Garito
Finally If you put iso in the languages list of your TextIndexNG index it
works ok so the catalan normalizer is not needed

If you add the l.l or the l·l simbol (ele geminada) to the iso normalizer
will be ok even for catalan. The normalized text will be ll (2 l)

We use this character for il.legal (in english ilegal) or cancel.lar (in
englis cancel)

Thank you so much!

2009/2/11 Garito gar...@sistes.net

 Are you refering normalizer.c? TXNG is a big product with a lot of files
 and google don't help me so much (I try to find a response at google before
 ask here ;) )

 2009/2/11 Andreas Jung li...@zopyx.com

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 On 11.02.2009 16:47 Uhr, Garito wrote:
  Hi, Andreas, thank you for the response!
 
  I don't know if I have the knowhow to achieve my goal but if I could see
  the spanish normalizer (very similar with the catalan one) I could
  create it and my boss is agree to pay the effort if he can put some
  credits on the product ;)
 
  Are you interested on include the catalan as a normalized language in
  TextIndexNG3?

 - - put it into the bugtracker

  If so, please, send me the normalizer code

 TXNG is open-source so you can find and read the code yourself.
 (use 'grep' and 'find').

 - -aj
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.9 (Darwin)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

 iEYEARECAAYFAkmS830ACgkQCJIWIbr9KYw2GwCfZpq9JY0EXlXYW8POCQv/Hl9a
 P1AAmQFNm+6PXdC2QoNWxBWZ2MPEYlBD
 =9iTB
 -END PGP SIGNATURE-




 --
 Mis Cosas
 http://blogs.sistes.net/Garito
 Zope Smart Manager
 http://blogs.sistes.net/Garito/670




-- 
Mis Cosas
http://blogs.sistes.net/Garito
Zope Smart Manager
http://blogs.sistes.net/Garito/670
___
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] Building a site tree with the ZCatalog

2008-10-21 Thread Garito
In a context where you need to obtain the whole list the Martijn solutions
sounds better in my ears because the Andreas one do more times the
bottleneck

In a context where you will complete the list as soon as you need (as Zope
Smart Manager) the Andreas one sounds better

Only my point of view ;)

2008/10/21 Andreas Jung [EMAIL PROTECTED]

 On 21.10.2008 18:25 Uhr, Martijn Pieters wrote:

 On Tue, Oct 21, 2008 at 18:10, Andreas Jung[EMAIL PROTECTED]  wrote:

 You have to split the complete processing over several EPI queries where
 a
 single query returns all elements with level=1 for a particular
 subfolder.
 You can sort_on='position' within each query. And paste the results in
 some
 way together. Nobody said that EPI would solve the problem out-of-the-box
 :-)


 Right, so with sufficient levels you end up with a *lot* of queries.

 Why not just query for the whole lot and use one method that returns a
 (path, position) tuple for a given item, and pass that to the sort
 function as the key keyword? Should be a lot better performing.



 If this would be a programming contest then you would cache the results and
 don't care about the performance for the initial calculation.

 Andreas

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




-- 
Mis Cosas
http://blogs.sistes.net/Garito
Zope Smart Manager
http://blogs.sistes.net/Garito/670
___
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] KSS ugly? (was: Re: use path function on a python script)

2008-10-12 Thread Garito
2008/10/12 Dieter Maurer [EMAIL PROTECTED]

 Garito wrote at 2008-10-11 16:37 +0200:
 In my country, Spain, there are a very high difference between the price
 it
 cost a tomato when you buy it to the farmer that if you buy it on the
 store.
 Why? Because of the intermediaries

 Sure. But sometimes intermediaries are helpful.


Not in this case



 I, e.g., would be unable to buy spanish tomatoes (or strawberries)
 in Germany without intermediaries.


This is internet, we don't need any kind of intermediary to achieve our
needs. You could choose more than one technique to do the job, not only KSS



 In my opinion KSS is an intermediary who raises the work that the computer
 needs to do to retrieve a response and more if we put the non intrusive
 javascript techniques on the table
 
 Sorry but I love minimalism and KSS is anything but minimalism

 Sure, intermediaries have a price -- but often, they also add value.


Not in this case: you could do the same without KSS



 KSS, e.g., allows you to update individual portlets or menues
 without reloading the complete page. This may reduce the work
 computers must do. This can be done with other (JS-based) techniques
 as well. However in addition, KSS handles the case with/without JS
 in a transparent way.
 As my colleagues intensively fight (and put much work into it)
 with our requirment must work with and without JS,
 I find this quite attractive.


I'm doing this since the begining with gmail. do gmail use kss? no. There
are a lot of people doing non-untrosive javascript without KSS

This is the real case: the computer needs to do 2 passes to achieve the real
result. Without KSS you create the non AJAX page and if the client has
javascript make the transformation. With KSS there are another pass to do
the same

Not to much minimalism, isn't it?





 --
 Dieter




-- 
Mis Cosas
http://blogs.sistes.net/Garito
Zope Smart Manager
http://blogs.sistes.net/Garito/670
___
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] use path function on a python script

2008-10-12 Thread Garito
This is like KSS question: why we resolve a question with the first way we
find? not the better one? Is the human being. But as Steve Jobs said some
time ago: only excelence people don't stop in the first way to resolve a
problem

When I meet Zope for the first time I was absolutely impress with it
There was nothing better to represent an object universe

I know that Zopers have their own way (this was discuss some time ago, too)
but my ideal scenario will be a minimalism Zope where everything was an URL

In this ideal scenario you could ask for an URL with or without parameters
as if you ask for to the browser

We stop this theme to wait for a Plone2PDF or similar. I hope we could solve
this in a simple way (I think if this needs a more complicated solution we
will have failed)

I only need to put a link with the PDF download to the current page! (this
don't sound to much complicated, isn't it?)

2008/10/12 Dieter Maurer [EMAIL PROTECTED]

 Garito wrote at 2008-10-11 16:39 +0200:
 Did you imagine another way to do what I need to do?

 I have not followed intensively what you need to do.
 Thus, what follows may not be adequate.

 When I remember right, then a PageTemplate's namespace is passed
 on to a Script (Python) when this script binds namespace.
 Thus, this way you get access to the variables defined in the template.

 A simple path var/s1/.../sn is roughly requivalent to

  x = var.restricedTraverse(s1/.../sn)
  if callable(x): x = x() # callable may not be available in Script
 (Python)

 If the path contains ?var, these must be resolved beforehand.

 More complex paths p1 | p2 | ... pn are roughly equivalent
 to

exc = None
for p in (p1, p2, ... pn):
  try: return path1(p, ...)
  except some standard exceptions:
exc = sys.exc_info()
if exc is not None: raise exc[0], exc[1], exc[2]

 The most difficult part are for paths where pn is not a path
 expression but an arbitrary one. In this case, the concrete
 TALES implementation will be required for an interpretation.


 Along this outline, a function path(path_expr, variable_binding)
 can be defined which roughly behaves like path(path_expr) in
 a PageTemplate with the current variable binding expressed
 as variable_binding.

 For simple cases, this function could be implemented in untrusted
 code. Complex cases will require access to the TALES implementation
 and therefore probably trusted code.



 --
 Dieter




-- 
Mis Cosas
http://blogs.sistes.net/Garito
Zope Smart Manager
http://blogs.sistes.net/Garito/670
___
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] KSS ugly? (was: Re: use path function on a python script)

2008-10-11 Thread Garito
In my country, Spain, there are a very high difference between the price it
cost a tomato when you buy it to the farmer that if you buy it on the store.
Why? Because of the intermediaries

In my opinion KSS is an intermediary who raises the work that the computer
needs to do to retrieve a response and more if we put the non intrusive
javascript techniques on the table

Sorry but I love minimalism and KSS is anything but minimalism

2008/10/11 Dieter Maurer [EMAIL PROTECTED]

 Garito wrote at 2008-10-8 14:22 +0200:
 I'm agree with you, Tino. Plone has a lot of ugly features (as KSS, for
 instance)

 Why is KSS ugly?
 Reading the documentation, I found it quite attractive



 --
 Dieter




-- 
Mis Cosas
http://blogs.sistes.net/Garito
Zope Smart Manager
http://blogs.sistes.net/Garito/670
___
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] use path function on a python script

2008-10-11 Thread Garito
Did you imagine another way to do what I need to do?



2008/10/11 Dieter Maurer [EMAIL PROTECTED]

 Garito wrote at 2008-10-8 10:46 +0200:
 How can I import the TALES funcion path on a python script?

 You cannot -- while it looks like a normal function, it not really is one.

 path gets a string but interprets this string with knowledge
 about the template's namespace. This shows you that some magic
 must be in the background that provides the template namespace
 to whatever implements path.
 This magic is unavailable in a Script Python.


 In fact, the path handling is prepared in
 Products.PageTemplates.PythonExpr.PythonExpr._bind_used_names
 by the following code:

for vname in self._f_varnames:
val = vars.get(vname, _marker)
if val is _marker:
has = val = getType(vname)
if has:
val = ExprTypeProxy(vname, val, econtext)
names[vname] = val

 The last two lines bind path to
 ExprTypeProxy('path', val, econtext).
 This is what comes nearest to the TALES function path.
 As you can see, it is not a simple function but one provided with lots of
 context information (behind the scenes).
 The econtext contains the template's namespace.



 --
 Dieter




-- 
Mis Cosas
http://blogs.sistes.net/Garito
Zope Smart Manager
http://blogs.sistes.net/Garito/670
___
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] use path function on a python script

2008-10-08 Thread Garito
Hi!
How can I import the TALES funcion path on a python script?

I would like to use the path function on a python script. The same path
function I can use on page templates

Imagine this TALES expression: python: path(a/concrete/path)

Can I use it on a python script?

Thanks!

-- 
Mis Cosas
http://blogs.sistes.net/Garito
Zope Smart Manager
http://blogs.sistes.net/Garito/670
___
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] use path function on a python script

2008-10-08 Thread Garito
I'm agree with you, Tino. Plone has a lot of ugly features (as KSS, for
instance)

Perhaps someone has a better solution for this issue

I only want to generate a PDF with the print view of a plone point

Plone2PDF will be ok but only works with Plone 2.5 or less

2008/10/8 Tino Wildenhain [EMAIL PROTECTED]

 Garito wrote:



 2008/10/8 Tino Wildenhain [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
 

Garito wrote:

Perhaps is better if I explain you what I'm trying to do

Imagine a Plone site (I know there are a plone list but this is
a generic question, sorry if not)

I configure it in the way if you put a parameter ?print the
plone point renders as when you push the print button at the
bottom of the point

For example: plone_site_url/front-page?print renders the plone
front page with the print.css sytle

Now I want to get the rendered code of this point as string to
pass it to PDFNode.renderAsPdf (it expect a string with the HTML
and the name of the generated pdf)

Did you know how can I get the html code of an url with get
parameters?


just context['front-page'](print=True) ?


 Perhaps but this puts print on options/args/print or options/print in the
 page_template scope, isn't it?

 In my way to solve this I use request/form/print because plone_css use tal
 expressions and request is passed to it


 This would be very ugly. However in this case just set context.REQUEST
 or context.REQUEST.form accordingly

 HTH
 Tino




-- 
Mis Cosas
http://blogs.sistes.net/Garito
Zope Smart Manager
http://blogs.sistes.net/Garito/670
___
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] use path function on a python script

2008-10-08 Thread Garito
Perhaps is better if I explain you what I'm trying to do

Imagine a Plone site (I know there are a plone list but this is a generic
question, sorry if not)

I configure it in the way if you put a parameter ?print the plone point
renders as when you push the print button at the bottom of the point

For example: plone_site_url/front-page?print renders the plone front page
with the print.css sytle

Now I want to get the rendered code of this point as string to pass it to
PDFNode.renderAsPdf (it expect a string with the HTML and the name of the
generated pdf)

Did you know how can I get the html code of an url with get parameters?

2008/10/8 Andreas Jung [EMAIL PROTECTED]

 Am 08.10.2008 4:46 Uhr, Garito schrieb:

 Hi!
 How can I import the TALES funcion path on a python script?

 I would like to use the path function on a python script. The same path
 function I can use on page templates

 Imagine this TALES expression: python: path(a/concrete/path)

 Can I use it on a python script?


 Why can't you use acquisition or traversal?

 -aj




-- 
Mis Cosas
http://blogs.sistes.net/Garito
Zope Smart Manager
http://blogs.sistes.net/Garito/670
___
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] use path function on a python script

2008-10-08 Thread Garito
Everything can be possible but I like non-intrusive solutions and modify the
portal_css will be a heavy-intrusive way

I'm thinking about it but if someone has an *as non-intrusive as possible*
solution will be very appreciate

Thanks!

2008/10/8 Andreas Jung [EMAIL PROTECTED]

 Am 08.10.2008 7:36 Uhr, Garito schrieb:

 Sorry Andreas but I can't modify portal_css


 Everything can be modified.

 -aj




-- 
Mis Cosas
http://blogs.sistes.net/Garito
Zope Smart Manager
http://blogs.sistes.net/Garito/670
___
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] use path function on a python script

2008-10-08 Thread Garito
Sorry Andreas but I can't modify portal_css

2008/10/8 Andreas Jung [EMAIL PROTECTED]

 Am 08.10.2008 7:17 Uhr, Garito schrieb:



 2008/10/8 Tino Wildenhain [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
 

Garito wrote:

Perhaps is better if I explain you what I'm trying to do

Imagine a Plone site (I know there are a plone list but this is
a generic question, sorry if not)

I configure it in the way if you put a parameter ?print the
plone point renders as when you push the print button at the
bottom of the point

For example: plone_site_url/front-page?print renders the plone
front page with the print.css sytle

Now I want to get the rendered code of this point as string to
pass it to PDFNode.renderAsPdf (it expect a string with the HTML
and the name of the generated pdf)

Did you know how can I get the html code of an url with get
parameters?


just context['front-page'](print=True) ?


 Perhaps but this puts print on options/args/print or options/print in
 the page_template scope, isn't it?

 In my way to solve this I use request/form/print because plone_css use
 tal expressions and request is passed to it


 Then fix your code in a way to accept parameters either from request or
 options. The '|' operator is your friend in TALES.


 -aj

 --
 ZOPYX Ltd.  Co. KG - Charlottenstr. 37/1 - 72070 Tübingen - Germany
 Web: www.zopyx.com - Email: [EMAIL PROTECTED] - Phone +49 - 7071 - 793376
 Registergericht: Amtsgericht Stuttgart, Handelsregister A 381535
 Geschäftsführer/Gesellschafter: ZOPYX Limited, Birmingham, UK
 
 E-Publishing, Python, Zope  Plone development, Consulting




-- 
Mis Cosas
http://blogs.sistes.net/Garito
Zope Smart Manager
http://blogs.sistes.net/Garito/670
___
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] use path function on a python script

2008-10-08 Thread Garito
2008/10/8 Tino Wildenhain [EMAIL PROTECTED]

 Garito wrote:

 Perhaps is better if I explain you what I'm trying to do

 Imagine a Plone site (I know there are a plone list but this is a generic
 question, sorry if not)

 I configure it in the way if you put a parameter ?print the plone point
 renders as when you push the print button at the bottom of the point

 For example: plone_site_url/front-page?print renders the plone front page
 with the print.css sytle

 Now I want to get the rendered code of this point as string to pass it to
 PDFNode.renderAsPdf (it expect a string with the HTML and the name of the
 generated pdf)

 Did you know how can I get the html code of an url with get parameters?


 just context['front-page'](print=True) ?


Perhaps but this puts print on options/args/print or options/print in the
page_template scope, isn't it?

In my way to solve this I use request/form/print because plone_css use tal
expressions and request is passed to it



 or something? (Am I the only one which does not see value in a print
 button because there is CSS to make this happen without server
 interaction? )


Yes, this work as you think but if you need the same view (the print view)
in the server side you need to change portal_css



 Regards
 Tino




-- 
Mis Cosas
http://blogs.sistes.net/Garito
Zope Smart Manager
http://blogs.sistes.net/Garito/670
___
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] Kupu: uncaught exception

2008-09-03 Thread Garito
Hi!
Sorry for post this question on this list but I ask at kupu list (last
wednesday) without success (glups!)

Context:
Zope 2.7.8-final
Plone 2.0.5
Kupu 1.3.9 (the last tested version on 2.0.5)

This is the exact error (copied from firebug)
uncaught exception: [Exception... Component returned failure code:
0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsISelection.getRangeAt]  nsresult:
0x80070057 (NS_ERROR_ILLEGAL_VALUE)  location: JS frame ::
http://192.168.1.38:8110/esadir/kupuhelpers.js :: anonymous :: line 443
data: no]

Line 0

When is the error raised:
I try to add a button that opens a popup box with some phonetics symbols
(you could see some buttons with this symbols and an edit box)

When you finish with the popup and push the ok button the error is raised
(when kupu try to add the text to the editor)

This error is only raised by Firefox (tested on 3.0.1 version on ubuntu and
windows)
On IE if you selected text all is ok but if there are no text selected the
phonetics text is inserted at the begining of the block (p or similar) not
at cursor position

This is the command I use to make this addition:

this.createFonetica = function(texte) {
var fonetica = this.editor.getInnerDocument().createElement('span');

fonetica.appendChild(this.editor.getInnerDocument().createTextNode(texte));
fonetica.className = 'transcripcioFonetica';
fonetica = this.editor.insertNodeAtSelection(fonetica, 1);

this.editor.logMessage(_('Fonetica inserted'));
this.editor.updateState();
return fonetica;
};

The problems seems to be the insertNodeAtSelection but no help at google (at
least I don't find no one)

Could someone point me to the correct solution?

Need more information?

Thank you so much!
-- 
Mis Cosas
http://blogs.sistes.net/Garito
Zope Smart Manager
http://blogs.sistes.net/Garito/670
___
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] Kupu: uncaught exception

2008-09-03 Thread Garito
Hi Israel!
Thanks for your quick response

Did you read the information in the links you send?

The 0x80070057 exception is, I think, a very generic one

I don't have any display style on this page

Anyone knows if a more recent version of kupu works ok in Plone 2.0.5?
(perhaps changing the kupu version solves the problem but 1.3.9 is the last
tested version)

Sorry and thanks! ;)

2008/9/3 Israel Saeta Pérez [EMAIL PROTECTED]

 On Wed, Sep 3, 2008 at 9:07 AM, Garito [EMAIL PROTECTED] wrote:
  Hi!
  Sorry for post this question on this list but I ask at kupu list (last
  wednesday) without success (glups!)

 This is a Javascript/Kupu issue with Gecko, not a Zope one. Did you
 ask your question in any JavaScript forums/lists as I already
 suggested to you?

  Context:
  Zope 2.7.8-final
  Plone 2.0.5
  Kupu 1.3.9 (the last tested version on 2.0.5)

 I suggest trying Kupu 1.4.x anyways despite it isn't tested with
 plone-2.0.5.

  [...snip...]

  The problems seems to be the insertNodeAtSelection but no help at google
 (at
  least I don't find no one)
 
  Could someone point me to the correct solution?

 I've googled myself and I've found a few interesting results:
  http://dev.fckeditor.net/ticket/321
  http://tinymce.moxiecode.com/punbb/viewtopic.php?id=5124

 --
 Israel Saeta Pérez
 http://dukebody.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 )




-- 
Mis Cosas
http://blogs.sistes.net/Garito
Zope Smart Manager
http://blogs.sistes.net/Garito/670
___
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] Page Template help

2008-08-12 Thread Garito
Yeah, Mustaha!
Sometimes I think I'm a little stupid, jejejeje, I have in front of my nose
but I don't see it

I was solved the problem adding a y: type expression and then subclass the
PythonExpr with the __init__ method modified to change the expression

Too much difficult to do the job in an acceptable way

BUT!!!

If you go to usr/lib/zopeversion/lib/python/zope/tales/tales.py and change
the 592 and 593:

591else:
592type = standard
593expr = expression

to

else:
if expression.find('${')  -1:
type = python
expr = path(path('string:%s')) % expression
else:
type = standard
expr = expression

then you could use expressions like this

path/to/render/${with/some/variable}/and/the/rest/of/the/path

I think it's an acceptable change to the code for the job it does
I don't know if Zope people will introduce this change but I think if not
they will be wrong

But they are absolute free to do what they want to do, don't misunderstand
me, please

2008/8/12 mustapha [EMAIL PROTECTED]


 I'm not sure I get what you want to do.

 It is not the page template that decides about the expression but the
 engine as Philpp explained before.

 anyway, I think you are looking for the compile method of the
 ExpressionEngine class (look in zope/tales/tales.py). It's there where
 the expressions are parsed.

 HTH

 Garito wrote:
  Yes, it's ok but I can save n variable definitions with 4 lines of code
  in 1 point
  Seems quite interesting for me
 
  Could someone point me were the page template decides if the expression
  is a standard, string, python, etc one, please? ;)
 
  2008/8/11 Philipp von Weitershausen
  [EMAIL PROTECTED]
  mailto:[EMAIL PROTECTED]
 
  Garito wrote:
Considere this case:
   
I have the sking value in the variable at args/Yanged/Skin
   
How can I do the equivalent to
   
   
 
 args/Yanged/raiz/Skins/${args/Yanged/Skin}/arbolYanged.css/absolute_url
   
?
   
In the python way it will be:
   
path(path('string:' +
   
 
 'args/Yanged/raiz/Skins/${args/Yanged/Skin}/arbolYanged.css/absolute_url'))
   
That's returns the expected value but I can't see how to do with
 your
propossed way
 
 
  a tal:define=skin args/Yanged/Skin;
 file args/Yanged/raiz/Skins/?skin/arbolYanged.css
 tal:attributes=href file/absolute_url
 
  ___
  Zope maillist  -  Zope@zope.org
  mailto: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 )
 
 
 
 
  --
  Mis Cosas
  http://blogs.sistes.net/Garito
  Zope Smart Manager
  http://blogs.sistes.net/Garito/670
 
 
  
 
  ___
  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 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 )




-- 
Mis Cosas
http://blogs.sistes.net/Garito
Zope Smart Manager
http://blogs.sistes.net/Garito/670
___
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] Script (Python) insecure ?

2008-08-12 Thread Garito
The same question again and again

As a Zope user I prefer to know as soon as possible if Zope has security
problems like those

Perhaps the correct way will be to send the problem to the zope people and 2
weeks later then make it public

I think 2 weeks is a very correct period to solve a problem if not, I want
to try to solve the problem for myself

But I shout my mouth, sorry Andreas ;)

2008/8/12 Andreas Jung [EMAIL PROTECTED]

 *sigh*

 I wished that both exploits were reported to the Zope bugtracker in order
 to work on solutions before making the exploits public.


 --On 12. August 2008 13:41:04 +0200 M.-A. Lemburg [EMAIL PROTECTED]
 wrote:

  Hello,





 1. Attack:

 Put this into a Script (Python) object and run it:

 return 'kaboom'.encode('test.testall')

 This results in a denial-of-service, since Zope will hang
 running the Python test suite.

 The reason for this is a problem in the way the encoding search
 function works in Python 2.4. This was changed in 2.5 to no longer
 allow searching for codecs outside the encodings package.


 That's pretty obscure behavior of Python 2.4...anyway.




 2. Attack:

 Put this into a Script (Python) object and run it:

 raise SystemExit

 This shuts down Zope.

 The Python Script environment should obviously catch such exceptions
 and not let them propagate up the call stack.


 See the followup on

 https://bugs.launchpad.net/zope2/+bug/257269

 There is a patch available that solves the problem.

 Andreas


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




-- 
Mis Cosas
http://blogs.sistes.net/Garito
Zope Smart Manager
http://blogs.sistes.net/Garito/670
___
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] Page Template help

2008-08-11 Thread Garito
Hi Philipp!
Thank you so much for your response but in this lines is were the engine
loads the possibilities but not were evaluate the current expression

I would like to evaluate some condition before to load the class who
resolves the expression (and witch is loaded in the code you point me)

More clear? Thanks!

2008/8/11 Philipp von Weitershausen [EMAIL PROTECTED]

 Garito wrote:

 Could someone point me where the page template code decide if an
 expression is a path expression or a string or python one, please?

 I'm studying the zope page template classes and I would like to understand
 where this decision is taken


 Products.PageTemplates.Expressions.createZopeEngine():

for pt in ZopePathExpr._default_type_names:
e.registerType(pt, ZopePathExpr)

 ZopePathExpr._default_type_names contains, among others, the name
 'standard', which makes this expression type the default expression type.

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




-- 
Mis Cosas
http://blogs.sistes.net/Garito
Zope Smart Manager
http://blogs.sistes.net/Garito/670
___
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] Thesaurus / ontology / taxonomy support in Zope-Plone

2008-08-11 Thread Garito
For the spanish website try google translate

I wonder how difficult is for a english person to read something isn't in
his/her language

If non english do the same...

2008/8/11 Jens Vagelpohl [EMAIL PROTECTED]


 On Aug 11, 2008, at 14:26 , Benjamin Michiels wrote:

  Hi,
 
  (I'm new to Zope and Plone, so don't hesitate to indicate me a more
  appropriate
  mailing-list if necessary)

 You may get better Plone-related answers on the Plone list(s). See
 plone.org.

 jens



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




-- 
Mis Cosas
http://blogs.sistes.net/Garito
Zope Smart Manager
http://blogs.sistes.net/Garito/670
___
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] Page Template help

2008-08-11 Thread Garito
Use:
/path/to/the/object/with/${some/magic/variables}/to/solve/some/paths/in/a/simplest/way

You could do that converting the path above to

python: path(path('string:' +
'/path/to/the/object/with/${some/magic/variables}/to/solve/some/paths/in/a/simplest/way'))

or in a generic way:

python: path(path('string:' + expr))

No more than 5 o 6 lines changed and a lot of code saved

2008/8/11 Andreas Jung [EMAIL PROTECTED]



 --On 11. August 2008 15:48:21 +0200 Garito [EMAIL PROTECTED] wrote:

  Hi Philipp!
 Thank you so much for your response but in this lines is were the engine
 loads the possibilities but not were evaluate the current expression

 I would like to evaluate some condition before to load the class who
 resolves the expression (and witch is loaded in the code you point me)


 Sounds strange to me. Usecase?

 -aj




-- 
Mis Cosas
http://blogs.sistes.net/Garito
Zope Smart Manager
http://blogs.sistes.net/Garito/670
___
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] Page Template help

2008-08-11 Thread Garito
Considere this case:

I have the sking value in the variable at args/Yanged/Skin

How can I do the equivalent to

args/Yanged/raiz/Skins/${args/Yanged/Skin}/arbolYanged.css/absolute_url

?

In the python way it will be:

path(path('string:' +
'args/Yanged/raiz/Skins/${args/Yanged/Skin}/arbolYanged.css/absolute_url'))

That's returns the expected value but I can't see how to do with your
propossed way

Thanks!

2008/8/11 Philipp von Weitershausen [EMAIL PROTECTED]

 Garito wrote:
  Use:
 
 /path/to/the/object/with/${some/magic/variables}/to/solve/some/paths/in/a/simplest/way

 Path expressions already support this.

   tal:define=pathel some/magic/variables;
   objpath/to/the/object/with/?pathel/to/solve/some/...

 So basically in TALES path expressions you can say foo/?bar and the
 value of the 'bar' variable will be used to traverse the next step from
 'foo'.

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




-- 
Mis Cosas
http://blogs.sistes.net/Garito
Zope Smart Manager
http://blogs.sistes.net/Garito/670
___
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] Page Template help

2008-08-11 Thread Garito
Finally it's possible to do what I need without the need to declare any
variable?

If not my change will be 4-6 lines of code and it's ok for me to make this
change

I only need to understand were the code decides if the expression is
standard, string or python

Could you help me?

Thanks!

2008/8/11 Garito [EMAIL PROTECTED]

 Considere this case:

 I have the sking value in the variable at args/Yanged/Skin

 How can I do the equivalent to

 args/Yanged/raiz/Skins/${args/Yanged/Skin}/arbolYanged.css/absolute_url

 ?

 In the python way it will be:

 path(path('string:' +
 'args/Yanged/raiz/Skins/${args/Yanged/Skin}/arbolYanged.css/absolute_url'))

 That's returns the expected value but I can't see how to do with your
 propossed way

 Thanks!

 2008/8/11 Philipp von Weitershausen [EMAIL PROTECTED]

 Garito wrote:

  Use:
 
 /path/to/the/object/with/${some/magic/variables}/to/solve/some/paths/in/a/simplest/way

 Path expressions already support this.

   tal:define=pathel some/magic/variables;
   objpath/to/the/object/with/?pathel/to/solve/some/...

 So basically in TALES path expressions you can say foo/?bar and the
 value of the 'bar' variable will be used to traverse the next step from
 'foo'.

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




 --
 Mis Cosas
 http://blogs.sistes.net/Garito
 Zope Smart Manager
 http://blogs.sistes.net/Garito/670




-- 
Mis Cosas
http://blogs.sistes.net/Garito
Zope Smart Manager
http://blogs.sistes.net/Garito/670
___
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] Page Template help

2008-08-11 Thread Garito
Yes, it's ok but I can save n variable definitions with 4 lines of code in 1
point
Seems quite interesting for me

Could someone point me were the page template decides if the expression is a
standard, string, python, etc one, please? ;)

2008/8/11 Philipp von Weitershausen [EMAIL PROTECTED]

 Garito wrote:
  Considere this case:
 
  I have the sking value in the variable at args/Yanged/Skin
 
  How can I do the equivalent to
 
  args/Yanged/raiz/Skins/${args/Yanged/Skin}/arbolYanged.css/absolute_url
 
  ?
 
  In the python way it will be:
 
  path(path('string:' +
 
 'args/Yanged/raiz/Skins/${args/Yanged/Skin}/arbolYanged.css/absolute_url'))
 
  That's returns the expected value but I can't see how to do with your
  propossed way


 a tal:define=skin args/Yanged/Skin;
file args/Yanged/raiz/Skins/?skin/arbolYanged.css
tal:attributes=href file/absolute_url

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




-- 
Mis Cosas
http://blogs.sistes.net/Garito
Zope Smart Manager
http://blogs.sistes.net/Garito/670
___
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] Page Template help

2008-08-11 Thread Garito
Sure Philipp! I'm searching for some days and I still searching but if
someone else knows the point perhaps he/she accelerate me ;)

Thank you so much for your interest, Philipp!

2008/8/11 Philipp von Weitershausen [EMAIL PROTECTED]

 Garito wrote:
  Finally it's possible to do what I need without the need to declare any
  variable?

 Not that I know of.

  If not my change will be 4-6 lines of code and it's ok for me to make
  this change
 
  I only need to understand were the code decides if the expression is
  standard, string or python

 I already pointed you to the code where the different expression types
 are registered. From there you should be able to deduce where these
 registrations are used. I don't know this by heart and would have to
 search for myself.

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




-- 
Mis Cosas
http://blogs.sistes.net/Garito
Zope Smart Manager
http://blogs.sistes.net/Garito/670
___
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] Page Template help

2008-08-10 Thread Garito
Hi!
Could someone point me where the page template code decide if an expression
is a path expression or a string or python one, please?

I'm studying the zope page template classes and I would like to understand
where this decision is taken

Thank you so much!

-- 
Mis Cosas
http://blogs.sistes.net/Garito
Zope Smart Manager
http://blogs.sistes.net/Garito/670
___
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] TALES expression

2008-07-16 Thread Garito
Hi!
Please consider this TALES expression:

div class=DataPrevista tal:content='here/getDataInici | string: nosta' /

If I try this other: div tal:content='string:${here/getDataInici}' / the
result is divNone/div

Then the first one will render the alternate expression isn't it?

Then with it renders div class=DataPrevista / ?

Thanks!

-- 
Mis Cosas
http://blogs.sistes.net/Garito
Zope Smart Manager
http://blogs.sistes.net/Garito/670
___
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] TALES expression

2008-07-16 Thread Garito
If this assuption is correct why the result is div class=DataPrevista /?

2008/7/16 Martijn Jacobs [EMAIL PROTECTED]:

  That assumption is correct

  I mean some TALES expression as here/getDataInici | string: nosta will
 evaluate here/getDataInici and if this expression returns '', 0 or None the
 tal interpreter evaluates the second one and the result of this TALES
 expression will be nosta as string

 Is this assumption correct?

 Thanks!

 2008/7/16 Martijn Jacobs [EMAIL PROTECTED]:


  Hi!
 Please consider this TALES expression:

 div class=DataPrevista tal:content='here/getDataInici | string: nosta'
 /

 If I try this other: div tal:content='string:${here/getDataInici}' /
 the result is divNone/div

 Then the first one will render the alternate expression isn't it?

 Then with it renders div class=DataPrevista / ?

 Thanks!


  I don't understand what you are asking. Could you describe your question
 more clear please.


 Martijn.

 --
 Martijn Jacobs
 Four Digits, Internet Solutions

 a: Willemsplein 15-1 6811 KB Arnhem NL kvk: 09162137 | btw:
 8161.22.234.B01
 e-mail: [EMAIL PROTECTED] | web: http://www.fourdigits.nl
 tel: +31 (0)26 44 22 700 | fax: +31 (0)84 22 06 117




 --
 Mis Cosas
 http://blogs.sistes.net/Garito
 Zope Smart Manager
 http://blogs.sistes.net/Garito/670



 --
 Martijn Jacobs
 Four Digits, Internet Solutions

 a: Willemsplein 15-1 6811 KB Arnhem NL
 kvk: 09162137 | btw: 8161.22.234.B01
 e-mail: [EMAIL PROTECTED] | web: http://www.fourdigits.nl
 tel: +31 (0)26 44 22 700 | fax: +31 (0)84 22 06 117




-- 
Mis Cosas
http://blogs.sistes.net/Garito
Zope Smart Manager
http://blogs.sistes.net/Garito/670
___
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/Plone and control version management

2008-06-18 Thread Garito
Hi!
I'm trying to figure out how to work with a control version software as
subversion or git (I prefer git)

I would like to know how to configure the system and how to work and commit

Can you point me to an url with this information?

Thanks!

-- 
Mis Cosas
http://blogs.sistes.net/Garito
Zope Smart Manager
http://blogs.sistes.net/Garito/670
___
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/Plone and control version management

2008-06-18 Thread Garito
Hi, Sean!
What I would like to know is how I use git to work with my workgroup
Do I use only a centralized zope/plone or I need to install them for every
member of the workgroup?

Witch parts of zope/plone can I put on it?

I would like to use a control version manager but I have no idea how to
configure my space, witch files can I control and so on

In a ruby on rails scenario I create the RoR project and a database then I
create a git repository and begin to work (some commits here)
Then if some other members join to the project I make a checkout from the
master repository and begins to work all with the same database

But I zope/plone I can't figure out what files I put to the repository and
what happens with data.fs (some modifications are made in the database, what
happend with them? I suppose I can't control them with subversion/git)

Sorry not be more specific but I'm totally newbie with CVS and it's hard to
find some information about the daily work

Thanks!


2008/6/18 Sean Upton [EMAIL PROTECTED]:

 On Wed, Jun 18, 2008 at 1:04 AM, Garito [EMAIL PROTECTED] wrote:
  Hi!
  I'm trying to figure out how to work with a control version software as
  subversion or git (I prefer git)
 
  I would like to know how to configure the system and how to work and
 commit
 
  Can you point me to an url with this information?

 This question is too inspecific.  It might help to find out what
 data/files you want to put under version control?

 Sean




-- 
Mis Cosas
http://blogs.sistes.net/Garito
Zope Smart Manager
http://blogs.sistes.net/Garito/670
___
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/Plone and control version management

2008-06-18 Thread Garito
Absolutely, Sean, that's exactly what I'm asking for. Thank you so much
We make a very similar assumption
We must review our habits to avoid the use of ZOBD to develop (yes, we use
plone3)
Again, thank you so much. You help us a lot!!!
Cheers!

2008/6/18 Sean Upton [EMAIL PROTECTED]:

 On Wed, Jun 18, 2008 at 2:51 AM, Garito [EMAIL PROTECTED] wrote:
  What I would like to know is how I use git to work with my workgroup
  Do I use only a centralized zope/plone or I need to install them for
 every
  member of the workgroup?

 I'm supposing you are doing python package and Zope2 Product
 development, and in this case you definitely want each developer to
 have their own checkout(s) of code as a working copy on their own
 workstation or personal space on a shared server.  It is likely you
 want to use separate databases (Data.fs) files for development (and
 periodically keep them in sync by copying a packed copy of the
 database from a central place).  If you wish to use a shared database
 late in development, you can use ZEO or Relstorage to host the
 database over the network and have each developer workstation connect
 to that.  I would not recommend a shared database for early
 development on any project, just for late-stage development and
 testing.

  Witch parts of zope/plone can I put on it?

 If you are developing on top of Zope and Plone, you likely do not need
 either of these in svn/git, just your own Python code packages.  With
 svn you can alternately create bundle checkouts of your own modules
 and products interspersed with checkouts from svn of third-party
 modules you are using.  You would only version-control code, not
 content in the database.

  I would like to use a control version manager but I have no idea how to
  configure my space, witch files can I control and so on

 see above.

  In a ruby on rails scenario I create the RoR project and a database then
 I
  create a git repository and begin to work (some commits here)
  Then if some other members join to the project I make a checkout from the
  master repository and begins to work all with the same database

 You can do this, if you want; see above. Again, I recommend against a
 shared database early in development; there is more that can go weird
 in ZODB than in ActiveRecord fronted RDBMS on a shared copy in early
 development.

  But I zope/plone I can't figure out what files I put to the repository
 and
  what happens with data.fs (some modifications are made in the database,
 what
  happend with them? I suppose I can't control them with subversion/git)

 You do not want to fork zope or Plone, but develop your own packages
 on top of them.  That should make this easy, only modify your own
 code, unless you absolutely know what you are doing.  There are other
 ways to modify behavior of other Products and the platform (monkey
 patching, subclassing existing components, writing new skins, creating
 generic setup profiles).

 Stuff in the database is not in svn; do not put code in the ZODB (e.g.
 templates edited through-the-web, though this is possible in some
 cases with some Plone skin code).  Keep code on the filesystem.
 Content is not versioned in svn, if you need revisions of content
 objects in the database stored in a CMS like Plone, there are other
 mechanisms for that (e.g. CMFEditions is part of Plone 3.x).

 I hope this helps.

 Sean




-- 
Mis Cosas
http://blogs.sistes.net/Garito
Zope Smart Manager
http://blogs.sistes.net/Garito/670
___
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] ++view++ and Zope 2.9

2008-04-25 Thread Garito
Hi!
Did ++view++ work on Zope 2.9?

I'm trying ZSM on a Zope 2.9 but when I try to execute ++view++ZSmanage or
@@ZSmanage a resource not found is raised

What do you think about this?

Thanks!

-- 
Mis Cosas
http://blogs.sistes.net/Garito
Zope Smart Manager
http://blogs.sistes.net/Garito/670
___
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] ++view++ and Zope 2.9

2008-04-25 Thread Garito
Please, stay in the list (if you use Gmail push reply all instead of reply.
The list manager likes to make things difficult!)

I'm asking to the list to try to make ZSM as compatible with older Zopes as
I can

If you or others wants to see better and more advanced ZSM I need to have
some feed back, opinions and this kind of information and help, a little
help

I publish it to grow it faster but no one ask to help and I don't have any
kind of feedback except for Tim Nash (thanks for your interest again, Tim)

For that I think ZSM is not interesting for anyone except me (in my opinion
is the better way to work with Yanged)

But I'm agree to publish more versions of ZSM if there are interest on it

2008/4/25, Jaroslav Lukesh [EMAIL PROTECTED]:

  Hi Garito,

 I will be happy, if ZSM will be functional at older zope too. I will try to
 help you, but my programming skills are little. I did not write in python
 any zope product, only external methods and scripts.

 Regards, JL.

 - Original Message -
 *From:* Garito [EMAIL PROTECTED]
 *To:* Jaroslav Lukesh [EMAIL PROTECTED]
 *Sent:* Friday, April 25, 2008 6:01 PM
 *Subject:* Re: [Zope] ++view++ and Zope 2.9

 Hi, Jaroslav
 I use Zope 2.10.3 and Python 2.4.4 and ZSM works ok at this version

 If you read carefully, ZSM is a preAlpha stage and I publish it to ask for
 help

 do you want to help to grow ZSM?

 2008/4/25, Jaroslav Lukesh [EMAIL PROTECTED]:

 Hi Garito,

 I was think that ZSM is piece of crap, because I use Zope 2.9.4 (under
 Linux 2.6 and Python 2.4.3), where it does not work. I didnot found any
 older version to test it, so I was forget fot it.

 What Zope version do you use for it?

 If you turn on debug mode (start zope server with -D parameter), you will
 see more detailed errors at console.

 Regards, JL.

 - Original Message - From: Garito

 Did ++view++ work on Zope 2.9?

 I'm trying ZSM on a Zope 2.9 but when I try to execute ++view++ZSmanage or
 @@ZSmanage a resource not found is raised

 What do you think about this?




 --
 Mis Cosas
 http://blogs.sistes.net/Garito
 Zope Smart Manager
 http://blogs.sistes.net/Garito/670




-- 
Mis Cosas
http://blogs.sistes.net/Garito
Zope Smart Manager
http://blogs.sistes.net/Garito/670
___
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] ++view++ and Zope 2.9

2008-04-25 Thread Garito
I see that this is a reported bug
Witch Zope 2.9 version has the problem solved?
Is there a patch product or I need to update the whole Zope?
I'm using Zope 2.9.5 and python 2.4.4 at the bugged server
Thanks!

2008/4/25, Garito [EMAIL PROTECTED]:

 Please, stay in the list (if you use Gmail push reply all instead of
 reply. The list manager likes to make things difficult!)

 I'm asking to the list to try to make ZSM as compatible with older Zopes
 as I can

 If you or others wants to see better and more advanced ZSM I need to have
 some feed back, opinions and this kind of information and help, a little
 help

 I publish it to grow it faster but no one ask to help and I don't have any
 kind of feedback except for Tim Nash (thanks for your interest again, Tim)

 For that I think ZSM is not interesting for anyone except me (in my
 opinion is the better way to work with Yanged)

 But I'm agree to publish more versions of ZSM if there are interest on it

 2008/4/25, Jaroslav Lukesh [EMAIL PROTECTED]:
 
   Hi Garito,
 
  I will be happy, if ZSM will be functional at older zope too. I will try
  to help you, but my programming skills are little. I did not write in python
  any zope product, only external methods and scripts.
 
  Regards, JL.
 
  - Original Message -
   *From:* Garito [EMAIL PROTECTED]
  *To:* Jaroslav Lukesh [EMAIL PROTECTED]
  *Sent:* Friday, April 25, 2008 6:01 PM
  *Subject:* Re: [Zope] ++view++ and Zope 2.9
 
  Hi, Jaroslav
  I use Zope 2.10.3 and Python 2.4.4 and ZSM works ok at this version
 
  If you read carefully, ZSM is a preAlpha stage and I publish it to ask
  for help
 
  do you want to help to grow ZSM?
 
  2008/4/25, Jaroslav Lukesh [EMAIL PROTECTED]:
  
   Hi Garito,
  
   I was think that ZSM is piece of crap, because I use Zope 2.9.4 (under
   Linux 2.6 and Python 2.4.3), where it does not work. I didnot found any
   older version to test it, so I was forget fot it.
  
   What Zope version do you use for it?
  
   If you turn on debug mode (start zope server with -D parameter), you
   will see more detailed errors at console.
  
   Regards, JL.
  
   - Original Message - From: Garito
  
   Did ++view++ work on Zope 2.9?
  
   I'm trying ZSM on a Zope 2.9 but when I try to execute
   ++view++ZSmanage or @@ZSmanage a resource not found is raised
  
   What do you think about this?
  
 
 
 
  --
  Mis Cosas
  http://blogs.sistes.net/Garito
  Zope Smart Manager
  http://blogs.sistes.net/Garito/670
 
 


 --
 Mis Cosas
 http://blogs.sistes.net/Garito
 Zope Smart Manager
 http://blogs.sistes.net/Garito/670




-- 
Mis Cosas
http://blogs.sistes.net/Garito
Zope Smart Manager
http://blogs.sistes.net/Garito/670
___
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: Extensive Javascript GUI and security

2008-04-24 Thread Garito
But did you pretend to make something useful or a demo is enough?
Why don't make the demo changing the ZMI GUI or something more useful? (ZMI
is old enough and needs a renew version, don't you think so?)

Thanks!

2008/4/23, Tim Nash [EMAIL PROTECTED]:

 Sorry, I am not a great writer. Let me list the points:

 -The code demonstrates how to build a full GUI in javascript.
 - It uses the extjs library.
 - Building a GUI like this reduces the load on zope which makes zope
 scalable.
 - You can also distribute your GUI code to be closer to your
 customers. For example, you can host your zope in Norway but place
 your GUI on web servers in Norway, Australia, Spain, Russia etc.

 - I am having problem understanding how to set up the security when
 using zope in this way.
 - I wish someone would take a look at the code and help me figure out
 the best security.

 Thanks!,

 Tim


 On Wed, Apr 23, 2008 at 3:47 AM, Garito [EMAIL PROTECTED] wrote:
  Sorry, Tim, but I don't catch what you pretend with this demo
 
  Can you explain more about this test?
 
  Thanks!
 
  2008/4/23, Tim Nash [EMAIL PROTECTED]:
  
  
  
   I updated the 'HowTo' to now include a TTW version of the same
   product. This could be a useful way to compare TTW code with product
   based code for anyone interested. That is if the security issues are
   resolved.
  
  
   http://wiki.zope.org/zope2/HowToCreateJavascriptGUI
  
  
   The TTW zexp also doesn't require the installation of extjs but it is
   for demo purposes only.
  
  
   On Tue, Apr 22, 2008 at 1:35 PM, Tim Nash [EMAIL PROTECTED] wrote:
I have created a zope product that demonstrates how I would like to
 use zope with extjs library. The demo does not require an
 installation
 of extjs. It is linked to here
 http://wiki.zope.org/zope2/HowToCreateJavascriptGUI
   
 I hope that using zope along with extjs in this way makes zope much
 more scalable however I am having trouble figuring out the proper
 way
 to set up security.
   
 Could somebody check out my demo and give me feedback on how to set
 up
 the security?
 I would like the user to only have to log on once. Subsequent AJAX
 calls should not require subsequent log in.
   
 Also, I create new accounts by copying an account 'template' folder
 that includes a acl_users folder in it. How do you set the proper
 security when you create accounts in this way? How do you set the
 security on an external Method in these folders?
 I want to use zope to hold medical data for everyone from a
 physician
 in the remote regions of the World all the way up to multi-hospital
 chains. This requires a very scalable and very secure zope.
   
 Thanks for any help!
   
 Tim
   
   ___
   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 )
  
 
 
 
  --
  Mis Cosas
  http://blogs.sistes.net/Garito
  Zope Smart Manager
  http://blogs.sistes.net/Garito/670
  ___
   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 )
 
 




-- 
Mis Cosas
http://blogs.sistes.net/Garito
Zope Smart Manager
http://blogs.sistes.net/Garito/670
___
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: Extensive Javascript GUI and security

2008-04-23 Thread Garito
Sorry, Tim, but I don't catch what you pretend with this demo

Can you explain more about this test?

Thanks!

2008/4/23, Tim Nash [EMAIL PROTECTED]:

 I updated the 'HowTo' to now include a TTW version of the same
 product. This could be a useful way to compare TTW code with product
 based code for anyone interested. That is if the security issues are
 resolved.


 http://wiki.zope.org/zope2/HowToCreateJavascriptGUI


 The TTW zexp also doesn't require the installation of extjs but it is
 for demo purposes only.


 On Tue, Apr 22, 2008 at 1:35 PM, Tim Nash [EMAIL PROTECTED] wrote:
  I have created a zope product that demonstrates how I would like to
   use zope with extjs library. The demo does not require an installation
   of extjs. It is linked to here
   http://wiki.zope.org/zope2/HowToCreateJavascriptGUI
 
   I hope that using zope along with extjs in this way makes zope much
   more scalable however I am having trouble figuring out the proper way
   to set up security.
 
   Could somebody check out my demo and give me feedback on how to set up
   the security?
   I would like the user to only have to log on once. Subsequent AJAX
   calls should not require subsequent log in.
 
   Also, I create new accounts by copying an account 'template' folder
   that includes a acl_users folder in it. How do you set the proper
   security when you create accounts in this way? How do you set the
   security on an external Method in these folders?
   I want to use zope to hold medical data for everyone from a physician
   in the remote regions of the World all the way up to multi-hospital
   chains. This requires a very scalable and very secure zope.
 
   Thanks for any help!
 
   Tim
 
 ___
 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 )




-- 
Mis Cosas
http://blogs.sistes.net/Garito
Zope Smart Manager
http://blogs.sistes.net/Garito/670
___
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: anyone heard of Zamasing?

2008-04-21 Thread Garito
The tecnique showed by Tim is the same I use at Zope Smart Manager but I
prefer prototype and scriptaculous. At this time the most active community
is, perhaps, RoR and they use the same libraries

And when I use a Zope manage page like the constructor of a product I use
ModalBox to show it as a dialog box

I like to put in ZSM a drag and drop option to sort the ordered folder
objects, to launch the creation dialog and delete object to a trash (I need
scriptaculous for things like this)

It's amazing what you can do with AJAX! (prototype is the library used)

I don't want to program anything else like a desktop program (in fact I
believe that the next desktop will be a http server)

2008/4/21, Simon Michael [EMAIL PROTECTED]:

 Tim Nash wrote:

  find a way to upload the zexp to the wiki but I don't see how to do
 

 You're absolutely right, I forgot we restricted this to authenticated
 users when junk uploads became a problem. I did the upload and changed the
 link. Contact me for a wiki.zope.org login so you can do more uploads, or
 you may prefer to just link to your site.

 Thanks for sharing this example!

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




-- 
Mis Cosas
http://blogs.sistes.net/Garito
Zope Smart Manager
http://blogs.sistes.net/Garito/670
___
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] anyone heard of Zamasing?

2008-04-16 Thread Garito
Jejeje, good job!
Is like I want for Zope Smart Manager (the version I have in my computer has
edition and complete the features you have in your project) but I prefer the
tree view

What a pity that our projects don't join but it's ok!

Congratulations!

2008/4/16, Philip Kilner [EMAIL PROTECTED]:

 Hi Tom,

 Tom Von Lahndorff wrote:

  Thats pretty awesome. It's zamazing to me that Zope 2 is not a de
  facto platform for Web 2.0 projects. I think it has some major benefits
  over Rails and maybe even Django but there seems to be no interest in it
  from that community. This is a great start.
 
 
 I agree that it's a great platform for Web 2.0 projects - I'm a happy
 RDBMS developer, using Zope as an application server against Postgres dbs.

 I find that Formulator, ZPTs and simple scripts on the server side and
 JQuery on the client side (specifically, the JQuery Taconite implementation
 [1] with XML ZPTs) work wonderfully together.

 My interest is pretty narrow, in the sense that I'm all about RDBMSs,
 tabular data, and form-driven data entry - the less guff between me the and
 the RDBMS, the happier I am. However, if I don't have much to say, it's only
 because TTW Zope development using these tools is so easy. If there is any
 interest in discussing this stuff, I am up for that.

 Having said all that, I'm happy enough with the ZMI as it is, so
 Zamasing is only of academic interest to me.

 FWIW, all these techniques can also be made to work seamlessly inside
 Plone without doing any actual Plone development, which can be handy (you
 really only need to work with Plone's CSS to make it look consistent) - a
 server side mash-up which avoids all the cross-site scripting stuff, if you
 like.

 [1] http://www.malsup.com/jquery/taconite/


 --

 Regards,

 PhilK


 'work as if you lived in the early days of a better nation'
 - alasdair gray
 ___
 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 )




-- 
Mis Cosas
http://blogs.sistes.net/Garito
Zope Smart Manager
http://blogs.sistes.net/Garito/670
___
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] anyone heard of Zamasing?

2008-04-16 Thread Garito
Hi, Tim!
I'm agree with you. I my case I use bluefish at gnome but I like TTW GUIs
because I don't need to carry my computer to work around the world and, boy,
the world is a very beautifull place to visit

I understand that Zopers want a revision of the back-end with Zope3 but at
this moment I don't understand so much the effort that suppose (it's only an
opinion without wishing to open a discussion about that decision, I respect
this decision)

My way, by other side, is about a way to work properly or better with Zope2
because Zope2 is the better place at this moment and my skills to build my
project
And, in my opinion, zamazing is the an equivalent effort and thats good for
the Zopers that think like my

The version of ZSM, for example, that I have in my computer has edition but
is not tested yet and then I would like to add a debugger (at least at the
Yanged part)

Do you imagine that you could work at every computer connected to the
internet? I think that the people who use Zope is, in part, because is TTW,
isn't it?

Congratulations again

2008/4/16, Tim Nash [EMAIL PROTECTED]:

 Phil,
   It is great to see more posts about how well zope works for Web
 2.0 projects. I have used extjs with zope and really like the
 combination. I'd like to learn more about your jquery /plone setup and
 how you make it work. Would it be a time consuming for you to create a
 generic product that demonstrates your setup? It would be helpful to
 have a common set of artifacts to discuss.
 Thanks,
 Tim
 ps. I can make available a generic product that demonstrates how I use
 extjs if there is interest. It is pretty simple...serve a little dtml
 doc which requests the gui cached in javascript. Gui makes ajax calls
 back to zope for the dynamic elements.

 pps. nice work zamazing! python/dtml syntax highlighting in codepress?
 sweet. (but I am addicted to the mac version of Komodo)



 On Wed, Apr 16, 2008 at 5:01 AM, Philip Kilner [EMAIL PROTECTED] wrote:
  Hi Tom,
 
 
   Tom Von Lahndorff wrote:
 
   Thats pretty awesome. It's zamazing to me that Zope 2 is not a de
 facto
  platform for Web 2.0 projects. I think it has some major benefits over
  Rails and maybe even Django but there seems to be no interest in it from
  that community. This is a great start.
  
  
 
   I agree that it's a great platform for Web 2.0 projects - I'm a happy
 RDBMS
  developer, using Zope as an application server against Postgres dbs.
 
   I find that Formulator, ZPTs and simple scripts on the server side and
  JQuery on the client side (specifically, the JQuery Taconite
 implementation
  [1] with XML ZPTs) work wonderfully together.
 
   My interest is pretty narrow, in the sense that I'm all about RDBMSs,
  tabular data, and form-driven data entry - the less guff between me the
 and
  the RDBMS, the happier I am. However, if I don't have much to say, it's
 only
  because TTW Zope development using these tools is so easy. If there is
 any
  interest in discussing this stuff, I am up for that.
 
   Having said all that, I'm happy enough with the ZMI as it is, so
 Zamasing
  is only of academic interest to me.
 
   FWIW, all these techniques can also be made to work seamlessly inside
 Plone
  without doing any actual Plone development, which can be handy (you
 really
  only need to work with Plone's CSS to make it look consistent) - a
 server
  side mash-up which avoids all the cross-site scripting stuff, if you
 like.
 
   [1] http://www.malsup.com/jquery/taconite/
 
 
   --
 
   Regards,
 
   PhilK
 
 
   'work as if you lived in the early days of a better nation'
   - alasdair gray
 
 
   ___
   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 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 )




-- 
Mis Cosas
http://blogs.sistes.net/Garito
Zope Smart Manager
http://blogs.sistes.net/Garito/670
___
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: Question about dot in method name

2008-03-25 Thread Garito
Hi!
Hey, Tres, could you point us to a web example or a web page with more
information about that technique?
I'm very interested on it and the technique that was introduced sometime ago
about how to return a string as __bobo_traverse__ response but the example
was uncompleted (for me at least)

This kind of information was very useful for many of us but there are no
good tutorial or how-to

Thanks a lot!

2008/3/26, Tres Seaver [EMAIL PROTECTED]:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1


 Martijn Jacobs wrote:
  Maybe a simple solution  :
 
  Do you use apache as a frontend for your zope? If you do you can rewrite
  the incoming url's for example like this :
 
  RewriteEngine On
  RewriteRule ^/folder/mydoc.xls(.*)
 
 http://localhost:8080/VirtualHostBase/http/myIntranet/object_in_zope/VirtualHostRoot/mydoc_xls$1
  [L,P]


 Or add a '__getitem__' to your class that looks for that key and returns
 the right method.


 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

 iD8DBQFH6ZfK+gerLs4ltQ4RAgdjAJ9bwmIjAbqkG1YKUyrgbKSG47FlXgCdHW+P
 GzL6mjcA1K8t9Q/5Y75tfF4=
 =mySN
 -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 )




-- 
Mis Cosas
http://blogs.sistes.net/Garito
Zope Smart Manager
http://blogs.sistes.net/Garito/670
___
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] http://server:port/object1/object2/++view++ZSmanage

2008-03-06 Thread Garito
Hi!
I ask some days ago if ZSmanage could be used as an acquirable view of an
object when its defined in configure.zcml as:

configure xmlns:browser=http://namespaces.zope.org/browser;
browser:resourceDirectory name=ZSM directory=recursos /
browser:page for=* name=ZSmanage template=recursos/ZSmanage.pt
permission=zope2.Public /
/configure

Now I could found a website page (
http://worldcookery.com/files/ploneconf05-five/step3.html)
Now I could use something like
http://server:port/object1/object2/++view++ZSmanage with the desired result
but:

Can I configure Zope (or similar) to use an Url like
http://server:port/object1/object2/ZSmanage (without ++view++) ?

How?

Thanks a lot!

-- 
Mis Cosas
http://blogs.sistes.net/Garito
Zope Smart Manager
http://blogs.sistes.net/Garito/670
___
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: Zope Digest, Vol 45, Issue 25

2008-02-28 Thread Garito
I can understand Yuri
Zope uses the tree to run and the filesystem is a tree

When I'm developing Yanged (my Zope project) I think about that. I would
like to create a version of Zope with the most essential parts:
the traverse way
the adquisition
in an apache module (and apache of course)
the filesystem as object data base
and Zope Smart Manager as ZMI

Yanged will be some day this with a couple more rules and that's all: a
Plone (+Zope) like product server with 1000 lines of code

Do you imagine how much lines of code will save if we try to reduce them in
our projects instead of add more features?

In my opinion the present hardware will fly with this kind of work or, if we
make the same with the hardware our computers will spend a minimal part of
energy but we prefer to grow in comparison with the last year... (crazy
world!)

2008/2/28, Tim Nash [EMAIL PROTECTED]:

 Sure, zope products. But what does it mean to be a zope site without
 ZODB? There are ZPT implementations separate from ZODB.
 Subversion, grep, sed, whole code changes are all possible with zope 2.


 On Thu, Feb 28, 2008 at 12:26 AM, Yuri [EMAIL PROTECTED] wrote:
  [EMAIL PROTECTED] wrote:
 I want to be able to have a zope site entirely in the file system
 with
 no ZODB, so I can keep it in subversion, and use normal things like
 grep, patch and sed to apply changes to the whole codebase.
   
   
You can do this with zope 2 but you can also allow user customization
that you can later migrate in to the filesystem code.
   
 
Really??
   ___
   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 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 )




-- 
Mis Cosas
http://blogs.sistes.net/Garito
Zope Smart Manager
http://blogs.sistes.net/Garito/670
___
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] Static adquirable resource

2008-02-26 Thread Garito
Hi!
Some weeks ago Tres point us how to declare static resources with five

You could create a configure.zcml file for your product and put some code
like these:

configure xmlns:browser=http://namespaces.zope.org/browser;
browser:page for=* name=ZSmanage template=recursos/ZSmanage.pt
permission=zope2.Public /
/configure

and magically you could use it as: http://server:port/ZSmanage

But if you try to use ZSmanage as an acquired object you could

Can I do something at this respect? I would like to use ZSmanage in a
different context, can I?

Thanks!

-- 
Mis Cosas
http://blogs.sistes.net/Garito
Zope Smart Manager
http://blogs.sistes.net/Garito/670
___
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] ++resource++ and traverse

2008-02-06 Thread Garito
Hi!
Some days ago Tres explain us how to use configure.zcml and ++resource++
namespace but now I have a question
Can I use the traverse_subpath variable in a page template put in the
++resource++ namespace?

Something like

http://server:port/++resource++ZSM/template/traverse1/traverse2

?

Thanks!

-- 
Mis Cosas
http://blogs.sistes.net/Garito
Zope Smart Manager
http://blogs.sistes.net/Garito/670
___
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] You are not allowed to access 'a particular str' in this context

2008-01-26 Thread Garito
Hi!
I don't understand quite well this explanation but it interest me a lot (as
you can read if you search for my all questions about __bobo_traverse__)
do it need I put the __allow_access_to_unprotected_subobjects__=1 in the
__bobo_traverse__ or in other place?

I my last try to solve this issue in my case I try the __roles__ = None but
this was an uncomplete solution

Please can you complete my information?

Thanks!

2008/1/25, Dieter Maurer [EMAIL PROTECTED]:

 Gerhard Schmidt wrote at 2008-1-25 12:04 +0100:
 Dieter Maurer schrieb:
  ...
  I expect that the message object implements a __bobo_traverse__
  method (or gets one through Five).
  Zope is a bit stupid when __bobo_traverse__ returns an object
  without security declarations -- such as e.g. a string.
  In this case, it insists that getattr must return the same object
  and raise Unauthorized otherwise.
 
 Time   2008/01/25 12:01:53.125 GMT+1
 User Name (User Id)DC83D1F1DB88CDE8 (DC83D1F1DB88CDE8)
 Request URL
 http://devportal:6080/portal_communications/manage_messagequeue
 Exception Type Unauthorized
 Exception ValueYou are not allowed to access 'a particular str'
 in
 this context
  ...
- __traceback_info__: message
   Module Products.PageTemplates.Expressions, line 338, in
 restrictedTraverse
- __traceback_info__: {'path': ['ID'], 'TraversalRequestNameStack':
 []}
 Unauthorized: You are not allowed to access 'a particular str' in this
 context

 This may be compatible with my assumption.

 Check line 338 in Products/PageTemplates/Expressions.py.
 When this line is in the block handling the __bobo_traverse__,
 then you have confirmed my assumption.


 In this case, you must either get rid of the message's __bobo_traverse__
 or let it return an object with security declarations (such
 as an str wrapper with an __allow_access_to_unprotected_subobjects__=1
 and __roles__=None) or ensure that a getattr results in the same
 str or fix Zope.


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




-- 
Mis Cosas
http://blogs.sistes.net/Garito
Zope Smart Manager
http://blogs.sistes.net/Garito/670
___
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: Zope ZMI Templates

2008-01-15 Thread Garito
Hi again, Tres!
Can you point as where we can find this kind of help? Are there some
reference manual or similar? (I'm using Zope2) Perhaps on Five manual?

Thanks a lot!

2008/1/15, Tres Seaver [EMAIL PROTECTED]:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Jurian Botha wrote:
  I'm currently developing some customized ZMI pages and I was hoping
 someone
  could give me some insight into what the best way would be to do this.
 
  I see that Zope 2 uses dtml methods to build the standard ZMI pages but
 as
  far as I know (Zope 3 wise) I should rather be using Zope Page Templates
 to
  build the pages.
 
  I would also like the product to gracefully move on to Zope 3 in future,
 so
  that should be taken into consideration as well.
 
  Are there perhaps some existsing templates for ZMI that can also be used
  with Zope 3?

 You could choose to use a 'zmi_master' template which looked like so::

 metal:x metal:define-macro=master
 tal:x tal:replace=structure context/manage_page_header /
 tal:x tal:replace=structure context/manage_tabs /
 div metal:define-slot=main
Non-boilerplate goes here.
 /div
 tal:x tal:replace=structure context/manage_page_footer /
 /metal:x

 If you registered that template as a view in your product's
 'configure.zcml', e.g.:

   browser:page
  for=*
  name=zmi_master
  template=zmi_master.pt
  /

 you can then use it in your own ZMI templates, e.g.:

   html metal:use-macro=context/@@zmi_master/macros/master
   body
   div metal:fill-slot=main
h1 Test ZMI Macro /h1
   /div
   /body
   /html

 I have attached a tarball of a simple Zope2 product which does this.
 After installation, you should be able to visit
 http://localhost:8080/zmi_test to see the results.


 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

 iD8DBQFHjQMy+gerLs4ltQ4RAvHpAJ4h8VuFM3M4v333UU4jB71CJgvNqgCfcnjf
 YMSO8d3hiDf5eMyG31nn9Ng=
 =fh+F
 -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 )





-- 
Mis Cosas
http://blogs.sistes.net/Garito
Zope Smart Manager
http://blogs.sistes.net/Garito/670
___
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: The best way

2008-01-14 Thread Garito
It works like a champ!
Absolutely THANKS! This is the help we need

2008/1/11, Tres Seaver [EMAIL PROTECTED]:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Garito wrote:
  Hi, all!
  If you have download the ZSM product you could see I put on it a zexp
  file with prototype and some other js file and a css file plus images
 
  This was only a prototype solution to bring you the chance to see how
  my ideas are but I think this is not a definitive solution
 
  Now my question:
 
  Which is the best zope way to serve this kind of files trying to avoid
  any other product dependence?
 
  Thanks a lot!

 In the context of Five / Zope3, the static content items are
 resources.  One strategy would be to create a Zope2 product with those
 files in a subdirectory, e.g.::

   $ mkdir Products/garito
   $ cd Products/garito
   $ echo # ZSM product  __init__.py
   $ mkdir static
   $ cat  static/garito.css
   body {
 background: #FF;
   }
   ^D

 And then register that directory as a resource directory via ZCML::

   $ cat  configure.zcml
   configure xmlns:browser=http://namespaces.zope.org/browser;
 browser:resourceDirectory
 name=garito
 directory=static
 /
   /configure
   ^D

 Now, when you start Zope2, you can pull in your static resources via
 special URLs, like http://localhost:8080/++resource++garito/garito.css::

   $ cd ../..
   $ bin/zopectl start
   . daemon process started, pid=25240
   $ telnet localhost 8080
   Trying 127.0.0.1...
   Connected to localhost.
   Escape character is '^]'.
   GET /++resource++garito/garito.css HTTP/1.0

   HTTP/1.0 200 OK
   Server: Zope/(unreleased version, python 2.4.4, linux2) ZServer/1.1
   Date: Fri, 11 Jan 2008 18:53:11 GMT
   Content-Length: 32
   Last-Modified: Fri, 11 Jan 2008 18:44:47 GMT
   Connection: close
   Cache-Control: public,max-age=86400
   Content-Type: text/css; charset=iso-8859-15

   body {
 background: #FF;
   }
   Connection closed by foreign host.

 In that product, you could also register a template / browser view which
 includes your resources, e.g::

   $ cd Products/garito
   $ cat  garito.pt
   html
   head
link rel=stylesheet type=text/css
  href=/++resource++garito/garito.css/
   /head
   body
   h1 Garito's view /h1
   /body
   /html
   ^D
   $ cat  configure.zcml
   configure xmlns:browser=http://namespaces.zope.org/browser;
 browser:page
   for=*
   name=garito.html
   template=garito.pt
   permission=zope2.View
   /
 browser:resourceDirectory
   name=garito
   directory=static
   /
   /configure
   ^D
   $ cd ../..
   $ bin/zopectl restart
   $ telnet localhost 8080
   Trying 127.0.0.1...
   Connected to localhost.
   Escape character is '^]'.
   GET /garito.html HTTP/1.0

   HTTP/1.0 200 OK
   Server: Zope/(unreleased version, python 2.4.4, linux2) ZServer/1.1
   Date: Fri, 11 Jan 2008 19:02:05 GMT
   Content-Length: 151
   Content-Type: text/html; charset=iso-8859-15
   Connection: close

   html
   head
link rel=stylesheet type=text/css
  href=/++resource++garito/garito.css /
   /head
   body
   h1 Garito's view /h1
   /body
   /html
   Connection closed by foreign host.

 Which pulls in your static resources.



 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

 iD8DBQFHh72H+gerLs4ltQ4RAgwwAKDSJPrGAuwo++ShjWjZzyn06IDz1QCeK69s
 +CIbgsCJkbRV5Tdh9XWEY9k=
 =Du8x
 -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 )




-- 
Mis Cosas
http://blogs.sistes.net/Garito
Zope Smart Manager
http://blogs.sistes.net/Garito/670
___
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] manage_renameObjects and AJAX

2008-01-13 Thread Garito
What a pity!
Doesn't matter but is a lost chance to understand the other

If some time you would like to evaluate it I will thank you

Thanks!

2008/1/13, Dieter Maurer [EMAIL PROTECTED]:

 Garito wrote at 2008-1-11 19:55 +0100:
  ...
 Did you try to install the product?

 I try only products the description of which clearly indicates that
 I need them.

 You decided to let your code speak -- but this has no chance with me :-)



 --
 Dieter




-- 
Mis Cosas
http://blogs.sistes.net/Garito
Zope Smart Manager
http://blogs.sistes.net/Garito/670
___
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] The best way

2008-01-11 Thread Garito
Hi, all!
If you have download the ZSM product you could see I put on it a zexp
file with prototype and some other js file and a css file plus images

This was only a prototype solution to bring you the chance to see how
my ideas are but I think this is not a definitive solution

Now my question:

Which is the best zope way to serve this kind of files trying to avoid
any other product dependence?

Thanks a lot!
-- 
Mis Cosas
http://blogs.sistes.net/Garito
___
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] The best way

2008-01-11 Thread Garito
Hi!
Thanks Martijn and Matt for your ideas!
@Matt: can you explain with more detail the question about
REQUEST.response.write()? If the written content is as long as a file like
prototype is not a very heavy solution?

The contents of the zexp file are only js files and images (static content)
and I'm using Zope2

What about the functionality of the freemind view? What do you think about?

Thanks!

2008/1/11, Matt Hollingsworth [EMAIL PROTECTED]:

 Hi,

 This sounds like the same problem I presented earlier.  Are you using zope
 2.x?  If so, then it will only take you ~30 minutes to code something that
 makes use of REQUEST.response.write().  That's what I ended up doing; I
 wrote a simple class that would mount a directory on the file system and
 just serve the files that are in that directory.  If you make use of
 globals()[__file__], you can make the class independent of absolute
 locations.

 If you are using zope 3 (I'm not sure if you can easily get this
 functionality out of five + zope2.x, since this deals with the
 publisher...
 someone else would have to answer that), look at this site:

 http://apidoc.zope.org/++apidoc++/Book/zopepublisherhttpresults.txt/show.htm
 l

 Basically, it appears you can just return a file reference and let the
 publisher deal with the rest.

 A filesystem-based solution, as opposed to a ZODB way of doing this sort
 of
 thing, seems to be the best way to go as far as I'm concerned.

 If you are, indeed, using zope2.x, and want to go the response.write()
 route
 look at OFS/Image.py for an example of the serving logic if you want to
 avoid putting everything in memory.

 There may be better ways to do this sort of thing, but at least this is
 one
 way of going about it that worked nicely for me!

 -Matt

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
 Garito
 Sent: Friday, January 11, 2008 6:33 AM
 To: Zope user list
 Subject: [Zope] The best way

 Hi, all!
 If you have download the ZSM product you could see I put on it a zexp
 file with prototype and some other js file and a css file plus images

 This was only a prototype solution to bring you the chance to see how
 my ideas are but I think this is not a definitive solution

 Now my question:

 Which is the best zope way to serve this kind of files trying to avoid
 any other product dependence?

 Thanks a lot!
 --
 Mis Cosas
 http://blogs.sistes.net/Garito
 ___
 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 )




-- 
Mis Cosas
http://blogs.sistes.net/Garito
Zope Smart Manager
http://blogs.sistes.net/Garito/670
___
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] manage_renameObjects and AJAX

2008-01-11 Thread Garito
Hi!
I'm try to implement the edition part of ZSM and I begin with the rename
objects functionality
I create a InPlaceEditor object to rename every branch but when I submit the
form the rename command works ok but the response is the manage_main (or
similar) and the tree disappear

Is there a way to make manage_renameObjects returns the changed values?
If not I need to write another monkey_patched function, isn't it?

Thanks!

-- 
Mis Cosas
http://blogs.sistes.net/Garito
Zope Smart Manager
http://blogs.sistes.net/Garito/670
___
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] manage_renameObjects and AJAX

2008-01-11 Thread Garito
Ok
Then I put another function into the monkey patch to rename the objects
Did you try to install the product? I'm specially interested in the opinions
of big helpers like you

Thank you very much!

2008/1/11, Dieter Maurer [EMAIL PROTECTED]:

 Garito wrote at 2008-1-11 17:34 +0100:
 I'm try to implement the edition part of ZSM and I begin with the rename
 objects functionality
 I create a InPlaceEditor object to rename every branch but when I submit
 the
 form the rename command works ok but the response is the manage_main (or
 similar) and the tree disappear

 Many manage_* functions/methods have been designed not only to be
 used as simple functions but as also part of the ZMI.
 When used as ZMI functions, they must (eventually) return some HTML.
 They either do this by itself returning the HTML or by redirecting
 to an HTML page.

 These functions often distinquish between the normal function use
 and the ZMI use by looking whether REQUEST is passed in.
 If used as a ZMI functionality, the ZPublisher will pass in REQUEST
 automatically.

 Is there a way to make manage_renameObjects returns the changed values?
 If not I need to write another monkey_patched function, isn't it?

 If you need to use these functions via the ZPublisher,
 then it is best to make a little wrapper that is ZPublisher called
 instead and then calls the function without passing REQUEST.



 --
 Dieter




-- 
Mis Cosas
http://blogs.sistes.net/Garito
Zope Smart Manager
http://blogs.sistes.net/Garito/670
___
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: The best way

2008-01-11 Thread Garito
Wow! That's exactly what I need
Tomorrow I'll try this

Thank you so much Tres!!!

2008/1/11, Tres Seaver [EMAIL PROTECTED]:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Garito wrote:
  Hi, all!
  If you have download the ZSM product you could see I put on it a zexp
  file with prototype and some other js file and a css file plus images
 
  This was only a prototype solution to bring you the chance to see how
  my ideas are but I think this is not a definitive solution
 
  Now my question:
 
  Which is the best zope way to serve this kind of files trying to avoid
  any other product dependence?
 
  Thanks a lot!

 In the context of Five / Zope3, the static content items are
 resources.  One strategy would be to create a Zope2 product with those
 files in a subdirectory, e.g.::

   $ mkdir Products/garito
   $ cd Products/garito
   $ echo # ZSM product  __init__.py
   $ mkdir static
   $ cat  static/garito.css
   body {
 background: #FF;
   }
   ^D

 And then register that directory as a resource directory via ZCML::

   $ cat  configure.zcml
   configure xmlns:browser=http://namespaces.zope.org/browser;
 browser:resourceDirectory
 name=garito
 directory=static
 /
   /configure
   ^D

 Now, when you start Zope2, you can pull in your static resources via
 special URLs, like http://localhost:8080/++resource++garito/garito.css::

   $ cd ../..
   $ bin/zopectl start
   . daemon process started, pid=25240
   $ telnet localhost 8080
   Trying 127.0.0.1...
   Connected to localhost.
   Escape character is '^]'.
   GET /++resource++garito/garito.css HTTP/1.0

   HTTP/1.0 200 OK
   Server: Zope/(unreleased version, python 2.4.4, linux2) ZServer/1.1
   Date: Fri, 11 Jan 2008 18:53:11 GMT
   Content-Length: 32
   Last-Modified: Fri, 11 Jan 2008 18:44:47 GMT
   Connection: close
   Cache-Control: public,max-age=86400
   Content-Type: text/css; charset=iso-8859-15

   body {
 background: #FF;
   }
   Connection closed by foreign host.

 In that product, you could also register a template / browser view which
 includes your resources, e.g::

   $ cd Products/garito
   $ cat  garito.pt
   html
   head
link rel=stylesheet type=text/css
  href=/++resource++garito/garito.css/
   /head
   body
   h1 Garito's view /h1
   /body
   /html
   ^D
   $ cat  configure.zcml
   configure xmlns:browser=http://namespaces.zope.org/browser;
 browser:page
   for=*
   name=garito.html
   template=garito.pt
   permission=zope2.View
   /
 browser:resourceDirectory
   name=garito
   directory=static
   /
   /configure
   ^D
   $ cd ../..
   $ bin/zopectl restart
   $ telnet localhost 8080
   Trying 127.0.0.1...
   Connected to localhost.
   Escape character is '^]'.
   GET /garito.html HTTP/1.0

   HTTP/1.0 200 OK
   Server: Zope/(unreleased version, python 2.4.4, linux2) ZServer/1.1
   Date: Fri, 11 Jan 2008 19:02:05 GMT
   Content-Length: 151
   Content-Type: text/html; charset=iso-8859-15
   Connection: close

   html
   head
link rel=stylesheet type=text/css
  href=/++resource++garito/garito.css /
   /head
   body
   h1 Garito's view /h1
   /body
   /html
   Connection closed by foreign host.

 Which pulls in your static resources.



 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

 iD8DBQFHh72H+gerLs4ltQ4RAgwwAKDSJPrGAuwo++ShjWjZzyn06IDz1QCeK69s
 +CIbgsCJkbRV5Tdh9XWEY9k=
 =Du8x
 -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 )




-- 
Mis Cosas
http://blogs.sistes.net/Garito
Zope Smart Manager
http://blogs.sistes.net/Garito/670
___
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 Smart Manager

2008-01-10 Thread Garito
Hi!
I have subscribed to this list for some years
In this time I make some questions to this list that sounds weird for
a part of you

Perhaps my english is poor, perhaps my ideas are weird but doesn't matter

If the question is that my english is poor perhaps some code will be
more clear that my words, I don't know

Now it's time to code

I would like to introduce you Zope Smart Manager, perhaps it speaks
better than me

Please feel free to check this silly idea at: http://code.google.com/p/zsm/
Note that this is a very, very early stage of the project but I would
like to show you the way I see your beautifull and amazing work

Please feel free to contribute as deep as you like but give a chance
to it (perhaps you could understand my point of view better and we
could understand us better too)

I will appreciate your visions and your opinions

I love Zope's simplicity but I aspire to do go deeper in this way: simplicity

Sorry for this days of misunderstud and thanks a lot for your help
(even when I was think you could help me more ;) )

-- 
Mis Cosas
http://blogs.sistes.net/Garito
___
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] Ask for collaboration

2008-01-03 Thread Garito
Hi!
I plan to create a product I call Zope Smart Manager that consist in a view
similar to freemind for Zope
You could see a picture of my prototype here:
http://blogs.sistes.net/Garito/images/ArbolYanged.png

The idea is create a series of monkey patches to all the products we are
interested to see as tree nodes and a series of javascript (prototype +
scriptaculous) for the client side

I plan this ZSM view will be my main work view with edition and creation

For that I need some help about how to create the simplest monkey patch and
the javascript objects

I have no experience with monkey patching zope nor javascript object but
I'll learn all the necessary skills if no one wants to help

Can you help me at any point?

Thanks!

-- 
Mis Cosas
http://blogs.sistes.net/Garito
___
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: Ask for collaboration

2008-01-03 Thread Garito
Sorry, Tres, for the private (the stupid gmail reply)
I resend the message to the list (sorry again!)

2008/1/3, Garito [EMAIL PROTECTED]:



 2008/1/3, Tres Seaver [EMAIL PROTECTED]:
 
 
 
  -BEGIN PGP SIGNED MESSAGE-
  Hash: SHA1
 
  Garito wrote:
   Hi!
   I plan to create a product I call Zope Smart Manager that consist in a
  view
   similar to freemind for Zope
   You could see a picture of my prototype here:
   http://blogs.sistes.net/Garito/images/ArbolYanged.png
 
  While I can see visual differences, how does this tree behave
  differently than the one which the ZMI shows?


 Well, it shows (or will show) not only collection objects, it shows simple
item objects and properties (the data we change normally) and it will edit
directly its values, rename objects and so on

 The idea is create a series of monkey patches to all the products we are
   interested to see as tree nodes and a series of javascript (prototype
  +
   scriptaculous) for the client side
  
   I plan this ZSM view will be my main work view with edition and
  creation
  
   For that I need some help about how to create the simplest monkey
  patch and
   the javascript objects
 
  I don't know why you think you need to moneky-patch anything:  you
  should be able to create such a view using the standard API supplied by
  pretty much every existing Zope object.  The ZMI tree code is here:
 
$ZOPE_HOME/lib/python/TreeDisplay/TreeTag.py


I would like to create a very generic javascript objects useful even with
other servers not only Zope


 I have no experience with monkey patching zope nor javascript object but
   I'll learn all the necessary skills if no one wants to help
  
   Can you help me at any point?
 
 
 
  Tres.
  - --
  ===
  Tres Seaver  +1 540-429-0999  [EMAIL PROTECTED]
  Palladion Software   Excellence by Design http://palladion.com
  -BEGIN PGP SIGNATURE-
  Version: GnuPG v1.4.6 (GNU/Linux)
  Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
 
  iD8DBQFHfNNw+gerLs4ltQ4RAqsAAJ0dpeS4NH7xRt6sH4fMHHcBnxcawQCfR4Mr
  jEC5oHCat7/3EBgnalVVdFc=
  =OaJS
  -END PGP SIGNATURE-
 
 


 --
 Mis Cosas
 http://blogs.sistes.net/Garito




-- 
Mis Cosas
http://blogs.sistes.net/Garito
___
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] rotatezlogs

2007-12-12 Thread Garito
I have this error trying to launch the instance:

Error: could not load package Products.rotatezlogs: No module named
rotatezlogs
  Package name: 'Products.rotatezlogs'
  File name: 'component.xml'
  Package path: None

Is strange because with this rotatezlogs (1.0) and the same zope.conf works
fine in other computers I own

Any idea?

Thanks!

-- 
Mis Cosas
http://blogs.sistes.net/Garito
___
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: rotatezlogs

2007-12-12 Thread Garito
Please forget this threat!!!:
I download the product and reinstall it and all goes ok!

Thanks and sorry!

2007/12/12, Garito [EMAIL PROTECTED]:

 I have this error trying to launch the instance:

 Error: could not load package Products.rotatezlogs: No module named
 rotatezlogs
   Package name: 'Products.rotatezlogs'
   File name: 'component.xml'
   Package path: None

 Is strange because with this rotatezlogs (1.0) and the same zope.confworks 
 fine in other computers I own

 Any idea?

 Thanks!

 --
 Mis Cosas
 http://blogs.sistes.net/Garito




-- 
Mis Cosas
http://blogs.sistes.net/Garito
___
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] AJAX copy/paste

2007-11-21 Thread Garito
Hi!
I'm trying to do an AJAX copy/paste action but zope raises this:

  The data in the clipboard could not be read, possibly due to cookie data
being truncated by your web  browser. Try copying fewer objects.

How can solve this issue?

Thanks!
-- 
Mis Cosas
http://blogs.sistes.net/Garito
___
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] Monkey patch tutorial

2007-11-04 Thread Garito
Hi!
I would like to know if there are some monkey patch tutorial or how-to
anyone knows where?

Thanks!

-- 
Mis Cosas
http://blogs.sistes.net/Garito
___
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: How to know what are zope doing now?

2007-09-25 Thread Garito
Martijn is your friend! :)
Thanks for the correct clue!

2007/9/25, Martijn Pieters [EMAIL PROTECTED]:

 On 9/25/07, Garito [EMAIL PROTECTED] wrote:
  Yes, I installed Zope with an Ubuntu package

 Google's your friend:

 https://bugs.launchpad.net/ubuntu/+source/python-defaults/+bug/123755

 install python-profiler.

 --
 Martijn Pieters




-- 
Mis Cosas
http://blogs.sistes.net/Garito
___
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: How to know what are zope doing now?

2007-09-24 Thread Garito
Yes, I installed Zope with an Ubuntu package

But I try:

sudo apt-get install python2.4-dev

And the errors is still raised

Any suggestion for a linux newbie?

Thanks!

2007/9/24, Dieter Maurer [EMAIL PROTECTED]:

 Garito wrote at 2007-9-23 18:17 +0200:
  ...
 2007-09-23T18:13:33 ERROR Zope Couldn't install ZopeProfiler
 Traceback (most recent call last):
  ...
 line 9, in ?
 from DMstats import Stats
   File

 /var/lib/zope2.9/instance/Yanged/Products/ZopeProfiler/DMprofile/DMstats.py,
 line 13, in ?
 from pstats import Stats as pStats
 ImportError: No module named pstats
 
 How can I install pstats?

 pstats is a standard Python module and should come in Python's runtime
 library.

 If it is not there, then your Python installation is scrwed up



 --
 Dieter




-- 
Mis Cosas
http://blogs.sistes.net/Garito
___
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: How to know what are zope doing now?

2007-09-23 Thread Garito
Hi again!
There are no errors on event.log nor z2.log but the ZopeProfiler icon don't
appears in Control Panel and if I try to acces to
Control_Panel/ZopeProfiler/manage_main a Resoruce not found is raised by the
server

Any Idea? Need more data?

Sorry and thanks!

2007/9/23, Peter Bengtsson [EMAIL PROTECTED]:

 I've seen that too in some Zope's. ZopeProfiler installed by nothing
 in the Control_Panel.
 What I had to do was to manually guess the URL by typing in
 http://localhost:8080/Control_Panel/ZopeProfiler/manage_main and it was
 there.

 On 9/23/07, Dieter Maurer [EMAIL PROTECTED] wrote:
  Garito wrote at 2007-9-21 19:57 +0200:
  I supposed that but any ZopeProfiler objects appears on my
 Control_Panel
  
  Any suggestion?
 
  As always: Look into the logfile to see whether there are any
  problems reported during startup.
 
  If no problems are reported, check that ZopeProfiler
  is properly installed on the file systems. It should live
  in the Products directory of your Zope instance.
 
 
 
  --
  Dieter
  ___
  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 )
 


 --
 Peter Bengtsson,
 work www.fry-it.com
 home www.peterbe.com
 hobby www.issuetrackerproduct.com




-- 
Mis Cosas
http://blogs.sistes.net/Garito
___
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: How to know what are zope doing now?

2007-09-23 Thread Garito
Sorry! This appear in the event.log:

2007-09-23T18:13:33 ERROR Zope Couldn't install ZopeProfiler
Traceback (most recent call last):
  File /usr/lib/zope2.9/lib/python/OFS/Application.py, line 755, in
install_product
global_dict, global_dict, silly)
  File /var/lib/zope2.9/instance/Yanged/Products/ZopeProfiler/__init__.py,
line 2, in ?
from ZopeProfiler import _hookZServerPublisher, _initializeModule, \
  File
/var/lib/zope2.9/instance/Yanged/Products/ZopeProfiler/ZopeProfiler.py,
line 66, in ?
from DMprofile import Stats
  File
/var/lib/zope2.9/instance/Yanged/Products/ZopeProfiler/DMprofile/__init__.py,
line 9, in ?
from DMstats import Stats
  File
/var/lib/zope2.9/instance/Yanged/Products/ZopeProfiler/DMprofile/DMstats.py,
line 13, in ?
from pstats import Stats as pStats
ImportError: No module named pstats

How can I install pstats?

2007/9/23, Garito [EMAIL PROTECTED]:

 Hi again!
 There are no errors on event.log nor z2.log but the ZopeProfiler icon
 don't appears in Control Panel and if I try to acces to
 Control_Panel/ZopeProfiler/manage_main a Resoruce not found is raised by the
 server

 Any Idea? Need more data?

 Sorry and thanks!

 2007/9/23, Peter Bengtsson [EMAIL PROTECTED]:
 
  I've seen that too in some Zope's. ZopeProfiler installed by nothing
  in the Control_Panel.
  What I had to do was to manually guess the URL by typing in
  http://localhost:8080/Control_Panel/ZopeProfiler/manage_main and it was
  there.
 
  On 9/23/07, Dieter Maurer [EMAIL PROTECTED] wrote:
   Garito wrote at 2007-9-21 19:57 +0200:
   I supposed that but any ZopeProfiler objects appears on my
  Control_Panel
   
   Any suggestion?
  
   As always: Look into the logfile to see whether there are any
   problems reported during startup.
  
   If no problems are reported, check that ZopeProfiler
   is properly installed on the file systems. It should live
   in the Products directory of your Zope instance.
  
  
  
   --
   Dieter
   ___
   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 )
  
 
 
  --
  Peter Bengtsson,
  work www.fry-it.com
  home www.peterbe.com
  hobby www.issuetrackerproduct.com
 



 --
 Mis Cosas
 http://blogs.sistes.net/Garito




-- 
Mis Cosas
http://blogs.sistes.net/Garito
___
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: How to know what are zope doing now?

2007-09-21 Thread Garito
I supposed that but any ZopeProfiler objects appears on my Control_Panel

Any suggestion?

Thanks!

2007/9/21, Dieter Maurer [EMAIL PROTECTED]:

 Garito wrote at 2007-9-20 20:51 +0200:
 I would like to try it but I put it on my instance's Products, restart
 zope
 and... nothing
 
 I have Ubuntu Fesity + Zope 2.9.6 (the apt-get version)
 
 What is supposed I could find about it in my ZMI?

 ZopeProfiler installs itself in Control_Panel.

 It is a singleton. No need and no sense to install it anywhere else.
 Therefore, it does not add itself to the Add list.



 --
 Dieter




-- 
Mis Cosas
http://blogs.sistes.net/Garito
___
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 to know what are zope doing now?

2007-09-20 Thread Garito
Thank you very much!
I was thinking in something more like a monitor (to use it even if zope is
working ok) but I try it

2007/9/20, Paul Winkler [EMAIL PROTECTED]:

 You might also consider turning on the trace log.  I've sometimes done
 troubleshooting by eyeballing that file and/or using
 requestprofiler.py.  This is useful if some requests are taking so
 long that zope seems to hang.  But DeadlockDebugger might be easier to
 use.

 - P

 On Thu, Sep 20, 2007 at 01:33:55AM +0200, Garito wrote:
  Hi!
  Every night my Zope server has 99% cpu usage and, sometimes, the server
  stops to serve pages
 
  There are any way to know what the Zope server is doing in real time?
 
  I know I could look at event.log or z2.log but I would like to know the
  activity in real time
 
  Is this posible?
 
  How can I know what my server is doing?

 --

 Paul Winkler
 http://www.slinkp.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 )




-- 
Mis Cosas
http://blogs.sistes.net/Garito
___
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: How to know what are zope doing now?

2007-09-20 Thread Garito
I would like to try it but I put it on my instance's Products, restart zope
and... nothing

I have Ubuntu Fesity + Zope 2.9.6 (the apt-get version)

What is supposed I could find about it in my ZMI?

Thanks!

2007/9/20, Dieter Maurer [EMAIL PROTECTED]:

 Garito wrote at 2007-9-20 17:18 +0200:
 If I enable this at my zope.conf the instance hangs and don't respond to
 any
 petition

 Maybe, you try ZopeProfiler?

   http://www.dieter.handshake.de/pyprojects/zope



 --
 Dieter




-- 
Mis Cosas
http://blogs.sistes.net/Garito
___
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] How to know what are zope doing now?

2007-09-19 Thread Garito
Hi!
Every night my Zope server has 99% cpu usage and, sometimes, the server
stops to serve pages

There are any way to know what the Zope server is doing in real time?

I know I could look at event.log or z2.log but I would like to know the
activity in real time

Is this posible?

How can I know what my server is doing?

Thanks!

-- 
Mis Cosas
http://blogs.sistes.net/Garito
___
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] URL_Rewrite

2007-08-16 Thread Garito
This is another problem. You need to import url_quote in order to use it

But my help was about the error you send

See u

2007/8/16, [EMAIL PROTECTED] [EMAIL PROTECTED]:

 Your solution didn't work. It throws an error, stating url_quote is not
 defined. Actually, the solution I posted below *did* work, but I needed to
 clean up the code being tossed around (I found a mistake).
 Thanks,
 Tony


 -Original Message-
 From: Garito [EMAIL PROTECTED]
 To: [EMAIL PROTECTED] [EMAIL PROTECTED]
 Sent: Thu, 16 Aug 2007 12:49 am
 Subject: Re: [Zope] URL_Rewrite

  python: url_quote(path('here/CheckOutAfterEditStuff'))

 Cheers

 2007/8/15, [EMAIL PROTECTED]  [EMAIL PROTECTED]:
 
  I have this line of code:
 
  a tal:define=std modules/Products.PythonScripts.standard; url_quote
  nocall: std/url_quote; x python:url_quote(here/CheckOutAfterEditStuff)
  tal:attributes=href
  string:${here/renumberTheCart/absolute_url}?doc=${x}test/a
 
  but I get this error:
 
  *Error Type: NameError
  Error Value: name 'CheckOutAfterEditStuff' is not defined*
 
  So I tried this:
 
  a tal:define=std modules/Products.PythonScripts.standard; url_quote
  nocall: std/url_quote; x
  python:url_quote(here/Our_Store/CheckOutAfterEditStuff)
  tal:attributes=href
  string:${here/renumberLarimanCart/absolute_url}?doc=${x}test/a
 
  and I got the same error, although now it can't find Our_Store. Now,
  Our_Store is the container for this PT and CheckOutAfterEditStuff is in
  the same container. What am I doing wrong?
  TIA,
  Tony
  --
  AOL now offers free email to everyone. Find out more about what's free
  from AOL at *AOL.com * http://www.aol.com/?ncid=AOLAOF0002000437.
 
  ___
  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 )
 
 


 --
 Mis Cosas
 http://blogs.sistes.net/Garito
  --
 AOL now offers free email to everyone. Find out more about what's free
 from AOL at *AOL.com* http://www.aol.com?ncid=AOLAOF0002000437.




-- 
Mis Cosas
http://blogs.sistes.net/Garito
___
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] URL_Rewrite

2007-08-16 Thread Garito
Or as I previously say:

python: url_quote(path(here/Our_Store/CheckOutAfterEditStuff))

Where path is a method that evaluates a string as a tales expresion like
this

2007/8/16, Peter Bengtsson [EMAIL PROTECTED]:

 In TAL this::

   python:url_quote(here/Our_Store/CheckOutAfterEditStuff)

 means

here dividedby Our_Store dividedby CheckOutAfterEditStuff

 What you need is::

   python:url_quote(here.Our_Store.CheckOutAfterEditStuff())

 [EMAIL PROTECTED] wrote:
  I have this line of code:
 
  a tal:define=std modules/Products.PythonScripts.standard; url_quote
  nocall: std/url_quote; x python:url_quote(here/CheckOutAfterEditStuff)
  tal:attributes=href
  string:${here/renumberTheCart/absolute_url}?doc=${x}test/a
 
  but I get this error:
 
  *Error Type: NameError
  Error Value: name 'CheckOutAfterEditStuff' is not defined*
 
  So I tried this:
 
  a tal:define=std modules/Products.PythonScripts.standard; url_quote
  nocall: std/url_quote; x
  python:url_quote(here/Our_Store/CheckOutAfterEditStuff)
  tal:attributes=href
  string:${here/renumberLarimanCart/absolute_url}?doc=${x}test/a
 
  and I got the same error, although now it can't find Our_Store. Now,
  Our_Store is the container for this PT and CheckOutAfterEditStuff is
  in the same container. What am I doing wrong?
  TIA,
  Tony
  
  AOL now offers free email to everyone. Find out more about what's free
  from AOL at *AOL.com* http://www.aol.com?ncid=AOLAOF0002000437.
 
 
  
 
  ___
  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 )

 --
 Peter Bengtsson,
 work www.fry-it.com
 home www.peterbe.com
 hobby www.issuetrackerproduct.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 )




-- 
Mis Cosas
http://blogs.sistes.net/Garito
___
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 Structure This?

2007-08-15 Thread Garito
In my opinion the correct sentence will be:

a tal:attributes=href python: here.a_script(x) /

But they are trying to say you that structure don't do anything here because
an anchor expect or a URL or a javascript

You are trying to put an html code into an anchor but this don't work on
HTML or xHTML

If you want to execute the scritp when the user clicks on the anchor you
need to use something like:

a tal:attributes=href the url of the script / - a
tal:attributes=href string:${here.a_script/absolute_url}?doc=${x} /

and when the user clicks the anchor the script will be executed

can you find a reference help about HTML o xHTML with an anchor like this:

a href=htmlbodyyour page here/body/html /

no, isn't it? then structure don't do nothing here...

2007/8/15, [EMAIL PROTECTED] [EMAIL PROTECTED]:

 I tried this:
 a tal:attributes=href string:${here/a_script}?doc=${x} but got this
 error:
 *Error Type: TypeError
 Error Value: a_script() takes exactly 1 argument (0 given)*
 Next, I rewrote the script to put in a try statement for the variable, to
 test that, but before I even got to test I looked at the rendered code from
 the above line and it gave me this:
 a href=lt;htmlgt;lt;bodygt;nopelt;/bodygt;lt;/htmlgt;?doc=0
 So it doesn't look like the string:${... workaround worked :(
 And I don't think I need to URLquote.
 TIA,
 Tony


 -Original Message-
 From: Chris Withers [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]; zope@zope.org
 Sent: Wed, 15 Aug 2007 11:05 am
 Subject: Re: [Zope] How Do I Structure This?

  Ah Tony,

 looks like the penny is yet to drop...

 [EMAIL PROTECTED] wrote:
  Bummer. Well, I'm trying to call a script that will render content to
 the Web, like this:
  a tal:attributes=href python:here.a_script(str(x))

 My guess is that what you're _really_ trying to do here is:

 a href=
  tal:attributes=href string:${here/a_script/absolute_url}?avar=${x}/

 ...but next you'll be wondering how to url quote x.

 I feel we're fighting a loosing battle here...

 Chris

 -- Simplistix - Content Management, Zope  Python Consulting
   - http://www.simplistix.co.uk
  --
 AOL now offers free email to everyone. Find out more about what's free
 from AOL at *AOL.com* http://www.aol.com?ncid=AOLAOF0002000437.

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




-- 
Mis Cosas
http://blogs.sistes.net/Garito
___
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] Another Structure Problem

2007-08-15 Thread Garito
Perhaps you put the name of a template as doc and in this template render
the html code you want to render (like in this example a hidden input)

Only an idea...

2007/8/15, [EMAIL PROTECTED] [EMAIL PROTECTED]:

 Well, the other fellow said url_quote was well documented, but I haven't
 found out where :) Since you strongly imply I need url quoting, can you tell
 me how to url_quote this doc parameter?

 a tal:attributes=href
 string:${here/renumberTheCart/absolute_url}?doc=${here/CheckOutAfterEditStuff}

 Yes, it's sloppy, but I'm trying to resolve one problem at a time. Once
 it's working, I'll make it cleaner ;)
 TIA,
 Tony


 -Original Message-
 From: Chris Withers [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Cc: zope@zope.org
 Sent: Wed, 15 Aug 2007 12:54 pm
 Subject: Re: [Zope] Another Structure Problem

  [EMAIL PROTECTED] wrote:
  a href=
 http://203.223.152.46:8080/lariman.com/s/renumberTheCart?doc=divinputhttp://203.223.152.46:8080/lariman.com/s/renumberTheCart?doc=+%3Cdiv%3E%3Cinputtype=quot;hiddenquot;
  name=quot;redirect_cmdquot;
 value=quot;_cartquot;
   etc. Is there a way to work around this?

 Of course not, you don't need url quoting, that would be silly ;-)

 Chris

 PS: Why on *earth* you're passing around lumps of html in parameters
 anyway is *totally* beyond me...

 -- Simplistix - Content Management, Zope  Python Consulting
   - http://www.simplistix.co.uk
  --
 AOL now offers free email to everyone. Find out more about what's free
 from AOL at *AOL.com* http://www.aol.com?ncid=AOLAOF0002000437.

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




-- 
Mis Cosas
http://blogs.sistes.net/Garito
___
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] AttributeError: _get_filename

2007-08-08 Thread Garito
Hi!
I try to use Photo Folder 1.3.1 on a Zope 2.9.6 but when I try to upload a
photo Zope raise's this error:

Traceback (innermost last):
  Module ZPublisher.Publish, line 115, in publish
  Module ZPublisher.mapply, line 88, in mapply
  Module ZPublisher.Publish, line 41, in call_object
  Module Products.Photo.Photo, line 754, in manage_addPhoto
  Module OFS.ObjectManager, line 333, in _setObject
  Module zope.event, line 23, in notify
  Module zope.app.event.dispatching, line 66, in dispatch
  Module zope.component, line 181, in subscribers
  Module zope.component.site, line 89, in subscribers
  Module zope.interface.adapter, line 481, in subscribers
  Module zope.app.event.objectevent, line 192, in objectEventNotify
  Module zope.component, line 181, in subscribers
  Module zope.component.site, line 89, in subscribers
  Module zope.interface.adapter, line 481, in subscribers
  Module OFS.subscribers, line 114, in dispatchObjectMovedEvent
  Module OFS.subscribers, line 137, in callManageAfterAdd
  Module Products.Photo.Photo, line 697, in manage_afterAdd
  Module Products.Photo.Photo, line 375, in imagecomment
AttributeError: _get_filename

Any one could help me, please?

Thanks!

-- 
Mis Cosas
http://blogs.sistes.net/Garito
___
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] Declare constructor as public

2007-07-24 Thread Garito

Hi all!

How can I declare a product's constructor public?

Thanks!

--
Mis Cosas
http://blogs.sistes.net/Garito
___
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] Declare constructor as public

2007-07-24 Thread Garito

Hi Andrew!
In a normal method inside the product's class I use this:
security = ClassSecurityInfo()
security.setPermissionDefault('Freemind', ('Manager', 'Developer'))
security.declareProtected('Freemind', 'freemind')

But outside the class I have no idea how to create security object

Can I put a code like this outside the class?

Thanks!

2007/7/24, Andrew Milton [EMAIL PROTECTED]:


+---[ Garito ]--
| Hi all!
|
| How can I declare a product's constructor public?
|
| Thanks!

You have to declare a permission first such as: Add Garito Product when
you
create your product, and register the class.

Then in the ZMI you simply add the roles you want access to that
permission.

--
Andrew Milton
[EMAIL PROTECTED]





--
Mis Cosas
http://blogs.sistes.net/Garito
___
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: Declare constructor as public

2007-07-24 Thread Garito

Hi, J Cameron!
With constructor I mean the function I use to create the object. In this
case:
context.manage_addProduct['Yanged'].CrearYanged(NuevaId)

CrearYanged

How can I convert it to public?

Thanks!

2007/7/24, J Cameron Cooper [EMAIL PROTECTED]:


Garito wrote:
 Hi Andrew!
 In a normal method inside the product's class I use this:
 security = ClassSecurityInfo()
 security.setPermissionDefault('Freemind', ('Manager', 'Developer'))
 security.declareProtected ('Freemind', 'freemind')

 But outside the class I have no idea how to create security object

 Can I put a code like this outside the class?

No. Permission for a constructor is set when you register it, usually in
the __init__.py. (context.registerClass)

--jcc


 2007/7/24, Andrew Milton
 [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]:

 +---[ Garito ]--
 | Hi all!
 |
 | How can I declare a product's constructor public?
 |
 | Thanks!

 You have to declare a permission first such as: Add Garito Product
 when you
 create your product, and register the class.

 Then in the ZMI you simply add the roles you want access to that
 permission.

--
Connexions
http://cnx.org

Building Websites with Plone
http://plonebook.packtpub.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 )





--
Mis Cosas
http://blogs.sistes.net/Garito
___
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: Declare constructor as public

2007-07-24 Thread Garito

Now the problem is with a manager user too (yesterday this user works ok)
I try to inspect the process to see where it fails but seems to be ok
The error is raised when Zope try to commit the changes

This is the traceback:

Traceback (innermost last):
 Module ZPublisher.Publish, line 121, in publish
 Module Zope2.App.startup, line 240, in commit
 Module transaction._manager, line 96, in commit
 Module transaction._transaction, line 380, in commit
 Module transaction._transaction, line 378, in commit
 Module transaction._transaction, line 433, in _commitResources
 Module ZODB.Connection, line 484, in commit
 Module ZODB.Connection, line 526, in _commit
 Module ZODB.Connection, line 553, in _store_objects
 Module ZODB.serialize, line 407, in serialize
 Module ZODB.serialize, line 416, in _dump
 Module copy_reg, line 69, in _reduce_ex
TypeError: can't pickle instancemethod objects



2007/7/24, Jonathan [EMAIL PROTECTED]:



- Original Message -
From: Garito [EMAIL PROTECTED]
To: zope@zope.org
Sent: Tuesday, July 24, 2007 10:44 AM
Subject: Re: [Zope] Re: Declare constructor as public


 Hi, J Cameron!
 With constructor I mean the function I use to create the object. In this
 case:
 context.manage_addProduct['Yanged'].CrearYanged(NuevaId)

 CrearYanged

 How can I convert it to public?

Make sure that the folder and the script that contains the
context.manage_addProduct['Yanged'].CrearYanged(NuevaId) code are
accessible to the user.

Also, the folder where the new 'Yanged' instance is being created must be
'writeable' by the user.

If it is not working, make sure that 'Unauthorized' is not listed in the
'Ignored exception types' list in your error_log, so you can track the
problem down.


Jonathan







--
Mis Cosas
http://blogs.sistes.net/Garito
___
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: Declare constructor as public

2007-07-24 Thread Garito

Hi again!
I detect some clues for the problem:

I use ExUserFolder as acl_user for the website who raises this error

The problem only raises if I'm authenticated as an user of the ExUserFolder
not if I'm authenticated as a root acl_user's user

In both cases the user has manager as roles but the main acl_users works ok
and the XUF one raises the error

Any idea?

2007/7/24, Garito [EMAIL PROTECTED]:


Now the problem is with a manager user too (yesterday this user works ok)
I try to inspect the process to see where it fails but seems to be ok
The error is raised when Zope try to commit the changes

This is the traceback:

Traceback (innermost last):
  Module ZPublisher.Publish, line 121, in publish
  Module Zope2.App.startup, line 240, in commit
  Module transaction._manager, line 96, in commit
  Module transaction._transaction, line 380, in commit

  Module transaction._transaction, line 378, in commit
  Module transaction._transaction, line 433, in _commitResources
  Module ZODB.Connection, line 484, in commit
  Module ZODB.Connection, line 526, in _commit

  Module ZODB.Connection, line 553, in _store_objects
  Module ZODB.serialize, line 407, in serialize
  Module ZODB.serialize, line 416, in _dump
  Module copy_reg, line 69, in _reduce_ex
TypeError: can't pickle instancemethod objects



2007/7/24, Jonathan [EMAIL PROTECTED]:


 - Original Message -
 From: Garito [EMAIL PROTECTED]
 To: zope@zope.org
 Sent: Tuesday, July 24, 2007 10:44 AM
 Subject: Re: [Zope] Re: Declare constructor as public


  Hi, J Cameron!
  With constructor I mean the function I use to create the object. In
 this
  case:
  context.manage_addProduct['Yanged'].CrearYanged(NuevaId)
 
  CrearYanged
 
  How can I convert it to public?

 Make sure that the folder and the script that contains the
 context.manage_addProduct['Yanged'].CrearYanged(NuevaId) code are
 accessible to the user.

 Also, the folder where the new 'Yanged' instance is being created must
 be
 'writeable' by the user.

 If it is not working, make sure that 'Unauthorized' is not listed in the

 'Ignored exception types' list in your error_log, so you can track the
 problem down.


 Jonathan






--
Mis Cosas
http://blogs.sistes.net/Garito





--
Mis Cosas
http://blogs.sistes.net/Garito
___
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: Declare constructor as public

2007-07-24 Thread Garito

Hi, Jonathan!
Please, read my last message with the XUF consideration

Thanks!

2007/7/24, Jonathan [EMAIL PROTECTED]:



- Original Message -
From: Garito [EMAIL PROTECTED]
To: Jonathan [EMAIL PROTECTED]
Cc: zope@zope.org
Sent: Tuesday, July 24, 2007 11:47 AM
Subject: Re: [Zope] Re: Declare constructor as public


 Now the problem is with a manager user too (yesterday this user works
ok)
 I try to inspect the process to see where it fails but seems to be ok
 The error is raised when Zope try to commit the changes

 This is the traceback:

 Traceback (innermost last):
  Module ZPublisher.Publish, line 121, in publish
  Module Zope2.App.startup, line 240, in commit
  Module transaction._manager, line 96, in commit
  Module transaction._transaction, line 380, in commit
  Module transaction._transaction, line 378, in commit
  Module transaction._transaction, line 433, in _commitResources
  Module ZODB.Connection, line 484, in commit
  Module ZODB.Connection, line 526, in _commit
  Module ZODB.Connection, line 553, in _store_objects
  Module ZODB.serialize, line 407, in serialize
  Module ZODB.serialize, line 416, in _dump
  Module copy_reg, line 69, in _reduce_ex
 TypeError: can't pickle instancemethod objects

Somehow you are trying to store a method that has been bound to an
instance
of a class.  You should investigate the object that you are trying to
store
and see what it really consists of.

Jonathan





--
Mis Cosas
http://blogs.sistes.net/Garito
___
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: Declare constructor as public

2007-07-24 Thread Garito

Sorry for the private message, Andrew
It seems like with the XUF user's roles don't work ok or something like this

2007/7/24, Andrew Milton [EMAIL PROTECTED]:


+---[ Garito ]--
| Hi again!
| I detect some clues for the problem:
|
| I use ExUserFolder as acl_user for the website who raises this error
|
| The problem only raises if I'm authenticated as an user of the
ExUserFolder not
| if I'm authenticated as a root acl_user's user
|
| In both cases the user has manager as roles but the main acl_users works
ok and
| the XUF one raises the error
|
| Any idea?

Are you trying to store something as a property of the user? That's the
only
time XUF attempts to pickle anything.

--
Andrew Milton
[EMAIL PROTECTED]





--
Mis Cosas
http://blogs.sistes.net/Garito
___
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: Declare constructor as public

2007-07-24 Thread Garito

No
If I try this the call don't work with users in normal acl_user folder,
isn't it?

The call works ok with users stored in the root acl_user

2007/7/24, Andrew Milton [EMAIL PROTECTED]:


+---[ Garito ]--
| Hi again!
| I detect some clues for the problem:
|
| I use ExUserFolder as acl_user for the website who raises this error
|
| The problem only raises if I'm authenticated as an user of the
ExUserFolder not
| if I'm authenticated as a root acl_user's user
|
| In both cases the user has manager as roles but the main acl_users works
ok and
| the XUF one raises the error
|
| Any idea?

Are you trying to store something as a property of the user? That's the
only
time XUF attempts to pickle anything.

--
Andrew Milton
[EMAIL PROTECTED]





--
Mis Cosas
http://blogs.sistes.net/Garito
___
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] SiteErrorLog

2007-07-23 Thread Garito

Hehehe, fantastic job, Peter!

2007/7/23, Peter Bengtsson [EMAIL PROTECTED]:


RSS feed of error_log

http://www.fry-it.com/oss/BetterSiteErrorLog/BetterSiteErrorLog-0.2.tgz/CHANGES.txt

On 7/23/07, Garito [EMAIL PROTECTED] wrote:
 Hi!
 It will be very interessant if this site error log will generate an Rss
url.
 With it we can get notifications if a production web raises an error

 Thanks!

 2007/7/11, Peter Bengtsson  [EMAIL PROTECTED]:
  I'm not changing the traceback of the actual errors.
 
  Jonathan wrote:
  
   - Original Message - From: Peter Bengtsson 
[EMAIL PROTECTED]
   To: zope user list  zope@zope.org
   Sent: Wednesday, July 11, 2007 11:16 AM
   Subject: [Zope] SiteErrorLog
  
  
   I've been playing with a new monkey patch product for zope 2.8 (at
   least) and I confidentally call it 'BetterSiteErrorLog'. The only
two
   features I've added so far is to make the error log searchable and
   that it shows the date of errors older than one day.
  
   What other products are there out there already that I should look
at?
  
   What other features have you guys been desiring in the error_log
but
   never had the time to do something about?
  
   Wish list item:  inclusion of line number where error occurs in a
dtml
   method (or code that caused the error)
  
   Many many thanks if you can make this happen!
  
   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 )
  
 
  --
  Peter Bengtsson,
  work www.fry-it.com
  home www.peterbe.com
  hobby www.issuetrackerproduct.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 )
 



 --
 Mis Cosas
 http://blogs.sistes.net/Garito
 ___
 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 )




--
Peter Bengtsson,
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com





--
Mis Cosas
http://blogs.sistes.net/Garito
___
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] Virtual host monster question

2007-07-23 Thread Garito

Hi!
I create a website in development environment that works fine

But when I try to put it on the production server links stop working

Why? Seems is a question of VHM misconfiguration

I have a domain www.example.com who host the server but the website (at
www.example.com/Webs/myclient) is on www.myclient.com

When I visit www.myclient.com seems to work ok but If I put the mouse over a
link the url is not translated by VHM

I spect for: www.myclient.com/Page1
The reality is I have: www.example.com/Webs/myclient/Page1

Can you see what is happening?

Need some more information?

Thanks!

--
Mis Cosas
http://blogs.sistes.net/Garito
___
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: Virtual host monster question

2007-07-23 Thread Garito

Hi, again!
Please forget my previous question in this threat

The problem was the rewrite rule but now is solved

Sorry!

2007/7/23, Garito [EMAIL PROTECTED]:


Hi!
I create a website in development environment that works fine

But when I try to put it on the production server links stop working

Why? Seems is a question of VHM misconfiguration

I have a domain www.example.com who host the server but the website (at
www.example.com/Webs/myclient) is on www.myclient.com

When I visit www.myclient.com seems to work ok but If I put the mouse over
a link the url is not translated by VHM

I spect for: www.myclient.com/Page1
The reality is I have: www.example.com/Webs/myclient/Page1

Can you see what is happening?

Need some more information?

Thanks!

--
Mis Cosas
http://blogs.sistes.net/Garito





--
Mis Cosas
http://blogs.sistes.net/Garito
___
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] SiteErrorLog

2007-07-22 Thread Garito

Hi!
It will be very interessant if this site error log will generate an Rss url.
With it we can get notifications if a production web raises an error

Thanks!

2007/7/11, Peter Bengtsson [EMAIL PROTECTED]:


I'm not changing the traceback of the actual errors.

Jonathan wrote:

 - Original Message - From: Peter Bengtsson [EMAIL PROTECTED]
 To: zope user list zope@zope.org
 Sent: Wednesday, July 11, 2007 11:16 AM
 Subject: [Zope] SiteErrorLog


 I've been playing with a new monkey patch product for zope 2.8 (at
 least) and I confidentally call it 'BetterSiteErrorLog'. The only two
 features I've added so far is to make the error log searchable and
 that it shows the date of errors older than one day.

 What other products are there out there already that I should look at?

 What other features have you guys been desiring in the error_log but
 never had the time to do something about?

 Wish list item:  inclusion of line number where error occurs in a dtml
 method (or code that caused the error)

 Many many thanks if you can make this happen!

 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 )


--
Peter Bengtsson,
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.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 )





--
Mis Cosas
http://blogs.sistes.net/Garito
___
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] Logon process

2007-07-08 Thread Garito

To Andrew: I'll try! If doesn't work I'll reask, thanks!

To Dieter: I have a folder with some objects. This objects has 2 subgroups:
availables for everyone and availables only for a role

I would like to do folder.objectValues() and get a list of objects filtereds
but I don't have any idea if I could do that

What I can do (now if I solve the logon process will be finished) is have
the whole list and filter in the read process: if user has access keep in
the list, if not delete from it

I try to do that with normal zope security machinery but with no success and
I would like to finish as soon as possible

Any idea?

Thanks!

2007/7/8, Dieter Maurer [EMAIL PROTECTED]:


Garito wrote at 2007-7-7 14:17 +0200:
 ...
And this is the Logon code:

from AccessControl import getSecurityManager

usuario = context.acl_users.validate(context.REQUEST)

Usually, the login in performed by the user folder
automatically (provided, you use the correct form variables
(what you apparently do). Why do you want to do it programmatically
(rather than use the automatims)?



--
Dieter





--
Mis Cosas
http://blogs.sistes.net/Garito
___
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] Logon process

2007-07-07 Thread Garito

How can I change the user programatically?
Can I?

The process will be the same in acl_users, cookieCrumbler, ExUserFolder,
isn't it?

for example: acl_users.authenticate(user_name, password)

Is this possible?

That's my original need, but I'm not so sure if I ask properly, sorry

Thanks so much!

2007/7/6, Maciej Wisniowski [EMAIL PROTECTED]:



 Hi, Maciej!
 The same problem as with CookieCrumbler or ExUserFolder: I don't
understand
 the process to setup the product in order to use it

 Do you know any url o similar about how to setup and use PAS?
docs/ folder in PAS product :)

I don't remember exaclty how PAS looks so following
description is from memory and for older PAS version
that I've used some time ago but should be suitable
in general:

You have to crate a folder you want to be secured.
Then you should set View permission for authenticated users
only (or something like that). This is typical Zope security
machinery.

Then you add PAS object into secured folder - this
will create new 'acl_users' object.

In 'acl_users' you need to add two plugins from the list:
1. Cookie (don't remember the name)
2. ZODB UserFolder

Then you have to Activate added plugins (you'll find activation
at properties or at 'plugins' object).

Thats all. Now, at ZODB UserFolder object you may add users
just like with default acl_users.

If you take a look at interfaces.py or docs/ you'll find that
there are few kinds of plugins for extraction, authentication etc.
You may exchange some of them to suit your needs and write your own ones.

--
Maciej Wisniowski





--
Mis Cosas
http://blogs.sistes.net/Garito
___
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] Logon process

2007-07-07 Thread Garito

Sure? I'll try then

Thank you so much!!!

2007/7/7, Andrew Milton [EMAIL PROTECTED]:


+---[ Garito ]--
| How can I change the user programatically?
| Can I?
|
| The process will be the same in acl_users, cookieCrumbler, ExUserFolder,
isn't
| it?
|
| for example: acl_users.authenticate(user_name, password)
|
| Is this possible?
|
| That's my original need, but I'm not so sure if I ask properly, sorry

That is exactly how to do it with exUserFolder.
It will return a new user object, or None if the authentication failed.

--
Andrew Milton
[EMAIL PROTECTED]





--
Mis Cosas
http://blogs.sistes.net/Garito
___
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] Logon process

2007-07-07 Thread Garito

I try context.acl_users.authenticate(user, pass, request) but this doesn't
change the session user, isn't it?

Can I change the logged user in the session in any way?

Thanks!

2007/7/7, Garito [EMAIL PROTECTED]:


Sure? I'll try then

Thank you so much!!!

2007/7/7, Andrew Milton [EMAIL PROTECTED]:

 +---[ Garito ]--
 | How can I change the user programatically?
 | Can I?
 |
 | The process will be the same in acl_users, cookieCrumbler,
 ExUserFolder, isn't
 | it?
 |
 | for example: acl_users.authenticate(user_name, password)
 |
 | Is this possible?
 |
 | That's my original need, but I'm not so sure if I ask properly, sorry

 That is exactly how to do it with exUserFolder.
 It will return a new user object, or None if the authentication failed.

 --
 Andrew Milton
 [EMAIL PROTECTED]




--
Mis Cosas
http://blogs.sistes.net/Garito





--
Mis Cosas
http://blogs.sistes.net/Garito
___
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] Logon process

2007-07-06 Thread Garito

Hi, Maciej!
The same problem as with CookieCrumbler or ExUserFolder: I don't understand
the process to setup the product in order to use it

Do you know any url o similar about how to setup and use PAS?

Thanks!

2007/7/5, Maciej Wisniowski [EMAIL PROTECTED]:


 Thanks, I try to use a more easy solution but it's ok

 I check this and ExUserFolder but in both cases I don't understand the
 product's setup process

 Do you know where I can found a tutorial about how to setup and use
Cookie
 Crumbler product?
I think you should rather take a look at PAS - PluggableAuthService and
possibly just write your own plugin. There is Zope-PAS mailing list too.
You may take a look at docs/ and interfaces in this package.
Default PAS plugins include ZODB users storage and cookie
authentication.

--
Maciej Wisniowski





--
Mis Cosas
http://blogs.sistes.net/Garito
___
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] Logon process

2007-07-05 Thread Garito

Hi all!
I've developed a site that if you are not logged in renders in a way but if
you are logged in renders in another way (with more functionality)

I would like to create a logon form and the validate the user in an AJAX way

Where can I read about it? Or where the acl_users code is located?

I would like to avoid the use of alternatives acl_users products if possible
because I would like to store users on the ZODB normaly as original
acl_users object do (I don't need ExUserFolder or similar if possible)

Thanks!

--
Mis Cosas
http://blogs.sistes.net/Garito
___
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 )


  1   2   3   >