Re: [Zope] Does anyone care whether we deprecate ZClasses?

2005-04-03 Thread Garito
Jim Fulton escribió:
ZClasses are a feature that support through-the-web development.
Many people have found them useful in the past, but they have some
significant deficiencies, including:
- They can't be managed with file-system tools, especially
  revision control systems like CVS and subversion.
- They don't work well with Python development tools, like
  profilers and debugger.
- They aren't being actively maintained.
Most serious Zope developers stopped using them a long time
ago and are frustrated that we still expend resources keeping them
around.  For example, the release of Zope 2.8 has been delayed
by the requirement of getting ZClasses working with Zope 2.8.
We could choose to deprecate ZClasses.  If we deprecated them in
Zope 2.8, they would still work in Zope 2.8 and Zope 2.9, but
their support would be removed in Zope 2.10.  Would anyone be upset
if this happened?
Jim
My +1 for ZClasses deprecation
And +1 for DTML deprecation
Try to keep Zope simple
Simple = GOOD
Simple = EASY
Simple = BUGLESS
Simple = QUICK
___
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] Get all user folder instances

2005-04-03 Thread Garito
Hi
I'm try to know the complet list of users in a Zope point with this 
structure:

root
   acl_users (user folder)
   Folder1
  acl_users (Pluggable user folder)
  Folder2
 acl_users (Another user folder)
 Object1
 Object2
how could I retrive the list of user folders (in this case: /acl_users, 
/Folder1/acl_users and /Folder1/Folder2/acl_users)

It would be perfect something like: Object1.superValues('User Folder')
But this only retrive User Folder's not Pluggable user folder's nor 
Another user folder's

Is there any kind of method to query for security list of users?
Thanks a lot!!
___
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] Does anyone care whether we deprecate ZClasses?

2005-04-04 Thread Garito
Chris Withers escribió:
Well, you know what I'm gonna say...
+1 for their demise.
+1 for DTML going too, oops, wait, Andreas said not to bring that up ;-)
cheers,
Chris
Jim Fulton wrote:
ZClasses are a feature that support through-the-web development.
Many people have found them useful in the past, but they have some
significant deficiencies, including:
- They can't be managed with file-system tools, especially
  revision control systems like CVS and subversion.
- They don't work well with Python development tools, like
  profilers and debugger.
- They aren't being actively maintained.
Most serious Zope developers stopped using them a long time
ago and are frustrated that we still expend resources keeping them
around.  For example, the release of Zope 2.8 has been delayed
by the requirement of getting ZClasses working with Zope 2.8.
We could choose to deprecate ZClasses.  If we deprecated them in
Zope 2.8, they would still work in Zope 2.8 and Zope 2.9, but
their support would be removed in Zope 2.10.  Would anyone be upset
if this happened?
Jim

Yep!
Don't talk about DTML or you will be punished (sorry Andreas I can't 
resist myself, hehe, obviously I'm joking)

___
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] Does anyone care whether we deprecate ZClasses?

2005-04-04 Thread Garito
AM Thomas escribió:
I agree that ZClasses are not good to use.  However, I have a product 
based on ZClasses that I wrote several years ago (after reading the 
printed Zope book - doh!), and it's working well for several of my 
clients.  If future versions of Zope were to not support it, that 
would be a huge problem for me... unless there were some utility that 
would allow me to export my ZClasses to a regular file-system product.

Thanks,
AM
___
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 )
Perhaps will be a good choice to make ZClasses as an installable product 
(I don't know if this is possible or not

___
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] Does anyone care whether we deprecate ZClasses?

2005-04-05 Thread Garito
Arenz, Ralph escribió:
SOS
This would mean a disaster for us. We've created a lot products using
ZClasses in 
production environment (internet,intranet,eai and so on) since zope-2.1.4.
In short our complete developement in Zope is heavily based on ZClasses. 

We plan to use ZClasses in the future, too. For us ZClasses are a essential
part 
of zope and they works very well. It is quite impossible for us to migrate
all our 
Products to python-products or somethong else and i guess that this is not
wanted by
you!?

I think that going away from ZClasses will let many other people with
legacy-software
running in the same problems. 

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

Hi
Can you explain why you can't migrate from ZClasses to python-products?
Perhaps the best solution will be create a machinery to migrate ZClasses
Thanks!
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Does anyone care whether we deprecate

2005-04-07 Thread Garito
David H escribió:
Andrew Milton wrote:
I think people on this list need to realize that eventually, the 
direction of
any significantly large Open Source project is hijacked by the 
relatively
small number of people actually doing the work.

The reasons for this are many-fold, but, normally come down to a lack of
communication between the developers and the users, which is realized 
in a
lack of understanding by the developers of what the users want.

This for the most part isn't generally a problem, until, the 
developers start
to do things "for the user's own good", like remove features that are
"kludgey", or a "hack", or , which 
generally means
either noone wants to work on it, or some other change caused it to 
break, and
noone wants to fix it.

Now to the credit of the Zope guys, they actually poll the users to 
find out,
rather than just announce the demise of something. However, in 
general once you add a feature, you can be guaranteed, that 
somewhere, someone is using it, so removing it will always cause a 
problem. So there will always be an
uproar when you poll.

You're never going to be able to reduce the feature set between point
releases without upsetting some group of people. So why don't we stop 
all this
nonsense now, and just agree, that you're never going to do that d8) 
You have
Zope 3 to remove all the stuff you hate d8)

In my opinion if you change something, it's your responsibility to 
fix the
resulting breakage. That's part of your responsibiliity to the rest 
of the
community (i.e. the [mostly non-paying] customers). If you don't 
think you
have this responsibility to us, then you should work on your own 
version of
Zope, where you're not impacting anyone else.

For the record, I hate ZClasses... d8)
 

I wish Terri Shiavo had as much compassion as ZClasses.
___
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 )
Perhaps a unfortunated comment
___
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] Keyword index search

2005-05-20 Thread Garito
Hi all
I have a ZCatalog object with a keywordindex called keywords
I would like to search some objects with keywords ['k1', 'k2', k3', 
'k4'] for that I use:

return context.catalog({'keywords': {'query': ['k1', 'k2', k3', 'k4'], 
'operator': 'and'}})

but these query returns objects with keyword = ['k2', 'k3'] (for me 
incorrect, I would like to find objects with *all* keywords

How can I make these kind of querys?
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] Keyword index search

2005-05-21 Thread Garito

Dieter Maurer escribió:


Garito wrote at 2005-5-20 12:41 +0200:
 


...
I have a ZCatalog object with a keywordindex called keywords

I would like to search some objects with keywords ['k1', 'k2', k3', 
'k4'] for that I use:


return context.catalog({'keywords': {'query': ['k1', 'k2', k3', 'k4'], 
'operator': 'and'}})


but these query returns objects with keyword = ['k2', 'k3'] (for me 
incorrect, I would like to find objects with *all* keywords


How can I make these kind of querys?
   



A long standing bug in "KeywordIndex"...


Maybe, you give my "Managable KeywordIndex" a try
(part of "ManagableIndex").

I cannot promiss you that
"ManagableIndex" is free of bugs but I definitely can
promiss you that a bug resulting in wrong search results
is fixed much much more quickly than in the Zope core :-)


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


 


Hi Dieter!
I can't understand the lack of concern you talk about unresolved bugs in 
Zope
It seems Zope is not a serious tool. Imagine you want to buy a car but 
the seller says: in these model there are a bug on the brake system but 
I you put these extra no problem


How can I convince my customers to use Zope with these kind of 
searchable information?


I think the bigger problem of applications like SO, Application servers 
and so on are they only think to put more and more funcionality rather 
that make it's code better and simple


Zope has a very good plug-in machinery. Why don't we use it instead of 
put more and more funcionality? Why I need, for example, five on 2.8 if 
I don't use it?


I know that five is on 2.8 because you need to integrate it on zope to 
migrate to Z3 but I think its better for all us if zope still remain 
simple, quickly and bugs free instead of a very big application server 
with a lot of features and a lot of lines of code (that they can fail)


Do you know basecamp? They build simple applications that work
del.icio.us? The same rules
Flirck? idem, and so on

Less is more

Thanks a lot

PD: sorry but these mail is only an opinion. Zope development team could 
do what they want, logically


--
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] Keyword index search

2005-05-22 Thread Garito

Dieter Maurer escribió:


Garito wrote at 2005-5-21 13:29 +0200:
 


...
Dieter Maurer escribió:
...
   


A long standing bug in "KeywordIndex"...

Maybe, you give my "Managable KeywordIndex" a try
(part of "ManagableIndex").
 


...
I can't understand the lack of concern you talk about unresolved bugs in 
Zope
   



I am a big Zope user who also files occational bug reports and
patches. However, I cannot fix bugs in Zope directly (due
to excessive demands with respect to patents, I am not willing
to sign the contributors agreement).


I am not very concerned about unresolved bugs because:

 *  Zope is open source. I can fix any bug which seriously hampers
my work -- not in the public Zope sources but in our sources of
Zope.

To keep upgrades possible despite local modifications,
we maintain Zope in a source code control system (CVS currently).
 

Poor. 1 Zope developer, 1 Zope version, 1000 Zope developers, 1000 Zope 
versions?



 *  I am a pragmatist. When I know there is a problem and
I know how to avoid it, I just avoid it.
 


If I know where the problem is I report it to fix the bug


Especially, I am no longer concerned with bugs in
Zope's indexes since I have "ManagableIndex".
I believe "ManagableIndex" it is more flexible, more efficient
and has less bugs than the stock Zope indexes.
 


Why 2 ways?:
   1.- Official one doesn't work
   2.- Unofficial one who needs some duplicated dependency (OFolder 
seem very similar to Ordered folder don't you thing?)


If I can't maintain my system clear and simple I change my application 
server: easy


 

It seems Zope is not a serious tool. Imagine you want to buy a car but 
the seller says: in these model there are a bug on the brake system but 
I you put these extra no problem
   



The keyword index bug is far less serious than a bug in the brake
system of a car. I think, I wrote about 5 times "a long standing bug"
in the last two to three years. There are apparently not that many people
concerned about this bug.

 

Perhaps but *your product doesn't work properly* any diference if you 
was a brake system producer (here I'm talking with the keyword index 
original developer)


 

How can I convince my customers to use Zope with these kind of 
searchable information?
   



You tell them that you can fix serious problems yourself because Zope
is open source -- if there is not already a fix around
(I told you that "Managable KeywordIndex" does not have this problem).

 


Anyway (I see I can't do anything to change your way of life)

Another question for the main Zope developers group

Did you plan to make some make-up to simplify Zope?

In my opinion Zope has at least one competitive advantage: the fresh 
concept about objects but these kind of advantage is lost when the code 
grows and grows


Thanks

PD: I don't want to create controversy. I'm developing some code and the 
*MAIN* feature is **MINIMUM**


--
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] Keyword index search

2005-05-22 Thread Garito

Andreas Jung escribió:




--On Sonntag, 22. Mai 2005 16:54 Uhr +0200 Garito <[EMAIL PROTECTED]> 
wrote:




Poor. 1 Zope developer, 1 Zope version, 1000 Zope developers, 1000 Zope
versions?



People do often backport port from their private repository back to the
official one. This is true for Dieter, myself and other developers. 
But not
every  extension from private repositories will make it back into the 
official
repository either because the extensions are too specific or just 
because people

don't have time (and interest) to perform backporting work.


If I know where the problem is I report it to fix the bug



As I wrote this bug is already in the Zope collector.


Anyway (I see I can't do anything to change your way of life)

Another question for the main Zope developers group

Did you plan to make some make-up to simplify Zope?



What do you have in mind with "make-up to simplify Zope"?

-aj




Identify and acotated the duplicate classes (I know you are a fan of 
DTML, for example, but I think they aport a duplicate functionality with 
python scripts and page templates) to unify in one
Change obsolete classes to the new and better builds (For example, 
Dieter says Managable Index is better for keyword index. Why don't 
change it and put on the main distribution?)


Those kind of things

In my opinion, I persist, Zope has a main advantage: the OOP paradigm is 
implemented in a very fresh way and it's very simple but If it lost 
these advantages we have nothing to defend


Why don't use Ruby for example (with Ruby on Rails or without it)? It's 
modern (if you compare it with python) and clear


I need simple things because less code means less failure posibility and 
means quick code


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: Keyword index search

2005-05-23 Thread Garito

Tres Seaver escribió:


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Garito wrote:
 


Dieter Maurer escribió:

   


Garito wrote at 2005-5-20 12:41 +0200:


 


...
I have a ZCatalog object with a keywordindex called keywords

I would like to search some objects with keywords ['k1', 'k2', k3',
'k4'] for that I use:

return context.catalog({'keywords': {'query': ['k1', 'k2', k3',
'k4'], 'operator': 'and'}})

but these query returns objects with keyword = ['k2', 'k3'] (for me
incorrect, I would like to find objects with *all* keywords

How can I make these kind of querys?
 
   


A long standing bug in "KeywordIndex"...


Maybe, you give my "Managable KeywordIndex" a try
(part of "ManagableIndex").

I cannot promiss you that
"ManagableIndex" is free of bugs but I definitely can
promiss you that a bug resulting in wrong search results
is fixed much much more quickly than in the Zope core :-)


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




 


Hi Dieter!
I can't understand the lack of concern you talk about unresolved bugs in
Zope
It seems Zope is not a serious tool. Imagine you want to buy a car but
the seller says: in these model there are a bug on the brake system but
I you put these extra no problem

How can I convince my customers to use Zope with these kind of
searchable information?
   



The bug you encountered is sufficiently an "edge case" that it has not
gotten any attention from the people who could fix it.  Agitating for it
on the list is likely to be less productive than contributing:

 - Write one or more unit tests which demonstrates the failure (e.g.,
   they fail  with the current implementation).

 - Implement the fix, such that the new tests pass without causing any
   others to fail.

 - Submit the patch, including both the test and the patched
   implementation, as an attachment to the collector issue Andreas
   pointed to:  http://www.zope.org/Collectors/Zope/889

Such bug reports get quicker attention, because:

 - they demand less effort from the person with commit access to
   understand the problem (even without the fix, writing the test case
   would be valuable here).

 - they show that the bug matters enough to somebody to have invested
   the effort.

I have checked in a number of patches from Dieter in this way, which
means that Dieter is contributing to the "core" Zope code, even without
checkin access (which Dieter doesn't want to obtain).

Tres.
- --
===
Tres Seaver   [EMAIL PROTECTED]
Palladion Software   "Excellence by Design"http://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCkMrZ+gerLs4ltQ4RAl14AJ4xmHMk6PKCJrTv3hJQ/xeCOqNYsgCglSiP
KSHy7IctCFqHBoOmxwSTMws=
=HCJO
-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 )
 

All you say (Andreas, Dieter, Tres and Lennart) is very reasonable, in 
my opinion with all your choices, I prefer try to solve the bug


I don't know if my python/zope skill is enought but if I don't try it I 
never know my real skill


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] DTML in Zope 2 vs Zope 3

2005-05-30 Thread Garito

Ismet Dere escribió:


On 5/27/05, Hugo Ramos <[EMAIL PROTECTED]> wrote:
 


On 5/27/05, Chris Withers <[EMAIL PROTECTED]> wrote:
   


AT? As in ArcheTypes? You ARE kidding right? I've never seen such bad
code, and in particular, abuse of ZPT in my entire life...

And DTML sux, you wanna use it, fine, that says something about you. Use
ZClasses, Plone, AT and XUF at the same time while you're at it. Why not
dig out LoginManager and ZPatterns too, just for good measure?

Hell, why not just do us all a favour and switch to using Perl where
you'll be s much happier, and everyone in the community will agree
with you rather than trying to help you not shoot yourself in the foot ;-)
 


Is it me or are you really pissed??? :-)
At least give DTML some credit... It's what made Zope so popular in
the first days because of easy and fast learning curve!!!

Regards
Hugo

   



Yup, I completely agree with Hugo, dtml what made zope, zope.

Chris probably has a point as an advanced user but zope still needs a
lot of joe-beginners and their needs to be considered too.

ismet

 


--
Hugo Ramos - [EMAIL PROTECTED]
___
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 )
 

Sorry but, in my opinion, acquisition make zope, zope, products make 
zope zope, python make zope, zope but DTML, in my opinion, remember, is 
only a product


See ya

--
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] Debugging a python routine

2005-06-28 Thread Garito

Dieter Maurer escribió:


John Poltorak wrote at 2005-6-27 16:45 +0100:
 

Can anyone suggest how I would go about debugging a Python routine like 
this through Zope?
   



It depends what type of object you want to debug, how much
money you are ready to invest and how much comfort you need.

At one endpoint is "pdb" (the Python debugger):

  * part of Python's runtime libary (no costs)

  * archaic user interface, (almost) without any comfort

  * after code changes able to debug trusted code
(and untrusted Python Scripts once you used
the appropriate "allow_module" and "allow_class")
if Zope runs in the foreground.

The code change is adding a

 import pdb; pdb.set_trace()


At another endpoint is e.g. the commercial (!) WingIDE:

  * costs money, needs installation

  * comfortable, menu driven user interface

  * debugging of trusted code and untrusted PythonScripts

  * no code changes necessary


 


Hi all!
Dieter: can you send us some info about debug PythonScripts with WingIDE?

All: WingIDE is free if you develop open source. Rencently I ask them 
for some licences but I can't demostrate I'm working on open source and 
they send me 2 180 days licences (I have windows and mac plataforms). If 
you can demostrate you are developing open source (they only ask for the 
project's url) they send you permanent licences


Cheers

--
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] A function like a FTP Object

2005-07-03 Thread Garito

Hi all
I would like to create a product with a function called struct.xml

I would like if I could access it via FTP because I would like editor 
integration


I open the file via FTP and I save it via FTP and PUT_factory mechamism

Can I make struct.xml accesible via a FTP file?

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] A function like a FTP Object

2005-07-03 Thread Garito

Peter Bengtsson escribió:

Sure you can. Any object/method that is in Zope becomes available via FTP. 
Some example code::


class MyProduct(Folder):
   def struct_xml(self):
 return "1"
   def PUT(self, REQUEST, RESPONSE):
   if not REQUEST.get('BODY'):
   get_transaction.abort()
   RESPONSE.setStatus(405)
   else:
   body = REQUEST.get('BODY')
   self._save_struct_body(body)
   RESPONSE.setStatus(204)
   return RESPONSE


setattr(MyProduct, 'struct.xml', MyProduct.struct_xml)

   


On 7/3/05, Garito <[EMAIL PROTECTED]> wrote:
 


Hi all
I would like to create a product with a function called struct.xml

I would like if I could access it via FTP because I would like editor
integration

I open the file via FTP and I save it via FTP and PUT_factory mechamism

Can I make struct.xml accesible via a FTP file?

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 )

   




 


Hi!
does this work on a folder?

The struct.xml function is on a folder object and I would like 
struct.xml as an object contained by the folder one


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] Why don't work?

2005-07-06 Thread Garito

Hi all!

I create a ZPT with this result:

action="http://yanged:8280/Papeles/Yanged/Links/Eliminar/";>

   
   
   
   
   value="Links1" />

   
   href="http://yanged:8280/Papeles/Yanged/Links/Editar/Links1";>Mis Cosas

   
   
       href="http://blogs.sistes.net/Garito/";>http://blogs.sistes.net/Garito/

   
   


The original result has more  with id="Links2", etc 
that I delete for your confort (I think this don't modify the problem)


My question is why If I push Eliminar button don't submit the form to 
the correct url (http://yanged:8280/Papeles/Yanged/Links/Eliminar)?


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] A function like a FTP Object

2005-07-06 Thread Garito

Peter Bengtsson escribió:


Hi!
does this work on a folder?

   


Sure it does. Did you understand any of my code? I subclassed it on
the folder class.

 


The struct.xml function is on a folder object and I would like
struct.xml as an object contained by the folder one

   


This is completely outside the zope management interface. Perhaps it
is possible to override the PUT() function inside Zope but I doubt it.
Look into writing your own python product.


 


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 )

   




 

Yes, I think I understand your code but correct me if I get wrong: this 
code converts your folder in a file on the FTP server


But what I need is to see the method like a file on the folder not the 
folder itself


Did your code works like I need?

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] Why don't work?

2005-07-06 Thread Garito

Andreas Jung escribió:




--On 6. Juli 2005 10:29:45 +0200 Garito <[EMAIL PROTECTED]> wrote:



My question is why If I push Eliminar button don't submit the form to 
the

correct url (http://yanged:8280/Papeles/Yanged/Links/Eliminar)?



What happens instead? Look at your Z2.log to figure out what is 
requested.


-aj


Hi Aj!
this is the Z2.log modification after submit the form

*192.168.0.129 - Garito [06/Jul/2005:10:38:03 +0200] "POST 
/Papeles/Yanged/Links/Eliminar/ HTTP/1.1" 302 383 
"http://yanged:8280/Papeles/Yanged/Links/Ver"; "Mozilla/5.0 (Windows; U; 
Windows NT 5.1; es-ES; rv:1.7.8) Gecko/20050511 Firefox/1.0.4"
192.168.0.129 - Garito [06/Jul/2005:10:38:03 +0200] "GET 
/Papeles/Yanged/Links/Ver HTTP/1.1" 200 3434 
"http://yanged:8280/Papeles/Yanged/Links/Ver"; "Mozilla/5.0 (Windows; U; 
Windows NT 5.1; es-ES; rv:1.7.8) Gecko/20050511 Firefox/1.0.4"
192.168.0.129 - Garito [06/Jul/2005:10:38:03 +0200] "GET /favicon.ico 
HTTP/1.1" 404 1266 "" "Mozilla/5.0 (Windows; U; Windows NT 5.1; es-ES; 
rv:1.7.8) Gecko/20050511 Firefox/1.0.4"*


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] Why don't work?

2005-07-06 Thread Garito

Lennart Regebro escribió:


A wild guess: Your post works, but returns a redirect to a nother
page, which returns nothing. This will look exactly like notyhing
happened at the browser side.
 

Yes, looking at Z2.log it seems it but If I execute the action url 
manually it works like I expect


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 )


Re: [Zope] Why don't work?

2005-07-06 Thread Garito

bruno modulix escribió:


Garito wrote:
 


Lennart Regebro escribió:

   


A wild guess: Your post works, but returns a redirect to a nother
page, which returns nothing. This will look exactly like notyhing
happened at the browser side.


 


Yes, looking at Z2.log it seems it but If I execute the action url
manually it works like I expect

Any idea?

   


Since we're not able to guess what your code is doing (well, I, at
least, am not able to...), you could perhaps post it ?

One thing that strikes me is the final slash in
"POST /Papeles/Yanged/Links/Eliminar/"

What is "Eliminar", exactly ?

 


Links/Eliminar is the execution path (using traverse_subpath)

But if I execute the action URL directly on the browser it works fine

--
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] Why don't work?

2005-07-07 Thread Garito

bruno modulix escribió:


Garito wrote:
 


bruno modulix escribió:

   


Garito wrote:

 


Lennart Regebro escribió:

   


A wild guess: Your post works, but returns a redirect to a nother
page, which returns nothing. This will look exactly like notyhing
happened at the browser side.
 


Yes, looking at Z2.log it seems it but If I execute the action url
manually it works like I expect

Any idea?
   


Since we're not able to guess what your code is doing (well, I, at
least, am not able to...), you could perhaps post it ?

One thing that strikes me is the final slash in
"POST /Papeles/Yanged/Links/Eliminar/"

What is "Eliminar", exactly ?

 

Links/Eliminar is the execution path 
   




Oh yes ? Really ? I sure wouldn't have guessed


 


(using traverse_subpath)

But if I execute the action URL directly on the browser it works fine

   



Garito, if you expect anyone here to be of any help, please provide
*useful* informations. When I ask ">> What is "Eliminar", exactly ?", I
of course mean "what kind of object is it" (ie: a dtml method, a python
script, etc...).

PS: You may want to read this:
http://www.catb.org/~esr/faqs/smart-questions.html

 


Hi Bruno
http://yanged:8280/Papeles/Yanged/Links/Eliminar is an url that if I 
call it from my browser executes some python scripts that I define in a 
XML file


Then Eliminar is a string not an object nor a method because, as I told 
you some mails ago, I has it via traverse_subpath
The real Object (travesed) is Yanged that is a mixed object with a 
ZCatalog and a folder (like plone portal_catalog)


When I ask for Yanged/Links/Eliminar I ask to the XML file to see what 
Python Scripts or Page Templates give back to me and the I execute them


But, I think its very interesting for me that an action url don't work 
if I submit the form but works if I call it directly from the browser. 
Interesant, no?


Thanks
PD: thanks for the smart-questions page, very interessant!
PD2: sorry for the personal mail I send you (2 mails) but if you push 
reply button only the personal email is used. It's necesary to push 
reply all one, sorry!


--
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] PUT_factory fight

2005-08-02 Thread Garito

Hi all
I fighting with these PUT_factory

def PUT_factory(self, name, typ, body):
  from Products.Yanged.FicheroYanged import FicheroYanged
  if name.endswith('.mm'):
  ob = FicheroYanged(name, 'Fichero de estrucutra de ' + 
self.getId(), body, 'LanzarProcesarFreeMind', self.getId(), typ)

  return ob
  return None

It's curious because these function (put on the same container) works 
perfectly:


def CrearFicheroYanged(self):
  """ """
  from Products.Yanged.FicheroYanged import FicheroYanged
  ob = FicheroYanged('Fichero', 'Fichero de pruebas de ' + 
self.getId(), '', '', self.getId(), 'text/plain')

  self._setObject('Fichero', ob)
  return ob.getId()

Could anyone find the mistake?

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] PUT_factory fight

2005-08-04 Thread Garito

Dieter Maurer escribió:


Garito wrote at 2005-8-2 12:34 +0200:
 


...
Could anyone find the mistake?
   



You forgot to tell us what problem you observe...
You say "you were fighting" but that is not enough.
What happened precisely?

 



Sorry Dieter

It seems it's a problem with PUT_factory and __bobo_traverse__  (at 
least in the way I override them)
When I try to create an object FicheroYanged via FTP/WebDAV the object 
is not created and __bobo_traverse__ returns the default object and 
overrides its content


I think there are another part on zope to do traversed url's like I 
want: __bobo_before_publish__ or something like these (i need to search 
on the list because I know we talk about these in the past)


If you prefer, forget it at these moment and I make a better question later

Thanks Dieter and sorry for the void thread


--
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] (1 conflicts since startup at 2005-08-04T14:45:39)

2005-08-04 Thread Garito

Hi all!
We have:

Zope Version

(Zope 2.7.4-0, python 2.3.4, linux2)
Python Version

2.3.4 (#1, May 19 2005, 17:40:30) [GCC 3.3.5-20050130 (Gentoo 
3.3.5.20050130-r1, ssp-3.3.5.20050130-1, pie-8.7.7.

System Platform

linux2


and
Archetypes 1.3.2-final
CMF 1.4.7
Epoz 0.9.0

Our problem is we create some archetypes and in some parts of our 
structure if we try to create some object the computer cpu grows to 100% 
and raises


2005-08-04T15:01:02 INFO(0) ZODB conflict error at 
/VirtualHostBase/<>/createObject (1 conflicts 
since startup at 2005-08-04T14:45:39)


Has someone any idea to solve these issue?

On development time nothing of these occurs and when we go to production 
time these problem begins (for that these question is, for us, urgent)


Thank you very much

--
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] (1 conflicts since startup at 2005-08-04T14:45:39)

2005-08-05 Thread Garito

Dieter Maurer escribió:


Garito wrote at 2005-8-4 14:11 +0200:
 

Our problem is we create some archetypes and in some parts of our 
structure if we try to create some object the computer cpu grows to 100% 
and raises


2005-08-04T15:01:02 INFO(0) ZODB conflict error at 
/VirtualHostBase/<>/createObject (1 conflicts 
since startup at 2005-08-04T14:45:39)


Has someone any idea to solve these issue?
   



Not directly an idea but some hint:

 A long time ago (months, maybe even a year),
 I posted a patch that gives more informative error messages
 for "ConflictError".

 Search the archive, apply the patch and come back with
 the better message.


A search for "ConflictError" will give you hundreds of posts.
Many of them explain that "ConflictError" are a normal
artefact of the ZODB. Nothing to worry about, unless
you get too many...

 


Hi Dieter and thank you again
The problem that produce these error was a method acquired by an 
archetype but the data to calculate de algorithm is not acquirable by 
these archetype (I hope I explain myself)


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 )


[Zope] Zope 2.8.1 on Mac OS X tiger Server

2005-08-17 Thread Garito

Hi all!

Yesterday I install Zope 2.8.1 on a Mac OS X tiger Server and all goes ok

The only question I can't configure is the automatic boot up

I read some how-to's but they don't work

At /System/Library/StartupItems I create a folder called Zope with 2 files:

Zope with these contents:

#!/bin/sh

##
# Zope Web Application Server
##

. /etc/rc.common

StartService ()
{
   if [ "${ZOPESERVER=-NO-}" = "-YES-" ]; then
   ConsoleMessage "Starting Zope"
   /var/zope/sistes/bin/zopectl start
   fi
}

StopService ()
{
   ConsoleMessage "Stopping Zope"
   /var/zope/sistes/bin/zopectl stop
}

RestartService ()
{
   if [ "${ZOPESERVER=-NO-}" = "-YES-" ]; then
   ConsoleMessage "Restarting Zope"
   /var/zope/sistes/bin/zopectl restart
   fi
}

RunService "$1"

and StartupParameters.plist with these content:


http://www.apple.com/DTDs/PropertyList-1.0.dtd";>


Description
Zope web application server
OrderPreference
None
Provides

Zope Server

Requires

Web Server




With these 2 files zope doesn't start at boot time. For that question I 
try another StartupParameters.plist:


{
 Description = "Zope WebServer";
 Provides= ("Zope WebServer");
 Requires= ("Web Server");
 OrderPreference = "None";
 Messages =
 {
   start = "Starting Zope WebServer Service";
   stop  = "Stopping Zope WebServer Service";
 };
}

but It doesn't work too

Can anyone help me?

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] Zope 2.8.1 on Mac OS X tiger Server

2005-08-17 Thread Garito

Bernd Dorn escribió:


the following 3 problems

this line must be in /etc/hostconfig
ZOPESERVER=-YES-


Sorry I put these but I don't tell you




On 17.08.2005, at 13:03, Garito wrote:


Hi all!

Yesterday I install Zope 2.8.1 on a Mac OS X tiger Server and all  
goes ok


The only question I can't configure is the automatic boot up

I read some how-to's but they don't work

At /System/Library/StartupItems I create a folder called Zope with  2 
files:


Zope with these contents:



the 'Zope'  file must be executable in order to work

chmod +x Zope


Perfect, perhaps this is the problem






#!/bin/sh

##
# Zope Web Application Server
##

. /etc/rc.common

StartService ()
{
   if [ "${ZOPESERVER=-NO-}" = "-YES-" ]; then
   ConsoleMessage "Starting Zope"
   /var/zope/sistes/bin/zopectl start



typo? sistes == sites


no, hehe, my company's name (sistes)




   fi
}

StopService ()
{
   ConsoleMessage "Stopping Zope"
   /var/zope/sistes/bin/zopectl stop
}

RestartService ()
{
   if [ "${ZOPESERVER=-NO-}" = "-YES-" ]; then
   ConsoleMessage "Restarting Zope"
   /var/zope/sistes/bin/zopectl restart
   fi
}

RunService "$1"

and StartupParameters.plist with these content:


http://www.apple.com/DTDs/PropertyList-1.0.dtd";>


Description
Zope web application server
OrderPreference
None
Provides

Zope Server

Requires

Web Server




With these 2 files zope doesn't start at boot time. For that  
question I try another StartupParameters.plist:


{
 Description = "Zope WebServer";
 Provides= ("Zope WebServer");
 Requires= ("Web Server");
 OrderPreference = "None";
 Messages =
 {
   start = "Starting Zope WebServer Service";
   stop  = "Stopping Zope WebServer Service";
 };
}

but It doesn't work too

Can anyone help me?

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 )



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


Thank you Bernd
If these doesn't work I tell you



--
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] Zope 2.8.1 on Mac OS X tiger Server

2005-08-17 Thread Garito

Bernd Dorn escribió:


the following 3 problems

this line must be in /etc/hostconfig
ZOPESERVER=-YES-



On 17.08.2005, at 13:03, Garito wrote:


Hi all!

Yesterday I install Zope 2.8.1 on a Mac OS X tiger Server and all  
goes ok


The only question I can't configure is the automatic boot up

I read some how-to's but they don't work

At /System/Library/StartupItems I create a folder called Zope with  2 
files:


Zope with these contents:



the 'Zope'  file must be executable in order to work

chmod +x Zope




#!/bin/sh

##
# Zope Web Application Server
##

. /etc/rc.common

StartService ()
{
   if [ "${ZOPESERVER=-NO-}" = "-YES-" ]; then
   ConsoleMessage "Starting Zope"
   /var/zope/sistes/bin/zopectl start



typo? sistes == sites


   fi
}

StopService ()
{
   ConsoleMessage "Stopping Zope"
   /var/zope/sistes/bin/zopectl stop
}

RestartService ()
{
   if [ "${ZOPESERVER=-NO-}" = "-YES-" ]; then
   ConsoleMessage "Restarting Zope"
   /var/zope/sistes/bin/zopectl restart
   fi
}

RunService "$1"

and StartupParameters.plist with these content:


http://www.apple.com/DTDs/PropertyList-1.0.dtd";>


Description
Zope web application server
OrderPreference
None
Provides

Zope Server

Requires

Web Server




With these 2 files zope doesn't start at boot time. For that  
question I try another StartupParameters.plist:


{
 Description = "Zope WebServer";
 Provides= ("Zope WebServer");
 Requires= ("Web Server");
 OrderPreference = "None";
 Messages =
 {
   start = "Starting Zope WebServer Service";
   stop  = "Stopping Zope WebServer Service";
 };
}

but It doesn't work too

Can anyone help me?

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 )



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


Hi again!
Sorry but Zope is executable, perhaps another thing?
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 )


Re: [Zope] Zope 2.8.1 on Mac OS X tiger Server

2005-08-18 Thread Garito

Bernd Dorn escribió:



On 17.08.2005, at 20:22, Garito wrote:


Bernd Dorn escribió:



the following 3 problems

this line must be in /etc/hostconfig
ZOPESERVER=-YES-



On 17.08.2005, at 13:03, Garito wrote:



Hi all!

Yesterday I install Zope 2.8.1 on a Mac OS X tiger Server and  all  
goes ok


The only question I can't configure is the automatic boot up

I read some how-to's but they don't work

At /System/Library/StartupItems I create a folder called Zope  
with  2 files:


Zope with these contents:




the 'Zope'  file must be executable in order to work

chmod +x Zope





#!/bin/sh

##
# Zope Web Application Server
##

. /etc/rc.common

StartService ()
{
   if [ "${ZOPESERVER=-NO-}" = "-YES-" ]; then
   ConsoleMessage "Starting Zope"
   /var/zope/sistes/bin/zopectl start




typo? sistes == sites



   fi
}

StopService ()
{
   ConsoleMessage "Stopping Zope"
   /var/zope/sistes/bin/zopectl stop
}

RestartService ()
{
   if [ "${ZOPESERVER=-NO-}" = "-YES-" ]; then
   ConsoleMessage "Restarting Zope"
   /var/zope/sistes/bin/zopectl restart
   fi
}

RunService "$1"

and StartupParameters.plist with these content:


http://www.apple.com/DTDs/PropertyList-1.0.dtd";>


Description
Zope web application server
OrderPreference
None
Provides

Zope Server

Requires

Web Server




With these 2 files zope doesn't start at boot time. For that   
question I try another StartupParameters.plist:


{
 Description = "Zope WebServer";
 Provides= ("Zope WebServer");
 Requires= ("Web Server");
 OrderPreference = "None";
 Messages =
 {
   start = "Starting Zope WebServer Service";
   stop  = "Stopping Zope WebServer Service";
 };
}

but It doesn't work too

Can anyone help me?

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 )




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



Hi again!
Sorry but Zope is executable, perhaps another thing?
Any idea?

hm, have you set the effective user in zope.conf? you need this if  
you run zopectl as root


as root try to execute

/System/Library/StartupItems/Zope/Zope

from the commandline

and have a look what if something is looged into your event.log

without any messages i have no clue






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


Sorry but my Mac OS X skill are null

I try:

sudo /System/Library/StartupItems/Zope/Zope

but raises line 31: $1: unbound variable

now I supouse $1 will be StartService/StopService/RestarService

then I try:

sudo /System/Library/StartupItems/Zope/Zope StartService

but raises unknown argument: StartService

I another hand at Console there aren't any message about Zope on it

Sorry for my inexperience and 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] Zope 2.8.1 on Mac OS X tiger Server

2005-08-23 Thread Garito

Andrew Langmead escribió:


On Aug 18, 2005, at 1:19 PM, Garito wrote:


Sorry but my Mac OS X skill are null



I think you are in the unfortunate spot of of OS X where you are  
confronted with the ease of use of Unix and the ubiquity of the  
Macintosh.




I try:

sudo /System/Library/StartupItems/Zope/Zope

but raises line 31: $1: unbound variable

now I supouse $1 will be StartService/StopService/RestarService





You might want to take a look at some of Apple's documentation for  
creating its startup items, since it is significantly different than  
either the traditional Unix styles (both BSD and SysV)


<http://developer.apple.com/documentation/MacOSX/Conceptual/ 
BPSystemStartup/Articles/StartupItems.html>


Also, I would recommend against putting your startup items in /System/ 
Library/StartupItems, and suggest to use /Library/StartupItems  
instead. Everything in /System can be overwritten by OS upgrades, / 
Library is for a machine's local customizations.


What I believe you want in order to test your script is:

sudo /Library/StartupItems/Zope/Zope start


the RunService function will take the argument "start" , "stop", or  
"restart", and based on that, run either the function "StartService",  
"StopService", or "RestartService". All three functions need to  
exist, whether they are used or not.




Once you get that to succeed, you might want to try to see if this  
succeeeds:


sudo /sbin/SystemStarter  restart "Zope WebServer"

(or maybe "Zope Server", you seem to have changed it between plist  
revisions.)




Hi

I try sudo /System/Library/StartupItems/Zope/Zope start but nothing 
happend (nor on console)


but if I launch /var/zope/sistes/bin/zopectl start it works perfectly

I try to comment the if and fi lines but don't work

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 )


Re: [Zope] Zope 2.8.1 on Mac OS X tiger Server

2005-08-25 Thread Garito

Andrew Langmead escribió:



On Aug 23, 2005, at 6:24 AM, Garito wrote:

I try sudo /System/Library/StartupItems/Zope/Zope start but nothing  
happend (nor on console)


but if I launch /var/zope/sistes/bin/zopectl start it works perfectly

I try to comment the if and fi lines but don't work




I just want to make sure I point out to you, that little of this has  
to do with Zope itself, and most of the audience of this list knows  
little or cares little about the peculiarities of the MacOSX/Darwin  
init environment.



One piece of information that I now realize that I forgot to put in  
the previous message was that if you have the section "if [ "$ 
{ZOPESERVER=-NO-}" = "-YES-" ]; then" in your startup script, then  
you probably have to put a line in your /etc/hostconfig that says   
ZOPESERVER=-YES-. The bundles in /System/Library/StartupItems and / 
Library/StartupItems tell the machine how to start services and in  
what order, but the /etc/hostconfig file specifies which services are  
desired for a particular machine.


If you want to diagnose the shell script in /Library/StartupItems/ 
Zope/Zope, you might want to try to run it with the bourne shell's  
trace option, specified by the "-x" parameter.


sh -x /Library/StartupItems/Zope/Zope start


Sorry for the inconvenience but I don't know where to ask for these kind 
of problems

If I search on Google about these there are few responses and very vague

I type your sh -x /Library/StartItems/Zope/Zope start with these response:

macmini:~ garito$ sh -x /Library/StartupItems/Zope/Zope start
+ . /etc/rc.common
++ set -u
++ 
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/libexec:/System/Library/CoreServices

++ export PATH
++ . /etc/hostconfig
+++ AFPSERVER=-NO-
+++ AUTHSERVER=-NO-
+++ AUTOMOUNT=-YES-
+++ CUPS=-AUTOMATIC-
+++ NFSLOCKS=-AUTOMATIC-
+++ NISDOMAIN=-NO-
+++ TIMESYNC=-YES-
+++ QTSSWEBADMIN=-NO-
+++ WEBSERVER=-YES-
+++ SMBSERVER=-YES-
+++ SNMPSERVER=-NO-
+++ SPOTLIGHT=-YES-
+++ QTSSRUNSERVER=-NO-
+++ TIMESERV=-NO-
+++ WEBPERFCACHESERVER=-NO-
+++ ARDAGENT=-YES-
+++ SOFTWAREUPDATESERVER=-NO-
+++ HOSTNAME=www.sistes.net
+++ IPFILTER=-NO-
+++ MAILMAN=-YES-
+++ CRASHREPORTER=-YES-
+++ ZOPESERVER=-YES-
+ RunService start
+ StartService
+ '[' -YES- = -YES- ']'
+ ConsoleMessage 'Starting Zope'
you must be root to run ConsoleMessage
+ /var/zope/sistes/bin/zopectl start
. daemon process started, pid=22593

the pid is asigned but Zope doesn't work even if I delete the 
ConsoleMessages


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] I still can't load Zope at start up on a Mac OS X Server

2005-09-24 Thread Garito

Hi all

Now I'm trying launchd method

I have:
lanunchd[309]: ZopeSistes: respawning too quickly! throtting
or
exits with exit code: 1
errors at system.log (it depends how I launch zope)

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 )


Re: [***SPAM*** Score/Req: 04.00/04.00] Re: [Zope] I still can't load Zope at start up on a Mac OS X Server

2005-09-26 Thread Garito

Chris Withers escribió:


Hi,

Garito wrote:


Hi all

Now I'm trying launchd method

I have:
lanunchd[309]: ZopeSistes: respawning too quickly! throtting
or
exits with exit code: 1
errors at system.log (it depends how I launch zope)



Yep, your Zope is dying. Try just using runzope with debug-mode on in 
zope.conf and maybe it'll give you an idea of what's failing...


cheers,

Chris


Sorry but if I launch it manually (zopectl start) it works fine

cheers!

--
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] Parse a XML file in Zope, zopeXMLmethods Product not working in Zope 2.8.1

2005-09-26 Thread Garito

Martin Koekenberg escribió:


Hello,
 
I've a xml file on the file system (the source is on an other 
webserver and the download is scheduled). How ca I parse this file 
with a xslt in Zope.  ZopeXMLmethods isn't working annymore in Zope 2.8.1.
 
Does annyone knows a Product of method to parse xml in Zope without 
the zopeXMLmethods product ?
 
Regards,
 
Martin Koekenberg




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


Hi!
I use xml.dom.minidom
Alternatives?

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] Error Type: ExpatError

2005-10-11 Thread Garito

Hi all

I try to read an xml file using
from xml.dom.minidom import parseString

It works fine but when I push the reload button raise these error

Error Type: ExpatError
Error Value: no element found: line 1, column 0

These error is intermittence

These is the trace back any idea?

Traceback (innermost last):

Module ZPublisher.Publish, line 113, in publish
111 |  missing_name,
112 |  dont_publish_class,
113>|  request, bind=1)
114 |
115 |if result is not response:

Module ZPublisher.mapply, line 88, in mapply
086 |
087 |args=tuple(args)
088>|if debug is not None: return debug(object,args,context)
089 |else: return object(*args)

Module ZPublisher.Publish, line 40, in call_object
038 |
039 |def call_object(object, args, request):
040>|result=apply(object,args) # Type s to step into published object.
041 |return result
042 |

Module Shared.DC.Scripts.Bindings, line 311, in __call__
309 |def __call__(self, *args, **kw):
310 |'''Calls the script.'''
311>|return self._bindAndExec(args, kw, None)
312 |
313 |def __render_with_namespace__(self, namespace):

Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec
346 |exec bindcode
347 |bound_data = bound_data[0]
348>|return self._exec(bound_data, args, kw)
349 |finally:
350 |security.removeContext(self)

Module Products.PythonScripts.PythonScript, line 323, in _exec
321 |f = new.function(fcode, g, None, fadefs)
322 |
323>|result = f(*args, **kw)
324 |if keyset is not None:
325 |# Store the result in the cache.

Module None, line 9, in Lanzar
  -- Line 9
006 |if 'Camino' not in args: args['Camino'] = traverse_subpath
007 |if 'Usuario' not in args: args['Usuario'] = str(context.Dame('usuario'))
008>|args = context.ObtenerNodo(args)
009 |
010 |if args is None: 
Module Products.Yanged.SitioYanged, line 268, in ObtenerNodo

266 |   
267 |   if 'NodoRaiz' not in args:
268>|args['NodoRaiz'] = 
parseString(self.Dame({'nombre': self.getId() + '.mm'}).index_html(self.REQUEST, 
self.REQUEST.RESPONSE))
269 |   if 'Nodos' not in args: args['Nodos'] = 
args['NodoRaiz'].childNodes
270 |   if 'Nivel' not in args: args['Nivel'] = 0

Module xml.dom.minidom, line 1929, in parseString
1927 |if parser is None:
1928 |from xml.dom import expatbuilder
1929>|return expatbuilder.parseString(string)
1930 |else:
1931 |from xml.dom import pulldom

Module xml.dom.expatbuilder, line 940, in parseString
938 |else:
939 |builder = ExpatBuilder()
940>|return builder.parseString(string)
941 |
942 |

Module xml.dom.expatbuilder, line 223, in parseString
221 |parser = self.getParser()
222 |try:
223>|    parser.Parse(string, True)
224 |self._setup_subset(string)
225 |except ParseEscape:
ExpatError: no element found: line 1, column 0



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] Error Type: ExpatError

2005-10-12 Thread Garito

Chris Withers escribió:

Get a packet sniffer going, looks like something is missing from the 
request when you hit reload!


cheers,

Chris

Garito wrote:


Hi all

I try to read an xml file using
from xml.dom.minidom import parseString

It works fine but when I push the reload button raise these error

Error Type: ExpatError
Error Value: no element found: line 1, column 0

These error is intermittence

These is the trace back any idea?

Traceback (innermost last):

Module ZPublisher.Publish, line 113, in publish
111 |  missing_name,
112 |  dont_publish_class,
113>|  request, bind=1)
114 |
115 |if result is not response:

Module ZPublisher.mapply, line 88, in mapply
086 |
087 |args=tuple(args)
088>|if debug is not None: return debug(object,args,context)
089 |else: return object(*args)

Module ZPublisher.Publish, line 40, in call_object
038 |
039 |def call_object(object, args, request):
040>|result=apply(object,args) # Type s to step into 
published object.

041 |return result
042 |

Module Shared.DC.Scripts.Bindings, line 311, in __call__
309 |def __call__(self, *args, **kw):
310 |'''Calls the script.'''
311>|return self._bindAndExec(args, kw, None)
312 |
313 |def __render_with_namespace__(self, namespace):

Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec
346 |exec bindcode
347 |bound_data = bound_data[0]
348>|return self._exec(bound_data, args, kw)
349 |finally:
350 |security.removeContext(self)

Module Products.PythonScripts.PythonScript, line 323, in _exec
321 |f = new.function(fcode, g, None, fadefs)
322 |
323>|result = f(*args, **kw)
324 |if keyset is not None:
325 |# Store the result in the cache.

Module None, line 9, in Lanzar
  -- Line 9
006 |if 'Camino' not in args: args['Camino'] = traverse_subpath
007 |if 'Usuario' not in args: args['Usuario'] = 
str(context.Dame('usuario'))

008>|args = context.ObtenerNodo(args)
009 |
010 |if args is None: Module Products.Yanged.SitioYanged, line 268, 
in ObtenerNodo

266 |   267 |if 'NodoRaiz' not in args:
268>|args['NodoRaiz'] = parseString(self.Dame({'nombre': 
self.getId() + '.mm'}).index_html(self.REQUEST, self.REQUEST.RESPONSE))
269 |if 'Nodos' not in args: args['Nodos'] = 
args['NodoRaiz'].childNodes

270 |if 'Nivel' not in args: args['Nivel'] = 0

Module xml.dom.minidom, line 1929, in parseString
1927 |if parser is None:
1928 |from xml.dom import expatbuilder
1929>|return expatbuilder.parseString(string)
1930 |else:
1931 |from xml.dom import pulldom

Module xml.dom.expatbuilder, line 940, in parseString
938 |else:
939 |builder = ExpatBuilder()
940>|return builder.parseString(string)
941 |
942 |

Module xml.dom.expatbuilder, line 223, in parseString
221 |parser = self.getParser()
222 |try:
223>|parser.Parse(string, True)
224 |self._setup_subset(string)
225 |except ParseEscape:
ExpatError: no element found: line 1, column 0



Thanks!




Hi Chris!
Could you be a little more concrete?

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] Error Type: ExpatError

2005-10-12 Thread Garito

Alan Milligan escribió:


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Garito wrote:
 


Chris Withers escribió:

   


Get a packet sniffer going, looks like something is missing from the
request when you hit reload!

cheers,

Chris

Garito wrote:

 


Hi all

I try to read an xml file using
from xml.dom.minidom import parseString

It works fine but when I push the reload button raise these error

Error Type: ExpatError
Error Value: no element found: line 1, column 0

These error is intermittence

These is the trace back any idea?

Traceback (innermost last):

Module ZPublisher.Publish, line 113, in publish
111 |  missing_name,
112 |  dont_publish_class,
113>|  request, bind=1)
114 |
115 |if result is not response:

Module ZPublisher.mapply, line 88, in mapply
086 |
087 |args=tuple(args)
088>|if debug is not None: return debug(object,args,context)
089 |else: return object(*args)

Module ZPublisher.Publish, line 40, in call_object
038 |
039 |def call_object(object, args, request):
040>|result=apply(object,args) # Type s to step into
published object.
041 |return result
042 |

Module Shared.DC.Scripts.Bindings, line 311, in __call__
309 |def __call__(self, *args, **kw):
310 |'''Calls the script.'''
311>|return self._bindAndExec(args, kw, None)
312 |
313 |def __render_with_namespace__(self, namespace):

Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec
346 |exec bindcode
347 |bound_data = bound_data[0]
348>|return self._exec(bound_data, args, kw)
349 |finally:
350 |security.removeContext(self)

Module Products.PythonScripts.PythonScript, line 323, in _exec
321 |f = new.function(fcode, g, None, fadefs)
322 |
323>|result = f(*args, **kw)
324 |if keyset is not None:
325 |# Store the result in the cache.

Module None, line 9, in Lanzar
 -- Line 9
006 |if 'Camino' not in args: args['Camino'] = traverse_subpath
007 |if 'Usuario' not in args: args['Usuario'] =
str(context.Dame('usuario'))
008>|args = context.ObtenerNodo(args)
009 |
010 |if args is None: Module Products.Yanged.SitioYanged, line 268,
in ObtenerNodo
266 |   267 |if 'NodoRaiz' not in args:
268>|args['NodoRaiz'] = parseString(self.Dame({'nombre':
self.getId() + '.mm'}).index_html(self.REQUEST, self.REQUEST.RESPONSE))
269 |if 'Nodos' not in args: args['Nodos'] =
args['NodoRaiz'].childNodes
270 |if 'Nivel' not in args: args['Nivel'] = 0

Module xml.dom.minidom, line 1929, in parseString
1927 |if parser is None:
1928 |from xml.dom import expatbuilder
1929>|return expatbuilder.parseString(string)
1930 |else:
1931 |from xml.dom import pulldom

Module xml.dom.expatbuilder, line 940, in parseString
938 |else:
939 |builder = ExpatBuilder()
940>|return builder.parseString(string)
941 |
942 |

Module xml.dom.expatbuilder, line 223, in parseString
221 |parser = self.getParser()
222 |try:
223>|parser.Parse(string, True)
224 |self._setup_subset(string)
225 |except ParseEscape:
ExpatError: no element found: line 1, column 0



Thanks!

   


Hi Chris!
Could you be a little more concrete?

Thanks!

   


You do realise that pyexpat has a limitation of 8192 bytes between xml
tags - if your parse string is longer than this, it will fail.  You can
recompile your expat parser to accept larger sizes, but this drastically
affects performance.

ALan

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFDTQhkCfroLk4EZpkRAjklAJ9VBl9jjzKvRBr9gN3mcGYePpxYSACgtZkZ
h/hu5V2gGxxKSp8JUk1WpIw=
=b7+S
-END PGP SIGNATURE-
 


Buff! Complicate

There are any out-of-the-box solution on Zope?

I mean: there are any other xml library on a standard Zope installation?

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] Error Type: ExpatError

2005-10-12 Thread Garito

Fred Drake escribió:


On 10/12/05, Alan Milligan <[EMAIL PROTECTED]> wrote:
 


And you are allowed to be.   It is a bit strange in an XML-RPC dialog to
drop out to http occasionally ...
   



Actually, I'd expect large files over XML-RPC to be handled by sending
a URL, and have the client GET the file separately.  But then, I have
weird ideas sometimes.

 


This has absolutely nothing on them actually implementing a lot of their
XML-RPC using HTTP GET, when the protocol clearly states it must be an
HTTP POST ...

(I imagine this is a performance enhancement in that you needn't
xml-parse the payload ...)
   



Unless you can make the server a simple front-end to a pile-o-files on
disk, I don't see any benefit.  There's no issue for the client, only
the server, since they want to limit the number of machines they stick
behind the load-balancer.

Ok, I think we've agreed this isn't an Expat issue, but a bug in
RedHat code that's unrelated to using XML in Zope.  The Expat-based
minidom-builder in recent versions of Python is pretty well tested in
practice.


 -Fred

--
Fred L. Drake, Jr.
"Society attacks early, when the individual is helpless." --B.F. Skinner
___
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 )
 


Hi all!
I use an XML file because I like to use freemind like editor
I think perhaps could be better if I could transform it to a good Zope 
object instead of XML but I don't know how to make zope ftp server serve 
this file like a method


I know how to read the file (PUT_factory method) but I want freemind to 
read a created file


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


Re: [Zope] Error Type: ExpatError

2005-10-12 Thread Garito

Fred Drake escribió:


On 10/12/05, Garito <[EMAIL PROTECTED]> wrote:
 


Alan Milligan escribió:
   


You do realise that pyexpat has a limitation of 8192 bytes between xml
tags - if your parse string is longer than this, it will fail.  You can
recompile your expat parser to accept larger sizes, but this drastically
affects performance.
 



Ok, I don't know just where this assertion comes from; I can't
reproduce this at all with the pyexpat in Python 2.3.5 or 2.4.2.  I've
attached a short test program that verifies pyexpat's behavior.


 -Fred

--
Fred L. Drake, Jr.
"Society attacks early, when the individual is helpless." --B.F. Skinner
 




"""Test asserted size limitation of text between tags for pyexpat.

"""
__docformat__ = "reStructuredText"

from xml.parsers import expat

COUNT = 8192 * 10
SAMPLE_TEXT = "abc" + ("-" * COUNT) + "xyz"


buffer = []

def characters(text):
   buffer.append(text)

p = expat.ParserCreate()
p.CharacterDataHandler = characters
p.Parse(SAMPLE_TEXT, True)

text = u"".join(buffer)

assert len(text) == (COUNT + 6)
assert text.startswith(u"abc---")
assert text.endswith(u"---xyz")

# This is expected to print "abc--- ---xyz"
print text[:6], text[-6:]
 


I run your test but no error was raised

I attach an xml file like I use and who raise the error, perhaps these 
could help to reproduce the error


This file is generated by freemind 
(http://freemind.sourceforge.net/wiki/index.php/Main_Page)


Thank you very much for your help

--
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] Error Type: ExpatError

2005-10-12 Thread Garito

Alan Milligan escribió:


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Garito wrote:
 


Fred Drake escribió:

   


On 10/12/05, Alan Milligan <[EMAIL PROTECTED]> wrote:


 


And you are allowed to be.   It is a bit strange in an XML-RPC dialog to
drop out to http occasionally ...
 
   


Actually, I'd expect large files over XML-RPC to be handled by sending
a URL, and have the client GET the file separately.  But then, I have
weird ideas sometimes.



 


This has absolutely nothing on them actually implementing a lot of their
XML-RPC using HTTP GET, when the protocol clearly states it must be an
HTTP POST ...

(I imagine this is a performance enhancement in that you needn't
xml-parse the payload ...)
 
   


Unless you can make the server a simple front-end to a pile-o-files on
disk, I don't see any benefit.  There's no issue for the client, only
the server, since they want to limit the number of machines they stick
behind the load-balancer.

Ok, I think we've agreed this isn't an Expat issue, but a bug in
RedHat code that's unrelated to using XML in Zope.  The Expat-based
minidom-builder in recent versions of Python is pretty well tested in
practice.


-Fred

--
Fred L. Drake, Jr.
"Society attacks early, when the individual is helpless." --B.F. Skinner
___
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 )


 


Hi all!
I use an XML file because I like to use freemind like editor
I think perhaps could be better if I could transform it to a good Zope
object instead of XML but I don't know how to make zope ftp server serve
this file like a method

I know how to read the file (PUT_factory method) but I want freemind to
read a created file

Some idea?

Thanks!

   


I've no idea what freemind is, but have you installed ExternalEditor??
With this you should be able to connect any editor you require.  It
works by overriding the PUT method, popularised with both ftp and web-dav.

Alan
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFDTUosCfroLk4EZpkRAnfkAKC0BFcz3QFO1T/Uc2kpurKjNnKenACgv6vd
Q2rEdQfogS5EA9CE0w8sAf8=
=N+ql
-END PGP SIGNATURE-
 


Sorry for my english
I would like to create a method on my container that will be a file by FTP
With these I could transform XML to a Zope object better than XML

I will use PUT_factory to read the XML file but I don't know the write 
method


Could any one put an example (if these is possible)?

If these FTP behaviour is not possible I think the better solution is 
maintain the XML file. isn't it?


Thanks

PD: freemind link: http://freemind.sourceforge.net/wiki/index.php/Main_Page

--
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] Error Type: ExpatError

2005-10-12 Thread Garito

Alan Milligan escribió:


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Garito wrote:
 


Alan Milligan escribió:

Garito wrote:


   


Fred Drake escribió:

 

 


On 10/12/05, Alan Milligan <[EMAIL PROTECTED]> wrote:


   

   


And you are allowed to be.   It is a bit strange in an XML-RPC
dialog to
drop out to http occasionally ...

 
 


Actually, I'd expect large files over XML-RPC to be handled by sending
a URL, and have the client GET the file separately.  But then, I have
weird ideas sometimes.



   

   


This has absolutely nothing on them actually implementing a lot of
their
XML-RPC using HTTP GET, when the protocol clearly states it must be an
HTTP POST ...

(I imagine this is a performance enhancement in that you needn't
xml-parse the payload ...)

 
 


Unless you can make the server a simple front-end to a pile-o-files on
disk, I don't see any benefit.  There's no issue for the client, only
the server, since they want to limit the number of machines they stick
behind the load-balancer.

Ok, I think we've agreed this isn't an Expat issue, but a bug in
RedHat code that's unrelated to using XML in Zope.  The Expat-based
minidom-builder in recent versions of Python is pretty well tested in
practice.


-Fred

--
Fred L. Drake, Jr.
"Society attacks early, when the individual is helpless." --B.F.
Skinner
___
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 )


   
   


Hi all!
I use an XML file because I like to use freemind like editor
I think perhaps could be better if I could transform it to a good Zope
object instead of XML but I don't know how to make zope ftp server serve
this file like a method

I know how to read the file (PUT_factory method) but I want freemind to
read a created file

Some idea?

Thanks!

 
 


I've no idea what freemind is, but have you installed ExternalEditor??
With this you should be able to connect any editor you require.  It
works by overriding the PUT method, popularised with both ftp and
web-dav.

Alan
   



 


Sorry for my english
   


Heh, I still don't quite understand what you want ...
 


I would like to create a method on my container that will be a file by FTP
With these I could transform XML to a Zope object better than XML
   



You are aware that you can save arbitrary XML as ZPT with a content-type
of 'text/xml' ...
If you install ExternalEditor, you can edit it with whatever tool you want.

 


I will use PUT_factory to read the XML file but I don't know the write
method
   


Don't you mean GET here - PUT is the write method.

Alan

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFDTVTUCfroLk4EZpkRAnzkAJ4ofhPS1vCRwInPdMtMoNZbW55xeQCfYRqW
K0F3qROSptQ9EE8u9aws2/Q=
=dMcF
-END PGP SIGNATURE-
 

Can you put here an example about how to do what I need to do with the 
PUT method?


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] Error Type: ExpatError

2005-10-12 Thread Garito

Fred Drake escribió:


On 10/12/05, Garito <[EMAIL PROTECTED]> wrote:
 


I run your test but no error was raised
   



Right.

 


I attach an xml file like I use and who raise the error, perhaps these
could help to reproduce the error
   



If you replaced SAMPLE_TEXT in the test script with this data, an
error would indeed be raised, because it's testing that it got the
data from the sample text.  The test was intended to demonstrate that
pyexpat can handle more than 8192 characters of data between tags, and
does so.

I was able to verify well-formedness of your document, and load it
into minidom from a file without problems, using Python 2.3.5 and
2.4.2.  I need more information about what went wrong for you before I
can help with that; the error you received suggests that there was no
input at all.


 -Fred

--
Fred L. Drake, Jr.
"Society attacks early, when the individual is helpless." --B.F. Skinner
 



Hi again Fred!

What do you need?

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] Error Type: ExpatError

2005-10-13 Thread Garito

Fred Drake escribió:


On 10/12/05, Garito <[EMAIL PROTECTED]> wrote:
 


What do you need?
   



In this bit of code:

Module Products.Yanged.SitioYanged, line 268, in ObtenerNodo
266 |
267 |   if 'NodoRaiz' not in args:
268>|   args['NodoRaiz'] =
parseString(self.Dame({'nombre': self.getId() +
'.mm'}).index_html(self.REQUEST, self.REQUEST.RESPONSE))
269 |   if 'Nodos' not in args: args['Nodos'] =
args['NodoRaiz'].childNodes
270 |   if 'Nivel' not in args: args['Nivel'] = 0

The expression

   self.Dame({'nombre': self.getId() + '.mm'})

is providing something that's being passed to the XML parser (the
parseString() function).  That string is the data that's in question;
if you can get that string and send it to me (as a file attachment,
preferably), I'll try to figure out what's happening.  The "Yanged"
product I've never heard of, and don't know anything about its code. 
But I know something about the XML parser being used.  :-)



 -Fred

--
Fred L. Drake, Jr.
"Society attacks early, when the individual is helpless." --B.F. Skinner
 


Hi again!
self.Dame({'nombre': self.getId() + '.mm'})

Dame is a function that returns a ZCatalog query where nombre is an index

Then this function return a modified File object (the modification 
constist make File CatalogAware)


This File object returns the text of the last attachment I send you some 
mails ago


Yanged is the product I'm developing

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] Error Type: ExpatError

2005-10-13 Thread Garito

Fred Drake escribió:


On 10/13/05, Garito <[EMAIL PROTECTED]> wrote:
 


self.Dame({'nombre': self.getId() + '.mm'})

Dame is a function that returns a ZCatalog query where nombre is an index
   


...
 


This File object returns the text of the last attachment I send you some
mails ago
   



The index_html() method returns the freemind XML?  Interesting.

What version of Python are you using?  Do you have PyXML installed? 
If so, what version are you using?



 -Fred

--
Fred L. Drake, Jr.
"Society attacks early, when the individual is helpless." --B.F. Skinner
 

A File object returns the content of the file if you call index_html() I 
don't know if is the best way (if not please point me!)

My development systems is:

Windows XP Pro
Python 2.3.5
Zope 2.8.0

I'm not conscious about install PyXML then I reply No to your question 
about it


Thanks a lot, Fred, for your help

--
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] [OT] ParsedXML dev mail list

2005-10-19 Thread Garito

Hi all

Sorry for the off topic but I try to subscribe to ParsedXML dev mail 
list but I can't (mail list doesn't exists)


Anyone knows where is it?

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] [OT] ParsedXML dev mail list

2005-10-23 Thread Garito

Fred Drake escribió:


On 10/21/05, Chris Withers <[EMAIL PROTECTED]> wrote:
 


Garito wrote:
   


Sorry for the off topic but I try to subscribe to ParsedXML dev mail
list but I can't (mail list doesn't exists)
 


Doesn't look like it. Is ParsedXML an Infrae or a Zope Corp product?

You could always try asking about your problem on this list...
   



It was originally a Zope Corp product, and still lives in the zope.org
CVS.  I don't think anyone here is currently using it for anything,
though.

There is a zope-xml list that came into existance back when we were
developing that, but its been nothing but spambait for the past couple
of years.  It should probably be retired.


 -Fred

--
Fred L. Drake, Jr.
"Society attacks early, when the individual is helpless." --B.F. Skinner
 



Ok!
My question is:

How can I create a ElementAttributePath class?

In ElementIdPath I see how ParsedXML transform 
http://server:port/XmlObject/0/1/2 into a path to DOM but I need the 
same behaviour but with another attributes


How can I make these?

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: [***SPAM*** Score/Req: 10.41/04.00] Re: [Zope] Leave the ivory tower now!

2006-01-09 Thread Garito
p://mail.zope.org/mailman/listinfo/zope-announce

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


Well, I don't use DTML for anything

I thing DTML and ZClasses will disapear someday but forget these words 
because there are DTML and ZClasses fans on the list


Sorry!

--
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] TinyMCE

2006-01-23 Thread Garito

Peter Bengtsson escribió:

Hi all,
Are there any open source efforts in integrating TinyMCE with Zope
similar to Kupu?
If not, I might actually give it a go.

--
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 )
  
If you create a easy to install and use product and we could use it like 
epoz (as easy) I will use it


Don't like kupu because is very difficult to install and very very 
difficult to use

Don't like epoz because is incomplete

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] TinyMCE

2006-01-24 Thread Garito

Chris Withers escribió:

Garito wrote:

Don't like kupu because is very difficult to install and very very 
difficult to use


I find that a suprising statement...

What problems did you experience?

cheers,

Chris


Hi, Chris!
I ask to the list some months ago but no solution was proposed (at least 
not a good one for me)
I try to install it and use but the behavior of kupu is, in my opinion, 
unacceptable for my needs


I'm working on a framework where the most important question is easyness 
and kupu doesn't meet these condition


I need a WYSIWYG editor to override some TextAreaField from Formulator 
to render WYSIWYG


Kupu is hard to install and hard to configure like I need

For that, I'm waiting for someone who need something like me or do it 
for myself when I have a moment free


Sorry

--
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] TinyMCE

2006-01-24 Thread Garito

J Cameron Cooper escribió:

Garito wrote:

Chris Withers escribió:


Garito wrote:

Don't like kupu because is very difficult to install and very very 
difficult to use



I find that a suprising statement...

What problems did you experience?

cheers,

Chris


Hi, Chris!
I ask to the list some months ago but no solution was proposed (at 
least not a good one for me)
I try to install it and use but the behavior of kupu is, in my 
opinion, unacceptable for my needs


I'm working on a framework where the most important question is 
easyness and kupu doesn't meet these condition


I need a WYSIWYG editor to override some TextAreaField from 
Formulator to render WYSIWYG


Kupu is hard to install and hard to configure like I need

For that, I'm waiting for someone who need something like me or do it 
for myself when I have a moment free


I think they'd really like details. What problems do you encounter on 
install? What sort of configuration do you want to do that is difficult?


I'm afraid "easiness" is not set explicitly.

--jcc

I have some problems to create a data-centric kupu

The default behaviour is to edit a page with the editor but I need to 
use kupu on a form, perhaps with more than one editor per form


I think I can use kupu data-centered instead of page-centered isn't it?

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] TinyMCE

2006-01-25 Thread Garito

Chris Withers escribió:

Garito wrote:
The default behaviour is to edit a page with the editor but I need to 
use kupu on a form, perhaps with more than one editor per form


I think I can use kupu data-centered instead of page-centered isn't it?


Try looking at how kupu is used in Plohn, where there can be more than 
one editor per form...


cheers,

Chris


Yeah!
I read the documentation of the new version

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] Force ZCatalog to UTF-8

2006-03-10 Thread Garito

Hi all!

How can I force ZCatalog to use only unicode strings (UTF-8)?

I'm trying to change all zope to use these charset. For that I install 
Zope 2.9.1 and I change on zope.conf:


rest-input-encoding utf-8
rest-output-encoding utf-8
default-zpublisher-encoding utf-8

but ZCatalog don't catalog unicode if the string is not an unicode 
string (at least I think so)


Any idea?

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 )


[Zope] kupu drawers

2006-03-27 Thread Garito

Hi!
I try to create a image library for the image drawer but when I click on 
the drawer button an error is raise:


this.shared.xmldata.setProperty is not a function

I supouse that the error is raised because the xml is incorrect but I 
can't see where


Can you help me?

This is the XML:




http://yanged:9180/EspaciosYanged/Huete/huete.cc/Carpeta 
Imagenes/Ver/Galeria
Galeria de fotos
http://yanged:9180/EspaciosYanged/Huete/huete.cc/Carpeta 
Imagenes/Ver/Galeria

http://yanged:9180/EspaciosYanged/Huete/huete.cc/Imagenes/CarpetaImagenes.png

http://yanged:9180/EspaciosYanged/Huete/huete.cc/Carpeta 
Imagenes/Ver/Imagenes
Imagenes de la web
http://yanged:9180/EspaciosYanged/Huete/huete.cc/Carpeta 
Imagenes/Ver/Imagenes

http://yanged:9180/EspaciosYanged/Huete/huete.cc/Imagenes/CarpetaImagenes.png



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] Re: kupu drawers

2006-03-28 Thread Garito




Duncan Booth escribió:

  Garito wrote:

  
  
this.shared.xmldata.setProperty is not a function

I supouse that the error is raised because the xml is incorrect but I 
can't see where


  
  
I think this could happen if you gave the wrong content-type for your XML. 
If the browser doesn't realise that it is supposed to be XML then it won't 
bother parsing it. Kupu trunk has code to check for this and build a DOM if 
the browser hasn't bothered, but earlier releases (such as 1.3.x) don't.

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

Hi Duncan!
Thank you for your interest

I use Firefox with FireBug and this is the result of the try to load
the XML file on kupu (after that is when the error is raised):


  

  onreadystatechange
  [xpconnect wrapped nsIOnReadyStateChangeHandler]


  channel
  [xpconnect wrapped nsIChannel]


  readyState
  4


  status
  200


  responseXML
  [object
XMLDocument]


  responseText
  
 
http://yanged:9180/EspaciosYanged/Huete/huete.cc/Carpeta
Imagenes/Ver/Galeria Galeria de
fotos
http://yanged:9180/EspaciosYanged/Huete/huete.cc/Carpeta
Imagenes/Ver/Galeria
http://yanged:9180/EspaciosYanged/Huete/huete.cc/Imagenes/CarpetaImagenes.png

http://yanged:9180/EspaciosYanged/Huete/huete.cc/Carpeta
Imagenes/Ver/Imagenes Imagenes de la
web
http://yanged:9180/EspaciosYanged/Huete/huete.cc/Carpeta
Imagenes/Ver/Imagenes
http://yanged:9180/EspaciosYanged/Huete/huete.cc/Imagenes/CarpetaImagenes.png


  


  statusText
  OK


  multipart
  false


  onload
  null


  onerror
  null


  onprogress
  null


  send
  function send() { [native code]
}


  open
  function (method, url, sync) {
FireBug.httpOpenWrapper(this, context, win, method, url, sync);
}


  addEventListener
  function addEventListener() { [native code]
}


  removeEventListener
  function removeEventListener() { [native code]
}


  abort
  function abort() { [native code]
}


  getAllResponseHeaders
  function getAllResponseHeaders() { [native
code]
}


  getResponseHeader
  function getResponseHeader() { [native code]
}


  setRequestHeader
  function setRequestHeader() { [native code]
}


  overrideMimeType
  function overrideMimeType() { [native code]
}


  dispatchEvent
  function dispatchEvent() { [native code]
}


  getInterface
  function getInterface() { [native code]
}

  


I think Zope is returning XML isn't it?
Thank you very much!!
-- 
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] Css product

2006-04-12 Thread Garito

Hi all!
Do you know any product for css that works with zope 2.9.1?

I try to use ZStyleSheet product but seems doesn't work on this version 
of Zope


What I'm trying to know is all the styles on my css objects (or files) 
to pass them to the WYSIWYG editor


Is this possible?

Thanks in advance!

--
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 Upload

2006-06-13 Thread Garito

Hi all!
I try to use script.aculo.us library to create an AJAX website

My question will be:

Did you created any AJAX website with Zope and file upload? How?

Thanks a lot an sorry if this question is an off-topic

--
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] Override members values

2006-07-09 Thread Garito

Hi all!
I need to override the value of some members of my product

I think the correct way was __getattr__ function but I read some list's 
messages telling to use __getattr__ only if you don't have other way


How can I override only the value of some dynamic members?

I call dynamic members to the members that the user adds (with a 
property or an object)


Why?

Because I would like things like:

Object.member1 -> 1 (if you are a manager)
Object.member1 -> 2 (if you are a normal user)

or

Object.member1 -> 1 (for firefox users)
Object.member1 -> 2 (for ie users)

Where member1 is a property at property manager (for example)

Thank so much!

--
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] Override members values

2006-07-10 Thread Garito

Andreas Jung escribió:



--On 10. Juli 2006 08:38:15 +0200 Garito <[EMAIL PROTECTED]> wrote:


Hi all!
I need to override the value of some members of my product

I think the correct way was __getattr__ function but I read some list's
messages telling to use __getattr__ only if you don't have other way


The standard Zope users objects don't provide an API for additional 
attributes. CMF/Plone provide such support through portal_memberdata.




How can I override only the value of some dynamic members

I call dynamic members to the members that the user adds (with a 
property

or an object)



What are dynamic members? This is not a term used in the Zope world.

-aj
I would like to pre-process the member. A dynamic member (sorry for the 
term) is pre-processed member


I would like to create some properties like:

object.member1 = "[/some/path]"

but I would like to retrive the content of /some/path when I'm asking 
for object.member1


--
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] Override members values

2006-07-10 Thread Garito

Andreas Jung escribió:



--On 10. Juli 2006 09:07:58 +0200 Garito <[EMAIL PROTECTED]> wrote:


Andreas Jung escribió:



--On 10. Juli 2006 08:38:15 +0200 Garito <[EMAIL PROTECTED]> wrote:


Hi all!
I need to override the value of some members of my product

I think the correct way was __getattr__ function but I read some 
list's

messages telling to use __getattr__ only if you don't have other way


The standard Zope users objects don't provide an API for additional
attributes. CMF/Plone provide such support through portal_memberdata.



How can I override only the value of some dynamic members

I call dynamic members to the members that the user adds (with a
property
or an object)



What are dynamic members? This is not a term used in the Zope world.

-aj

I would like to pre-process the member. A dynamic member (sorry for the
term) is pre-processed member


pre-process?



I would like to create some properties like:

object.member1 = "[/some/path]"


members? In the Zope context we talk of "users". "members" are a CMF 
term.

And users aren't attributes of objects.

Really no idea what you want to achive...

-aj

Hi again!
Sorry for my vocabulary

I try again:

I have a property on the property manager called member1 with a value of 
"[/some/path]"


User1 ask for this property. We calculate the real value for /some/path 
for these user: 1
User2 ask for this property. We calculate the real value for /some/path 
for these user: 2


I have a property on the property manager called member2 with a value of 
"[a reference to the calculator]"


A user ask for this property from his firefox. We calculate the real 
value for the reference for this browser: 
Another user ask for this property from his ie. We calculate the real 
value for the reference for this browser: 


I would like to change the "accessor" for any property in my Zope product

How can I?

Thank you and sorry for my poor english expression

--
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] Override members values

2006-07-10 Thread Garito

Jonathan escribió:


- Original Message - From: "Garito" <[EMAIL PROTECTED]>

I try again:

I have a property on the property manager called member1 with a value 
of "[/some/path]"


User1 ask for this property. We calculate the real value for 
/some/path for these user: 1
User2 ask for this property. We calculate the real value for 
/some/path for these user: 2


I have a property on the property manager called member2 with a value 
of "[a reference to the calculator]"


A user ask for this property from his firefox. We calculate the real 
value for the reference for this browser: 
Another user ask for this property from his ie. We calculate the real 
value for the reference for this browser: 


I would like to change the "accessor" for any property in my Zope 
product


How can I?



If I understand what you are trying to accomplish (of which I am not 
completely sure)...then you could create a script that accesses the 
object and returns a value based on the user agent string:


eg.

import string
REQUEST = container.REQUEST

targetObject = context.restrictedTraverse('/some/path/objId')

if string.find(REQUEST['HTTP_USER_AGENT'], 'Firefox') != -1:
  Good Jonathan, something like this is on my mind but where I need to put 
a piece of code like this?


__getattr__?
__bobo_traverse__?
another place?

I work with __bobo_traverse__ for some purposes but I would like a place 
like __getattr__ because is where I go when I need an object's member 
(__hasattr__ too) and __bobo_traverse__ need to returns an object not a 
value


__getattr__ some of you (I don't remember how exactly, sorry) have said 
is a member to use only if there are no other way and I'm a little 
scared for that


What do you thing about?

--
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] Override members values

2006-07-10 Thread Garito

Jonathan escribió:


- Original Message - From: "Garito" <[EMAIL PROTECTED]>
To: "Lista Zope Internacional" 
Sent: Monday, July 10, 2006 1:13 PM
Subject: Re: [Zope] Override members values



Jonathan escribió:


- Original Message - From: "Garito" <[EMAIL PROTECTED]>

I try again:

I have a property on the property manager called member1 with a 
value of "[/some/path]"


User1 ask for this property. We calculate the real value for 
/some/path for these user: 1
User2 ask for this property. We calculate the real value for 
/some/path for these user: 2


I have a property on the property manager called member2 with a 
value of "[a reference to the calculator]"


A user ask for this property from his firefox. We calculate the 
real value for the reference for this browser: 
Another user ask for this property from his ie. We calculate the 
real value for the reference for this browser: 


I would like to change the "accessor" for any property in my Zope 
product


How can I?



If I understand what you are trying to accomplish (of which I am not 
completely sure)...then you could create a script that accesses the 
object and returns a value based on the user agent string:


eg.

import string
REQUEST = container.REQUEST

targetObject = context.restrictedTraverse('/some/path/objId')

if string.find(REQUEST['HTTP_USER_AGENT'], 'Firefox') != -1:
users)

else:
  Good Jonathan, something like this is on my mind but where I need to 
put a piece of code like this?


__getattr__?
__bobo_traverse__?
another place?

I work with __bobo_traverse__ for some purposes but I would like a 
place like __getattr__ because is where I go when I need an object's 
member (__hasattr__ too) and __bobo_traverse__ need to returns an 
object not a value


__getattr__ some of you (I don't remember how exactly, sorry) have 
said is a member to use only if there are no other way and I'm a 
little scared for that


I have no idea how your application is designed/structured, but one 
possible solution is to create a python script and place it in the 
path to the object you want to access.  For example, if the python 
script is called pScript then:


/some/path/pScript/objectId

the python script 'pScript' will get executed and can access a 
variable in REQUEST called 'traverse_subpath' - which is a list, and 
in the above case has only 1 element which is a string containing 
'objectId'.  You can then use this string in the restrictedTraverse 
command to get access to the object:


REQUEST = container.REQUEST
targetObject = context.restrictedTraverse('/some/path/some/folder/'+ 
REQUEST['traverse_subpath'][0])




Jonathan



Sure, but I would like to put it to act like

print Object.member

and the value is the result of your code

Where I put the code?

If I want to override the () member of a object I override __call__, if 
I want to override the str(object) I override __str__, right?


How can I override the object. ?

--
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] Override members values

2006-07-10 Thread Garito

Garito escribió:

Jonathan escribió:


- Original Message - From: "Garito" <[EMAIL PROTECTED]>
To: "Lista Zope Internacional" 
Sent: Monday, July 10, 2006 1:13 PM
Subject: Re: [Zope] Override members values



Jonathan escribió:


- Original Message - From: "Garito" <[EMAIL PROTECTED]>

I try again:

I have a property on the property manager called member1 with a 
value of "[/some/path]"


User1 ask for this property. We calculate the real value for 
/some/path for these user: 1
User2 ask for this property. We calculate the real value for 
/some/path for these user: 2


I have a property on the property manager called member2 with a 
value of "[a reference to the calculator]"


A user ask for this property from his firefox. We calculate the 
real value for the reference for this browser: 
Another user ask for this property from his ie. We calculate the 
real value for the reference for this browser: 


I would like to change the "accessor" for any property in my Zope 
product


How can I?



If I understand what you are trying to accomplish (of which I am 
not completely sure)...then you could create a script that accesses 
the object and returns a value based on the user agent string:


eg.

import string
REQUEST = container.REQUEST

targetObject = context.restrictedTraverse('/some/path/objId')

if string.find(REQUEST['HTTP_USER_AGENT'], 'Firefox') != -1:
users)

else:
  Note: 'attribute' is whatever property you have defined for the 
object.


hth

Jonathan
Good Jonathan, something like this is on my mind but where I need to 
put a piece of code like this?


__getattr__?
__bobo_traverse__?
another place?

I work with __bobo_traverse__ for some purposes but I would like a 
place like __getattr__ because is where I go when I need an object's 
member (__hasattr__ too) and __bobo_traverse__ need to returns an 
object not a value


__getattr__ some of you (I don't remember how exactly, sorry) have 
said is a member to use only if there are no other way and I'm a 
little scared for that


I have no idea how your application is designed/structured, but one 
possible solution is to create a python script and place it in the 
path to the object you want to access.  For example, if the python 
script is called pScript then:


/some/path/pScript/objectId

the python script 'pScript' will get executed and can access a 
variable in REQUEST called 'traverse_subpath' - which is a list, and 
in the above case has only 1 element which is a string containing 
'objectId'.  You can then use this string in the restrictedTraverse 
command to get access to the object:


REQUEST = container.REQUEST
targetObject = context.restrictedTraverse('/some/path/some/folder/'+ 
REQUEST['traverse_subpath'][0])




Jonathan



Sure, but I would like to put it to act like

print Object.member

and the value is the result of your code

Where I put the code?

If I want to override the () member of a object I override __call__, 
if I want to override the str(object) I override __str__, right?


How can I override the object. ?


Perhaps like this? (the __get__ member?)
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/408713

This will be the best solution?

--
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] Override members values

2006-07-10 Thread Garito

knitti escribió:

On 7/10/06, Garito <[EMAIL PROTECTED]> wrote:

__getattr__ some of you (I don't remember how exactly, sorry) have said
is a member to use only if there are no other way and I'm a little
scared for that


I think there's no "official" (as in "provided by the framework") 
support for

what you want. If you are too scared to implement some proof-of-concept
which involves good testing covering  your use case, you should think
about another way to implement what you need.

you could also use __getattribute__(), this way you can also have
"dynamic" methods.
http://docs.python.org/ref/new-style-attribute-access.html

don't know how ZODB copes with this. or whether one needs to worry
about that.

--knitti

Hi knitti!

__getattribute__ could be good (I test it and I like the way if there 
are anyone with a better one)


Now my question is:

There are any way to distinguish when the property is called by ZMI or 
FTP or another "system" call (about Zope) from the property when is 
called outside ZMI?


Now I have a property like:

object.Property1 = '[/some/path]'

with the __getattribute__ override I can do

print object.Property1

and the result is ok (the result of /some/path) but now if I go to 
property tab of the object I can't see ['/some/path'] or raise an error 
telling Property1 is not a member


What I would like to create is an object that in the ZMI has some 
property values but when this properties are called the returns the 
execution of the path (like macro expansion or similar)


Is this possible to do?

--
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] absolute_url is empty in __getattribute__?

2006-07-10 Thread Garito

Hi
In the line to test __getattribute__ to override some properties I try 
to access to the object's absolute_url but it's empty


How can I have the absolute_url at object's __getattribute__?

Thanks again

--
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] Override members values

2006-07-11 Thread Garito

knitti escribió:

On 7/10/06, Garito <[EMAIL PROTECTED]> wrote:

knitti escribió:
There are any way to distinguish when the property is called by ZMI or
FTP or another "system" call (about Zope) from the property when is
called outside ZMI?


not that I'm aware of.



Now I have a property like:

object.Property1 = '[/some/path]'

with the __getattribute__ override I can do

print object.Property1

and the result is ok (the result of /some/path) but now if I go to
property tab of the object I can't see ['/some/path'] or raise an error
telling Property1 is not a member


because a property of a 'Zope object' (for the lack of better terms) is
actually an entry in a PropertySheet instance. You _really_ want to
use manage_addProperty() / manage_changeProperties() for those.


What I would like to create is an object that in the ZMI has some
property values but when this properties are called the returns the
execution of the path (like macro expansion or similar)

Is this possible to do?


I don't understand this question

--knitti
Sure. At the spanish list someone has a private (his costumer don't want 
to share it) PropertyManagerWithTALES


In this class the properties are TALES expressions

I need something like it

I put the TALES expression in the Property Sheet tab but the data 
retrieved is the execution of the TALES expression


Any idea?

--
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] absolute_url is empty in __getattribute__?

2006-07-11 Thread Garito

knitti escribió:

On 7/11/06, Garito <[EMAIL PROTECTED]> wrote:

In the line to test __getattribute__ to override some properties I try
to access to the object's absolute_url but it's empty


its not a property, ist a method: ObjectManagerItem.absolute_url()

--knitti

I know but if you call it returns ""?

--
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] absolute_url is empty in __getattribute__?

2006-07-11 Thread Garito

Lennart Regebro escribió:

On 7/11/06, Garito <[EMAIL PROTECTED]> wrote:

Hi
In the line to test __getattribute__ to override some properties I try
to access to the object's absolute_url but it's empty


__getattr__ is always called on the non-acquicision wrapped object.
Hence, __getattr__ doesn't know anything about it's surroundings.


How can I have the absolute_url at object's __getattribute__?


You can't, unless you bend over backwards, and there are surely easier
ways to do whatever you are trying to do.

What are you trying to achieve?


Hi Lennart! Did you read the thread "Override members value"?

I'm trying to do something like a TALES property or similar


--
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] absolute_url is empty in __getattribute__?

2006-07-12 Thread Garito

Garito escribió:

Hi
In the line to test __getattribute__ to override some properties I try 
to access to the object's absolute_url but it's empty


How can I have the absolute_url at object's __getattribute__?

Thanks again


Hi all!

I rethink my problem and I solve all my questions with the new approach

Thank you so much

--
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] __bobo_traverse__ and a no-object

2006-07-13 Thread Garito

Hi all!

Please, look at this code:

def __bobo_traverse__(self, REQUEST, name):
   obj = getattr(self, name, None)
   if obj is not None: return obj
   else:
   obj = self.Dame(name)
   if obj is not None: return obj
   else:
   if 'Parametros' in self.REQUEST: 
self.REQUEST['Parametros'] = self.REQUEST['Parametros'] + [name]

   else: self.REQUEST['Parametros'] = [name]
   return self

self.Dame is a function that seeks for an object with the name "name"

I wonder why I can do this on a Page Template:



Where Texto is a adquired property, but not this:



because zope raises an unauthorized error

How can I solve this 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 )


Re: [Zope] __bobo_traverse__ and a no-object

2006-07-14 Thread Garito

Garito escribió:

Hi all!

Please, look at this code:

def __bobo_traverse__(self, REQUEST, name):
   obj = getattr(self, name, None)
   if obj is not None: return obj
   else:
   obj = self.Dame(name)
   if obj is not None: return obj
   else:
   if 'Parametros' in self.REQUEST: 
self.REQUEST['Parametros'] = self.REQUEST['Parametros'] + [name]

   else: self.REQUEST['Parametros'] = [name]
   return self

self.Dame is a function that seeks for an object with the name "name"

I wonder why I can do this on a Page Template:



Where Texto is a adquired property, but not this:



because zope raises an unauthorized error

How can I solve this point?

Thanks!


Anyone can tell me what is happening here?

--
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] __bobo_traverse__ and a no-object

2006-07-14 Thread Garito

Andreas Jung escribió:



--On 14. Juli 2006 17:17:51 +0200 Garito <[EMAIL PROTECTED]> wrote:


Garito escribió:



Anyone can tell me what is happening here?



The Zope mailing list is not a helpdesk with a guaranteed response time.
No need to grouch!

-aj

Sorry I don't pretend to be rude!

--
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] __bobo_traverse__ and a no-object

2006-07-14 Thread Garito

Dieter Maurer escribió:

Garito wrote at 2006-7-14 07:04 +0200:
  

...
def __bobo_traverse__(self, REQUEST, name):
   obj = getattr(self, name, None)
...
I wonder why I can do this on a Page Template:



Where Texto is a adquired property, but not this:



because zope raises an unauthorized error

How can I solve this point?



You can wait for the next Zope release (2.10) where this is fixed.

The reason: security for "__bobo_traverse__" is much stricter
than for attribute lookup:

   In the latter case, the security machinery knows that the value
   was obtained by attribute lookup and can apply the security
   declarations of the accessed object.

   In the former case, the security machinery does not know
   which object was really accessed and therefore refuses
   to look at the accessed object. This often leads to
   an "Unauthorized".

The hack in Zope 2.10 checks in this case whether the value
could as well have been obtained by attribute lookup and
then checks along this route.


If waiting is not an option for you, you can also backport
the fix to your Zope version.



  

Hi Dieter!
In fact all my work depends on this question (this is the reason behind 
my nervous. Sorry again Andreas and the rest of people)


Do you know how can I find information to backport the fix?

--
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] __bobo_traverse__ and a no-object

2006-07-14 Thread Garito

Dieter Maurer escribió:

Garito wrote at 2006-7-14 07:04 +0200:
  

...
def __bobo_traverse__(self, REQUEST, name):
   obj = getattr(self, name, None)
...
I wonder why I can do this on a Page Template:



Where Texto is a adquired property, but not this:



because zope raises an unauthorized error

How can I solve this point?



You can wait for the next Zope release (2.10) where this is fixed.

The reason: security for "__bobo_traverse__" is much stricter
than for attribute lookup:

   In the latter case, the security machinery knows that the value
   was obtained by attribute lookup and can apply the security
   declarations of the accessed object.

   In the former case, the security machinery does not know
   which object was really accessed and therefore refuses
   to look at the accessed object. This often leads to
   an "Unauthorized".

The hack in Zope 2.10 checks in this case whether the value
could as well have been obtained by attribute lookup and
then checks along this route.


If waiting is not an option for you, you can also backport
the fix to your Zope version.



  

Do you refer this Collector?

http://www.zope.org/Collectors/Zope/2072

--
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] __bobo_traverse__ and a no-object

2006-07-14 Thread Garito

Garito escribió:

Dieter Maurer escribió:

Garito wrote at 2006-7-14 07:04 +0200:
 

...
def __bobo_traverse__(self, REQUEST, name):
   obj = getattr(self, name, None)
...
I wonder why I can do this on a Page Template:



Where Texto is a adquired property, but not this:



because zope raises an unauthorized error

How can I solve this point?



You can wait for the next Zope release (2.10) where this is fixed.

The reason: security for "__bobo_traverse__" is much stricter
than for attribute lookup:

   In the latter case, the security machinery knows that the value
   was obtained by attribute lookup and can apply the security
   declarations of the accessed object.

   In the former case, the security machinery does not know
   which object was really accessed and therefore refuses
   to look at the accessed object. This often leads to
   an "Unauthorized".

The hack in Zope 2.10 checks in this case whether the value
could as well have been obtained by attribute lookup and
then checks along this route.


If waiting is not an option for you, you can also backport
the fix to your Zope version.



  

Do you refer this Collector?

http://www.zope.org/Collectors/Zope/2072


I use Zope 2.9.2

--
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] __bobo_traverse__ and a no-object

2006-07-15 Thread Garito

Alec Mitchell escribió:

On 7/14/06, Garito <[EMAIL PROTECTED]> wrote:

Garito escribió:
> Dieter Maurer escribió:
>> Garito wrote at 2006-7-14 07:04 +0200:
>>
>>> ...
>>> def __bobo_traverse__(self, REQUEST, name):
>>>obj = getattr(self, name, None)
>>> ...
>>> I wonder why I can do this on a Page Template:
>>>
>>> 
>>>
>>> Where Texto is a adquired property, but not this:
>>>
>>> 
>>>
>>> because zope raises an unauthorized error
>>>
>>> How can I solve this point?
>>>
>>
>> You can wait for the next Zope release (2.10) where this is fixed.
>>
>> The reason: security for "__bobo_traverse__" is much stricter
>> than for attribute lookup:
>>
>>In the latter case, the security machinery knows that the value
>>was obtained by attribute lookup and can apply the security
>>declarations of the accessed object.
>>
>>In the former case, the security machinery does not know
>>which object was really accessed and therefore refuses
>>to look at the accessed object. This often leads to
>>an "Unauthorized".
>>
>> The hack in Zope 2.10 checks in this case whether the value
>> could as well have been obtained by attribute lookup and
>> then checks along this route.
>>
>>
>> If waiting is not an option for you, you can also backport
>> the fix to your Zope version.
>>
>>
>>
>>
> Do you refer this Collector?
>
> http://www.zope.org/Collectors/Zope/2072
>
I use Zope 2.9.2


Use 2.9.3 and watch your problem disappear (hopefully).

Alec

Completely disappeared!!!

Thank you so much!!

--
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] Catalog aware

2006-07-18 Thread Garito

Hi all!

Is possible to create an object (for example a Page Template) and make 
it catalog aware?


I wonder why the objects aren't catalogable by default (I need all my 
object catalogables)


Any Idea?

--
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] Catalog aware

2006-07-19 Thread Garito

Andreas Jung escribió:



--On 18. Juli 2006 15:14:54 +0200 Garito <[EMAIL PROTECTED]> wrote:


Hi all!

Is possible to create an object (for example a Page Template) and 
make it

catalog aware?


Look at the CatalogAware mixin class.
But with this class I could create a new class of PT Catalog aware, 
isn't it?

I would like to convert a normal PT is this possible?


I wonder why the objects aren't catalogable by default (I need all my
object catalogables)



Because Zope is not CMF and Zope is not Plone. Because you need this 
feature it does not mean that everyone needs this feature by default.


-aj

Sure but Is the cost so big?

--
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] Catalog aware

2006-07-19 Thread Garito

Andreas Jung escribió:



--On 19. Juli 2006 09:34:58 +0200 Garito <[EMAIL PROTECTED]> wrote:


Andreas Jung escribió:



--On 18. Juli 2006 15:14:54 +0200 Garito <[EMAIL PROTECTED]> wrote:


Hi all!

Is possible to create an object (for example a Page Template) and
make it
catalog aware?


Look at the CatalogAware mixin class.
But with this class I could create a new class of PT Catalog aware, 
isn't

it?
I would like to convert a normal PT is this possible?


It makes little sense to index the contents of PTs. PTs are used to 
present a view on a particular instance of your class but not for 
providing content

itself.



I wonder why the objects aren't catalogable by default (I need all my
object catalogables)



Because Zope is not CMF and Zope is not Plone. Because you need this
feature it does not mean that everyone needs this feature by default.

-aj

Sure but Is the cost so big?


This is not the question. If you need catalog awareness, either 
implement it as stated above or use one of the frameworkslittle 
need to discuss the pros and cons...by default Zope default 
content-types  don't depend on the catalog. CMF and Plone depend on 
the catalog for various reasons. If you have the requirement to use a 
catalog you have the mentioned options.


-aj


Yes but what about something like

if self.default_catalog != '': self.reindex_object()

?

I think it's a question of preferences

Then can I "inject" Catalog awarness to an object?



--
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] Catalog aware

2006-07-19 Thread Garito

Tino Wildenhain escribió:

Garito wrote:

Andreas Jung escribió:



--On 19. Juli 2006 09:34:58 +0200 Garito <[EMAIL PROTECTED]> wrote:


Andreas Jung escribió:



--On 18. Juli 2006 15:14:54 +0200 Garito <[EMAIL PROTECTED]> wrote:


Hi all!

Is possible to create an object (for example a Page Template) and
make it
catalog aware?


Look at the CatalogAware mixin class.
But with this class I could create a new class of PT Catalog aware, 
isn't

it?
I would like to convert a normal PT is this possible?


It makes little sense to index the contents of PTs. PTs are used to 
present a view on a particular instance of your class but not for 
providing content

itself.



I wonder why the objects aren't catalogable by default (I need 
all my

object catalogables)



Because Zope is not CMF and Zope is not Plone. Because you need this
feature it does not mean that everyone needs this feature by default.

-aj

Sure but Is the cost so big?


This is not the question. If you need catalog awareness, either 
implement it as stated above or use one of the frameworkslittle 
need to discuss the pros and cons...by default Zope default 
content-types  don't depend on the catalog. CMF and Plone depend on 
the catalog for various reasons. If you have the requirement to use 
a catalog you have the mentioned options.


-aj


Yes but what about something like

if self.default_catalog != '': self.reindex_object()

?

I think it's a question of preferences

Then can I "inject" Catalog awarness to an object?


Yes you can. Its possible with so called monkeypatching.
However if you can do that, you better just write
a product w/ subclasses of the standard zope objects and
your CatalogAwareness. Its easy and clean and you dont
interfere with further development of zope.

Regards
Tino
Sure, but I can't create a new product for every product I'll use only 
to do it catalog aware, isn't it?


Can you say more about monkeypatching?

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] Catalog aware

2006-07-19 Thread Garito

Tino Wildenhain escribió:

Garito wrote:
  

Tino Wildenhain escribió:


Garito wrote:
  

Andreas Jung escribió:


--On 19. Juli 2006 09:34:58 +0200 Garito <[EMAIL PROTECTED]> wrote:

  

Andreas Jung escribió:


--On 18. Juli 2006 15:14:54 +0200 Garito <[EMAIL PROTECTED]> wrote:

  

Hi all!

Is possible to create an object (for example a Page Template) and
make it
catalog aware?


Look at the CatalogAware mixin class.
  

But with this class I could create a new class of PT Catalog aware,
isn't
it?
I would like to convert a normal PT is this possible?


It makes little sense to index the contents of PTs. PTs are used to
present a view on a particular instance of your class but not for
providing content
itself.

  

I wonder why the objects aren't catalogable by default (I need
all my
object catalogables)



Because Zope is not CMF and Zope is not Plone. Because you need this
feature it does not mean that everyone needs this feature by default.

-aj
  

Sure but Is the cost so big?


This is not the question. If you need catalog awareness, either
implement it as stated above or use one of the frameworkslittle
need to discuss the pros and cons...by default Zope default
content-types  don't depend on the catalog. CMF and Plone depend on
the catalog for various reasons. If you have the requirement to use
a catalog you have the mentioned options.

-aj

  

Yes but what about something like

if self.default_catalog != '': self.reindex_object()

?

I think it's a question of preferences

Then can I "inject" Catalog awarness to an object?


Yes you can. Its possible with so called monkeypatching.
However if you can do that, you better just write
a product w/ subclasses of the standard zope objects and
your CatalogAwareness. Its easy and clean and you dont
interfere with further development of zope.

Regards
Tino
  

Sure, but I can't create a new product for every product I'll use only
to do it catalog aware, isn't it?



Yes you can. Why not? I mean you are using them - so you can use
your products instead as well.
  
Yes but what if tomorrow you create a product? need work to times: you 
first, me later
In my opinion (is only an opinion) these is not the best situation in a 
future


Sorry but is not so acceptable for me


  

Can you say more about monkeypatching?



If you cant figure out (google, imagination)
you better dont do it :-)

The code to monkey-patch is roughly the same
as subclassing. So you better just subclass
and use your products.

Hint: you can use loops in python too .-)

Kind regards
Tino
  

A! sure, I'll searched at google!

--
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] Catalog aware

2006-07-19 Thread Garito

Tino Wildenhain escribió:

Garito wrote:
...
  

Sure, but I can't create a new product for every product I'll use only
to do it catalog aware, isn't it?



Yes you can. Why not? I mean you are using them - so you can use
your products instead as well.
  
  

Yes but what if tomorrow you create a product? need work to times: you
first, me later



Who says you have a use for the product I create? Or if it makes
sense to catalog it? If you want a cataloguing framework, why
dont you use CMF or something?
  
I want to make every class catalogable only if I point a zcatalog id 
(with self.default_catalog) but If I point it I want to catalogue the object


Now is a search era, isn't it?

Use another framework only to do the objects catalogable?

I love simple things
  

In my opinion (is only an opinion) these is not the best situation in a
future

Sorry but is not so acceptable for me



The point is, it makes no sense to catalog Pagetemplates,
Python Scripts, Folders and ZSQL Methods, Mailhosts
and Database connections. These are all standard zope
objects, yet they make catalogable content only in derived
work or when they play together - which is a custom
solution anyway. There you can add whatever cataloguing
awareness you want.
  
And if I use them dinamically (a user with the role1 use the template 
Ver but a user with the role2 use the template Ver1 for the same 
context)? (I'm not sure if I understand you clear, sorry If I make a 
mistake, please
  
 
  

Can you say more about monkeypatching?



If you cant figure out (google, imagination)
you better dont do it :-)

The code to monkey-patch is roughly the same
as subclassing. So you better just subclass
and use your products.

Hint: you can use loops in python too .-)

Kind regards
Tino
  
  

A! sure, I'll searched at google!



great :-)

Regards
Tino


  



--
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] Catalog aware

2006-07-20 Thread Garito

Tino Wildenhain escribió:

Garito wrote:
  

Tino Wildenhain escribió:


Garito wrote:
...
 
  

Sure, but I can't create a new product for every product I'll use only
to do it catalog aware, isn't it?



Yes you can. Why not? I mean you are using them - so you can use
your products instead as well.

  

Yes but what if tomorrow you create a product? need work to times: you
first, me later



Who says you have a use for the product I create? Or if it makes
sense to catalog it? If you want a cataloguing framework, why
dont you use CMF or something?
  
  

I want to make every class catalogable only if I point a zcatalog id
(with self.default_catalog) but If I point it I want to catalogue the
object



And what of the object do you want to catalog?
Which kind of indexes do you want it to support?
What kind of questions do you expect your ZCatalog
(hypothetically) answered? Could you give examples?
  
Is not important what I want to catalog, for me is important that the 
object *was* in the catalog (some catalogs indexes some properties some 
others other properties)


  

Now is a search era, isn't it?



Yes, search for what and by whom is the question here.
  

I don't thing so. The question is who is in the catalog
  

Use another framework only to do the objects catalogable?

I love simple things



So why are you trying to make standard zope objects more
complicated? :)
  
More complicated? Sure, but I don't understand the cost to make every 
object in Zope catalogable. A class and a variable I don't thing is a 
big cost

And I thing in Zope when I thing in keep it simple
 
  

In my opinion (is only an opinion) these is not the best situation in a
future

Sorry but is not so acceptable for me



The point is, it makes no sense to catalog Pagetemplates,
Python Scripts, Folders and ZSQL Methods, Mailhosts
and Database connections. These are all standard zope
objects, yet they make catalogable content only in derived
work or when they play together - which is a custom
solution anyway. There you can add whatever cataloguing
awareness you want.
  
  

And if I use them dinamically (a user with the role1 use the template
Ver but a user with the role2 use the template Ver1 for the same
context)? (I'm not sure if I understand you clear, sorry If I make a
mistake, please



This would not be supported by just adding indexing to the standard
objects anyway. You would write a container which supports the bahavior
you want - and while you are at it you can easily add catalogawareness
to that - exactly where and in the way _you_ need it :-)
Individual objects cataloguing themself would get in your way.

Regards
Tino Wildenhain
  
Yes, I'm creating a specific container that works in a curious way. In 
that container I could catalog a Page Template when I'm adding it but 
perhaps sometimes I want to track its changes an so on


--
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] Catalog aware

2006-07-20 Thread Garito

Tino Wildenhain escribió:

Garito wrote:

Tino Wildenhain escribió:

Garito wrote:
 

Tino Wildenhain escribió:
  

Garito wrote:
...
 

Sure, but I can't create a new product for every product I'll 
use only

to do it catalog aware, isn't it?


Yes you can. Why not? I mean you are using them - so you can use
your products instead as well.
  
Yes but what if tomorrow you create a product? need work to 
times: you

first, me later


Who says you have a use for the product I create? Or if it makes
sense to catalog it? If you want a cataloguing framework, why
dont you use CMF or something?


I want to make every class catalogable only if I point a zcatalog id
(with self.default_catalog) but If I point it I want to catalogue the
object



And what of the object do you want to catalog?
Which kind of indexes do you want it to support?
What kind of questions do you expect your ZCatalog
(hypothetically) answered? Could you give examples?
  
Is not important what I want to catalog, for me is important that the 
object *was* in the catalog (some catalogs indexes some properties 
some others other properties)


Please read the catalog section again: there isnt the object in the 
catalog!

Again: The object is _not_ in the catalog.
Its all about usefull indexes and maybe object metadata.
So again: _what_ actually do you expect to find?

When I talk about was in the catalog I mean the object is catalogued
I expect to find *the object* in the catalog

For example:

How do you know how many cousins you have? Because you are a catalog 
that catalog the number of cousins you have


Another example: how much skills about computing do you have? Again your 
skills are objects that you need (as a catalog you are) to catalog


Like an entity (a thing, and object) you need to know some data stored 
in your life added to you




 

Now is a search era, isn't it?



Yes, search for what and by whom is the question here.
  

I don't thing so. The question is who is in the catalog
 

Use another framework only to do the objects catalogable?

I love simple things



So why are you trying to make standard zope objects more
complicated? :)
  
More complicated? Sure, but I don't understand the cost to make every 
object in Zope catalogable. A class and a variable I don't thing is a 
big cost

And I thing in Zope when I thing in keep it simple


Yes, but its nonsense. You cant do anything more with the objects
in Zope if they are catalogued.
Are you sure? I can find them!!! Then if I can find them I can count 
them, give to you (even if its don't depend on me, remember your skills 
or your cousins?)


I want to create an object that acts like an entity (like a human or a 
mortage or a paper or a product -that you can sell)


These entity need to know how is it (its properties, its characteristics)

I ask myself if I know myself but I only know about myself all I can 
catalogue



 

In my opinion (is only an opinion) these is not the best 
situation in a

future

Sorry but is not so acceptable for me


The point is, it makes no sense to catalog Pagetemplates,
Python Scripts, Folders and ZSQL Methods, Mailhosts
and Database connections. These are all standard zope
objects, yet they make catalogable content only in derived
work or when they play together - which is a custom
solution anyway. There you can add whatever cataloguing
awareness you want.


And if I use them dinamically (a user with the role1 use the template
Ver but a user with the role2 use the template Ver1 for the same
context)? (I'm not sure if I understand you clear, sorry If I make a
mistake, please



This would not be supported by just adding indexing to the standard
objects anyway. You would write a container which supports the bahavior
you want - and while you are at it you can easily add catalogawareness
to that - exactly where and in the way _you_ need it :-)
Individual objects cataloguing themself would get in your way.

Regards
Tino Wildenhain
  
Yes, I'm creating a specific container that works in a curious way. 
In that container I could catalog a Page Template when I'm adding it 
but perhaps sometimes I want to track its changes an so on



Yes, but who should know what _you_ want your objects to do? You cannot
expect all people (especially the ones writing zope core) to guess
your needs - you are the one to express your wishes in the form of
code :-) If you end up having a general solution (like these frameworks
are) you can share them with others.

Regards
Tino
I don't expect anyone guess my needs (is for that I need to develop the 
class) :)

I only ask if I can add some super classes to an object when  I create it :)
I know my needs are so particular but I want to create something new 
with a new perspective. If I can the result will be very curious (I 
suppose, I expect even)


I choose Zop

Re: [***SPAM*** Score/Req: 04.00/04.00] Re: [Zope] Catalog aware

2006-07-20 Thread Garito

Tino Wildenhain escribió:

Garito wrote:

Tino Wildenhain escribió:

Garito wrote:

Tino Wildenhain escribió:

Garito wrote:
 

Tino Wildenhain escribió:
 

Garito wrote:
...
 
  
Sure, but I can't create a new product for every product I'll 
use only

to do it catalog aware, isn't it?


Yes you can. Why not? I mean you are using them - so you can use
your products instead as well.
  
Yes but what if tomorrow you create a product? need work to 
times: you

first, me later


Who says you have a use for the product I create? Or if it makes
sense to catalog it? If you want a cataloguing framework, why
dont you use CMF or something?


I want to make every class catalogable only if I point a zcatalog id
(with self.default_catalog) but If I point it I want to catalogue 
the

object



And what of the object do you want to catalog?
Which kind of indexes do you want it to support?
What kind of questions do you expect your ZCatalog
(hypothetically) answered? Could you give examples?
  
Is not important what I want to catalog, for me is important that 
the object *was* in the catalog (some catalogs indexes some 
properties some others other properties)


Please read the catalog section again: there isnt the object in the 
catalog!

Again: The object is _not_ in the catalog.
Its all about usefull indexes and maybe object metadata.
So again: _what_ actually do you expect to find?

When I talk about was in the catalog I mean the object is catalogued
I expect to find *the object* in the catalog

For example:

How do you know how many cousins you have? Because you are a catalog 
that catalog the number of cousins you have


So you want to count objects based on their meta_type?
Of what use would be such an information?
What if you know how many pagetemplates you have? :-)

Why not?
It depends on the nature of the entity
If I know now many pagetemplates has an entity I could show it to the user
Because I make some curious use of the objects of Zope, for me every 
object will be a functionality, something the object can do, then I want 
to know everything about the entity


Another example: how much skills about computing do you have? Again 
your skills are objects that you need (as a catalog you are) to catalog


We have a skills object in plain zope now? Thats news for me.

not now but I can develep it if I need


Like an entity (a thing, and object) you need to know some data 
stored in your life added to you


Yes, but a zcatalog cannot work with "some data" - you need to specify
exactly _which_ data you want to find. So what exacly is this on
standard Zope objects?
My entity has some default indexes like meta_type or owner, etc but you 
could be creative in order to create new ones. It only depends on your needs

..


Yes, but its nonsense. You cant do anything more with the objects
in Zope if they are catalogued.
Are you sure? I can find them!!! Then if I can find them I can count 
them, give to you (even if its don't depend on me, remember your 
skills or your cousins?)


Ah yes, which zope product stores cousin data?
Do you want to store cousins data? you need to create an object that 
stores cousin data




I want to create an object that acts like an entity (like a human or 
a mortage or a paper or a product -that you can sell)


Yes, you crate it - you define its cataloguing. So what is your business
with standard zope objects here?
They are funcionality to my entity. If the entity has a functionality 
that sends mails the entity need to has a mail host object but It's not 
important where do you create it if the entity catalogue it (you can 
always find it if you ask to the entity catalog)


These entity need to know how is it (its properties, its 
characteristics)


You cant barely catalog all properties - the catalog would not even know
if this property is meant as keyword or fulltext or whatever...
don't worry! I want to find them. It's not important what they are or 
where they are


I ask myself if I know myself but I only know about myself all I can 
catalogue

...


Regards
Tino
I don't expect anyone guess my needs (is for that I need to develop 
the class) :)
I only ask if I can add some super classes to an object when  I 
create it :)


You can, you just add it. Its there and you even know its name.
So what was your problem again? :-)
They way to add it (but you point me to find at google monkeypatch isn't 
it? Thanks again)


I know my needs are so particular but I want to create something new 
with a new perspective. If I can the result will be very curious (I 
suppose, I expect even)


I choose Zope because is the most near to my finall result


Exactly :-)

Regards
TIno



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


___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encod

Re: [***SPAM*** Score/Req: 04.00/04.00] Re: [Zope] Catalog aware

2006-07-20 Thread Garito

Martijn Pieters escribió:

Please don't email me personally; let's keep this discussion on the list.

Garito wrote:
  

Yes, the indexes depends on the entity (I don't know what indexes I use
until I define the entity but I need to catalog every characteristic of
the entity)

For example if I have a entity with a container where to put my cousins
information I will catalog a keyword index called (is an example,
remeber) HowMuch that counts the number of the objects stored in the
container

Or if I talk about skills I will catalogue the marks or the way to print
the certificate of excelence (again an example)



But then you can create specific subclasses that are catalog aware. What
standard objects would you use to implement this? You have a specific,
non-generic use-case that has already been catered for by the framework.
  
I can't subclass every class I need. These will need to reajust 
(subclass) every new case

For example:
Now I know I need Page Templates and Script Python catalogaware, then I 
subclass them and I finish the work, good


But tomorrow I need a Mail host catalogaware, begin again and create a 
subclass for Mail host


I would like if there are a generic way to add catalogawareness by code. 
If there are my problem about catalogawareness finish
  

Making all Zope objects catalog aware by default makes no sense
though. You have yet to come with a compelling generic use-case, let
alone with one that convinces me. Why catalog database connectors for
example? What kind of search are you performing?
  

Please, don't think in a particular case, think a way to do that if you
need



No, we need a use-case. Otherwise you have what we call a YAGNI, a "You
aint gonna need it" feature that noone will maintain because noone uses it.

A vague notion that you'd like to see this for your application is not a
use-case.
  
I use these feature then YAGNI converts to AGUT (at least Garito use 
these) ;)

Again I know these way is a very particular way, nothing more

When Zopers define what Zope will be they thing in a particular use 
case? Or Ploners or CMFers? I don't think so


I have a very clear model on my brain that is possible with more or less 
code What I'm trying is to reduce the length of the code I need to put 
these model at Zope
  

Have you thought about the potential problems of making all objects
catalog-aware by default, like potential conflicts and side-effects?
  

What kind of side-effects or conflicts (put an example to understand,
please)



Catalog indexes retrieve their infomation from the object, through a
named attribute. If that attribute is callable, the index calls it, so
it executes the code. That may have side effects not originally forseen
because the original code never anticipated being indexed. This can
happen when the attribute name can mean different things in different
contexts.

Zope is a complex beast, and the idea of making everything catalog aware
is not going to play well.
  
Sure but Zopers don't stops these way only because someone could use it 
in a wrong way
But I can understand the side effects (thanks for the example, it clears 
my doubt)


Why making everything catalog aware is not going to play well?
I only want catalog aware what is on my products area (sometimes bigger 
than others)
  

I say a big -infinity from me on the whole idea.
  

I can't understand the last sentence (my english is a kid english, sorry
again!)



It means I say no to the idea. A big no.
  

Well, sorry for that!

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: [***SPAM*** Score/Req: 04.00/04.00] Re: [Zope] Catalog aware

2006-07-20 Thread Garito

Martijn Pieters escribió:

On 7/20/06, Garito <[EMAIL PROTECTED]> wrote:
> No, we need a use-case. Otherwise you have what we call a YAGNI, a 
"You
> aint gonna need it" feature that noone will maintain because noone 
uses it.

>
> A vague notion that you'd like to see this for your application is 
not a

> use-case.
>
I use these feature then YAGNI converts to AGUT (at least Garito use
these) ;)
Again I know these way is a very particular way, nothing more


So, one isolated case doesn't make a generic use case. You still
haven't given us your particular application, only vague handwaving
about how the way you are implementing your ideas needs a catalog.

Until there is a clearly described general need for a feature like
generic catalog-awareness, there is no case for such a feature to go
into the core of Zope.

I must say that of what I have been able to understand of what you are
doing, it sounds to me as if you are approaching your problem in the
wrong way.

Page Templates and Python Scripts are there to implement application
code and presentation, not store application data. The catalog is a
means to find application data based on various aspects of that data.
So Zope provides you with framework code that makes it easy for your
data objects to re-catalogue themselves on changes, but all the
application support objects
don't implement this because they don't, normally, contain data.

If your implementation relies on Python Scripts or Page Templates to
contain application data, you are using the framework in a way it was
not designed to do (for a good reason)! If so, rethink your
application, instead of trying to make the framework fit.


Ok, a real case:

I'm working on a data system (I like the concept data system) for a friend
He is Dj for that I want to create a concept like

Session
   Form -> A formulator
   See -> Used to view the session on its default view
   Ask -> Used to view the session to change it data (to modify the object)
   Edit -> Used to change the properties (via Ask view)
   ...

Ask will be something like


 
 


As you can see a lot of entities will use the same Ask

I will create a container to store all these kind of functionality to 
use is as a generic Ask
In a normal way I can use adquisition to make these way but I want to 
store things with some kind of order then I define something like


MyFriendsWeb (this is an entity)
   Forms (is not an entity but I use the same product to create it)
  Session -> Formulator
  Production -> Formulator
   Functionality (is not an entity but I use the same product to create it)
  Ask
  See
  Edit
   Session (this is an entity)
  Form -> points to MyFriendsWeb/Forms/Session
  See -> Will use the generic one
  Ask -> this one too (the generic one)
  ...
   Production (this is an entity)
  Form -> points to MyFriendsWeb/Forms/Production
  See -> Will use the generic one
  Ask -> this one too (the generic one)

MyFriendsWeb is an entity for that reason catalog everything that not in 
another entity like Session


Session is another entity for that catalog See (the pointer one not the 
real See), Ask (like See is a pointer) and so on


What I want is semantic structure not only usefull structure that makes 
that every entity will know everything it can do or be


With my model I use my product for every container, formulators/page 
templates/script pythons like functionality an so on


My product is about 300 lines of code but I can describe everything I need

Is like Plone but with 300 lines of code

My model works but I would like if its possible to use something like



or



instead of



   


It works, its only a question of use it as simple as I can

For that my product is a ZCatalog with a property Entity (boolean)
If you mark Entity as true for an object every objects below these one 
are catalogued by my product


I use an override of __bobo_traverse__ and __call__

What do you think?

--
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] Catalog aware

2006-07-24 Thread Garito

Lennart Regebro escribió:

On 7/19/06, Garito <[EMAIL PROTECTED]> wrote:

> Look at the CatalogAware mixin class.
But with this class I could create a new class of PT Catalog aware,
isn't it?


Yup.


I would like to convert a normal PT is this possible?'


Yes, with monkeypatches, but really, you don't want to go that way.
This feels to me as a case of you asking the question you THINK is the
problem, because thats the problem you have right now. But often when
that happens you have been running in the wrong direction for a while.

It's like somebody asking how to break down a wall to get to the mall
on the other side, when the best way to get to the wall is to get out
of the dead-end street and then take left. :)

So in short: Why on earth would you want page templates to be 
catalogaware? :)



Sure but Is the cost so big?


Yes.


Ok, I'll rethink the question and try another aproach

Thanks by now! (I'll ask you later if needed)

--
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] Acquisition question

2006-08-29 Thread Garito

Ferhat Ayaz escribió:

Hi list,

I'm a newby to zope. Sorry if the question is to
dummy.
Here my question:

You can do acquisition on URL like

http://localhost:8080/employee_by_id/emp_id/2/viewEmployee

here the result of employee_by_id (param is emp_id=2)
is used by viewEmployee.

But I want to use it in a page template like




Unfortunatly this will not work like the above
example.

Is it possible to do acquisition in this way, or is
there a way to this?

Thanks,
Ferhat




__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.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 )
  
At this point if employee_by_id is the first param then all are on 
traverse_subpath list like:


['employee_by_id', 'emp_id', 2, 'viewEmployee']

then you could use this list to know what your user is asking for

Sorry for my poor english

--
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] manage_beforeDelete

2006-10-09 Thread Garito
Hi all!

I have a class like these:

class Test(CatalogAware, , OrderedFolder):
def manage_beforeDelete(self, item, container):
CatalogAware.manage_beforeDelete(item, container)
OrderedFolder.manage_beforeDelete(item, container)

I only put the relevant code

If I delete de hook to manage_beforeDelete the class works fine (the objects
disappear from the catalog) but if I put the function the catalog don't
delete the objects

any idea?

Thanks!!


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


[Zope] How to do...

2006-10-18 Thread Garito

Hi all!

How can I control the way an attribute of a product is readed? 
__getattr__? __getattribute__?


I try the __getattribute__ way but it modifies the property pages

Example:

I create an object instance of the product and like:

Property1 = 'Some text'
Property2 = 2006-10-18

I would like to call Property2 like

object.Property2 and retrieve the data with the current locale

For spanish locale I would like to retrieve 18-10-2006

But if I read the property pages of this object I would like to conserve 
the given data


Is this 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 )


Re: [Zope] How to do...

2006-10-18 Thread Garito

Andreas Jung escribió:



--On 18. Oktober 2006 16:15:37 +0200 Garito <[EMAIL PROTECTED]> wrote:


Hi all!

How can I control the way an attribute of a product is readed?
__getattr__? __getattribute__?

I try the __getattribute__ way but it modifies the property pages

Example:

I create an object instance of the product and like:

Property1 = 'Some text'
Property2 = 2006-10-18

I would like to call Property2 like

object.Property2 and retrieve the data with the current locale


Don't do that. Make a clear separation between the storage layer and 
any kind of presentation issues. If you need your internal data 
represented in a fancy way, write a dedicated accessor method and use 
this one inside your templates (or whatever) instead of accessing the 
data directly.


-aj

Then I can't create a property that stores a tal expression for example?

I would like to write things like:

object.property = 'here/anotherproperty'
object.anotherproperty = 'Barcelona'

and ask it like:

print object.property -> 'Barcelona'

or

 -> 'Barcelona'

Is this 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 )


Re: [Zope] How to do...

2006-10-18 Thread Garito

Andreas Jung escribió:



--On 18. Oktober 2006 18:53:05 +0200 Garito <[EMAIL PROTECTED]> wrote:


Andreas Jung escribió:



--On 18. Oktober 2006 16:15:37 +0200 Garito <[EMAIL PROTECTED]> wrote:


Hi all!

How can I control the way an attribute of a product is readed?
__getattr__? __getattribute__?

I try the __getattribute__ way but it modifies the property pages

Example:

I create an object instance of the product and like:

Property1 = 'Some text'
Property2 = 2006-10-18

I would like to call Property2 like

object.Property2 and retrieve the data with the current locale


Don't do that. Make a clear separation between the storage layer and
any kind of presentation issues. If you need your internal data
represented in a fancy way, write a dedicated accessor method and use
this one inside your templates (or whatever) instead of accessing the
data directly.

-aj

Then I can't create a property that stores a tal expression for example?

I would like to write things like:

object.property = 'here/anotherproperty'
object.anotherproperty = 'Barcelona'

and ask it like:

print object.property -> 'Barcelona'

or

 -> 'Barcelona'



This posting is totally weird. Sorry, but I have really no idea
what you're trying to do. It makes absolutely no sense.

-aj


I only try to create a model but I'm searching the best way to create it

I try to create properties "like" this is (in the last example):

object.property "is like" object.anotherproperty

Is this possible?

--
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 do...

2006-10-18 Thread Garito

Andreas Jung escribió:



--On 18. Oktober 2006 19:17:42 +0200 Garito <[EMAIL PROTECTED]> wrote:

I only try to create a model but I'm searching the best way to 
create it


I try to create properties "like" this is (in the last example):

object.property "is like" object.anotherproperty



You got already multiple advices. Write a method "anotherproperty()" and
do whatever you like with in this method. You can call it from
TALES as here/anotherproperty. TALES bascially deals with attributes
and methods in the same way.

-aj
Sure! But I need to write a method for every "like" property but I would 
like (if is possible) a way to evaluate if a property is a TALES 
property automatically


Perhaps the property could begin like "tal: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 do...

2006-10-18 Thread Garito

Andreas Jung escribió:



--On 18. Oktober 2006 19:41:07 +0200 Garito <[EMAIL PROTECTED]> wrote:


You got already multiple advices. Write a method "anotherproperty()" 
and

do whatever you like with in this method. You can call it from
TALES as here/anotherproperty. TALES bascially deals with attributes
and methods in the same way.

-aj

Sure! But I need to write a method for every "like" property but I would
like (if is possible) a way to evaluate if a property is a TALES 
property

automatically



Do you *really*, *really*, *really* need this feature? You can of course
implement your own __getattr__() methodbut every Python programmer 
would likely slap you left and right...these are the last comments on 
this issue..

it's still to weird in my opinion.

-aj 
Yes I think about __getattr__() method but I don't have any idea about 
how to retrive the original property


And another question about this is if implementing __getattr__ method 
the property manager works ok or not (for me works ok if property 
manager displays the tal expression instead of the process of the expression


will __getattr_ be the method I'm looking for?

Thanks Aj and sorry for my weird questions

--
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 do...

2006-10-18 Thread Garito

Dieter Maurer escribió:

Garito wrote at 2006-10-18 16:15 +0200:
  

...
How can I control the way an attribute of a product is readed? 
__getattr__? __getattribute__?



A "product" is an extension mechanism for Zope. Usually, a
"product" does not have attributes (you are interested in).

But inside your product you may have defined classes
instances of which you place into the Zope hierarchy
(<http://www.dieter.handshake.de/pyprojects/zope/book/chap3.html>
speaks about site building objects).

The standard Python way to access their attributes ("__getattr__"
and "__getattribute__") will work but has caveats: It is *very* easy
to create infinite loops with it and their "self" with not be
acquisition wrapped.

The Zope specific safer way is to implement "__bobo_traverse__".
Both the publisher as well as "[un]restrictedTraverse" (which
is internally used by TALES path expressions) use "__bobo_traverse__"
when defined. However, Python's "getattr" will not use it.



  

Hi, Dieter!

How can I create an accessor to read (not to write) and preprocess all 
properties?


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] How to do...

2006-10-19 Thread Garito

Chris Withers escribió:

Garito wrote:

object.Property2 and retrieve the data with the current locale

For spanish locale I would like to retrieve 18-10-2006


Rather than torturing yourself with all this weirdness, maybe you 
should look at using Zope 3's locale support in your app, whether it's 
zope 2 or zope 3...


cheers,

Chris

Sure, but I don't need only localization, I need to preprocess the 
properties before read them


Is this possible?

--
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 do...

2006-10-20 Thread Garito

Dieter Maurer escribió:

Garito wrote at 2006-10-18 20:27 +0200:
  


How can I create an accessor to read (not to write) and preprocess all 
properties?



If you are only willing to write a single method that should do for
all properties, then you will need to use "__getattr__".


You remember I have warned you: "__getattr__" is difficult and error prone!

   Even me, I have spend hours to understand why I get occasional
   "__getattr__" infinite loops...
   And I know, in principle, all the potential caveats...

  
Can you point me to some example/product to try to avoid this kind of 
errors?

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] How to do...

2006-10-20 Thread Garito

Andreas Jung escribió:



--On 20. Oktober 2006 14:20:51 +0200 Garito <[EMAIL PROTECTED]> wrote:



   And I know, in principle, all the potential caveats...



Can you point me to some example/product to try to avoid this kind of
errors?



You got already multiple useful advices how to proceed. Take one!
Follow the road that almost all reasonable Zope developers would use:
write your own accessor  methods or use ComputedAttribute or
work with Python properties. But you should forget your (weird) idea.
Get it out of your head. Now!

-aj

Sorry but you don't know the whole project
If there are a test to do I'll do it because I need to evaluate if Zope 
is my solution or not


There are things on Zope that I like a lot but there are things I don't

If Zope is not my solution I need to found the right solution

No weird anything: Zope could do the work or not, easy, don't you thing so?

Perhaps Zope 3?

I don't know (I'm asking to you)

But, please, don't tell me to forget my idea is like if I tell you what 
I think about the things I don't like about Zope and the I says: Zopers, 
forget Zope because I don't like ZClass or DTML


Sorry again (for my expressions fault)

--
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 do...

2006-10-20 Thread Garito

Andreas Jung escribió:



--On 20. Oktober 2006 14:41:58 +0200 Garito <[EMAIL PROTECTED]> wrote:


-aj

Sorry but you don't know the whole project


No project can be as scary as your requirements of your original 
posting :-)



If there are a test to do I'll do it because I need to evaluate if Zope
is my solution or not


Zope and Python are likely a prefect choice to your (unknown) problem but
you need to understand some basic principles of both.


But, please, don't tell me to forget my idea is like if I tell you 
what I

think about the things I don't like about Zope and the I says: Zopers,
forget Zope because I don't like ZClass or DTML



So why don't you follow the "standard" way? Dieter pointed you using
__getattr__() but I doubt that it is the right choice for you because you
with your small Python background you will definitely run into problems
that will be hard for you to be resolved on your own. So take the 
common road. This is less painful.


-aj
I agree with you: my Python background is uncompleted but I'll learn 
Python/Zope as deep as I need to create the product I'm looking for


There are some Zope standard ways to do the job but my experience tells 
me to avoid some programmers responsability because programmers make 
mistakes (I know it because I make mistakes ;-) )


The requieriment of my product is to be simple to use even if the 
morphology of this product is a little hard or weird


The simplest way is to implement the "general accessor" as I thing but I 
don't know if Zope do it possible


If not I can find another way to do the same but the accessor way seems 
the *simplest* one


I try to find the mother cell to describe *every* entity. Is that goal 
what is weird but, boys, weird problems wants weird solutions


Perhaps new ways begins as weird projects

If you thing __getattr__ will be the solutions perhaps I could try it 
but if you point me to avoid the recursive problems I could do the job


Can you point me to a product or a paper to understand the __getattr__ 
problems?


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] How to do...

2006-10-20 Thread Garito

Andreas Jung escribió:



--On 20. Oktober 2006 15:08:26 +0200 Garito <[EMAIL PROTECTED]> wrote:


If you thing __getattr__ will be the solutions perhaps I could try it 
but

if you point me to avoid the recursive problems I could do the job

Can you point me to a product or a paper to understand the __getattr__
problems?



Dieter told you already that you will into infinite recursions when 
accessing attrs of the same instance within __getattr__(). You should 
be able to find about related threads by using Google. I hope you can 
extract the magic Google words from this thread.


-aj

A, ok! Sure

I'll search at google and I'll be back with more explicit questions

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 )


  1   2   3   >