[Zope-dev] zIRCon is now IRCGate

2000-12-12 Thread Carlos Neves

Since Ty Sarna pointed out that there is another thingy out there labeled as
Zircon, I have changed the products name to the original project ID, IRCGate.

Yes, I know, I should have checked. (oops, I did it again ;) )

Thank you, Ty Sarna, and my apologies to anyone who already got zIRCon.

 -- 
"Kill processes, not people."
- Larry Cohen

Carlos Neves
[EMAIL PROTECTED]

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




[Zope-dev] Announce: IRC client for zope (alpha)

2000-12-11 Thread Carlos Neves

Hello,

I have just uploaded to http://www.zope.org/Members/neli/zIRCon a development
version of my zope IRC console product. The reason I post it in this alpha
state is so that the shining minds around there might have an idea on how to
solve a tiny problem I'm having... I hang on to the socket connection waiting
for feedback from the server, so that things feel like real-time. But the 10
secs I wait before automagically refreshing and, therefor, releasing for
moments the socket just seem too much when I'm hangin on to ALL the channels
medusa makes available, rendering the zope install a bit too slow on the
'waiting for reply' state.
Anyway, it works with some limitations, wich are not documented (yet). But the
raw bases are all there and the code is (slightly) documented.

Hope you can find some time to have fun with it and *please* send me your
feedback on that socketing issue.

-- 
"Kill processes, not people."
- Larry Cohen

Carlos Neves
[EMAIL PROTECTED]

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




[Zope-dev] Another caching scheme...

2000-11-08 Thread Carlos Neves

Hello, all.

The reason that brings me here is to ask for the good people's cooperation. Ok,
bad people can cooperate too ;)

In the long hard way of creating some sort of internal cache scheme for zope,
one that wouldn't depend on meta-tags and would be transparent to the
developer/user, I came up with CachePool
(http://www.zope.org/Members/neli/CachePool).
But that just isn't enough... though it works for a specific caching scheme,
it's not a site wide, or should I say, server wide. Mindstorming with my fellow
workers, one (the boss, and that's why he's the boss) came up with the magic
words... cache the html on it's way out and make some callback on request to
test if we have that particular request in store. So I did...
First try was to integrate SiteAccess with a traversal interfaced CachePool,
one you could call /Cacher/thing/to/grab in order to cache /thing/to/grab from
the root. But __bobo_traverse__ just isn't my friend.
Next thing I did, I took out the surgeon gloves and went to get my hands
dirty. I started tampering with ZPublisher/Publish.py.
And this is where I need your help. To those of you who don't suffer from a
faint heart and wish to increase zope's performance by about 6x (my number,
your's *will* be different), I ask to point your browsers to my Member page,
where instructions and source will be available.
btw, the one on my Members page is for Zope 2.2.2, and will only work with
zope's with the exact same Publish.py.  Both win and linux 2.2.2 versions
have the same Publish.py.

Oh, and of course, I would appreciate any feedback on
bugs/features/comments/you_have_no_idea_what_your_doin/hello_how_are_you

Hope I haven't bothered you, but I tend to get carried away!

-- 
"Kill processes, not people."
- Larry Cohen

Carlos Neves
[EMAIL PROTECTED]

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




Re: [Zope-dev] Caching problems

2000-08-16 Thread Carlos Neves

You directly change a nonpersistence participant object.
As stated in
http://www.python.org/workshops/2000-01/proceedings/papers/fulton/zodb3.html :
quote
All sub-objects of persistent objects must be persistent or immutable. 
 This rule is necessary because, without it, the persistence system would not 
be notified of persistent object state changes.
 Like most rules, this rule can be broken with care, as is done in the issue 
tracking system. A persistent object can use mutable non-persistent
 sub-objects if it notifies the persistence system that the sub-object has 
changed. It can do this in two ways. It can notify the persistence system
 directly by assigning a true value to the attribute _p_changed
/quote

so what I think you need is to tell the object wich has the list property that
it has changed, coz he can't know it by himself if you list.append or
list.extend or even list[0] = something. To do this you can:
  1- set self._p_changed = 1 on the object after the change (append or
something)
  2 - assign self.list to itself so that the object knows a change has been
made to that property.

but mainly... RTFM ;-)

On Wed, 16 Aug 2000, Bob Pepin wrote:
 
 Hi,
 I have a problem with a class I wrote where I have a list as an
 attribute of the class. When I append something to that list, it stays
 there at first, but only until I restart Zope. It disappears (==is set
 to the value I assigned to it in __init__) and reappears as well when
 I hit reload a few times very quickly. Whenever I flush the cache it
 disappears immediately. There seems to be no transaction registered by
 Zope, because it doesn't show up under 'Undo'. I observed this both
 thru a dtml page and a debugging function written in python.
 
 I attached the code below, the method and attributes I'm talking about
 are IEEShare.read_access_roles, IEEShare.write_access_roles and
 IEEShare.add_user_access()
 
 The problem exists with both Zope 2.2.0 and 2.2.1b1. I'm running
 2.2.1b1 right now on a SuSE Linux 6.4 default installation. (standard libc,
 threads etc.) 
 Both versions of Zope are compiled from source.
 

-- 
"Sometimes I think the surest sign that intelligent life exists elsewhere
in the Universe is that none of it has tried to contact us."

Carlos Neves
[EMAIL PROTECTED]

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




Re: [Zope-dev] ZODB....

2000-07-26 Thread Carlos Neves

On Tue, 25 Jul 2000, [EMAIL PROTECTED] wrote:
 Hi, 
 
 I want to develop an external program that can store and retrieve 
 an Object (such as a Person) in the ZoDB
 I tried the example that I found in the How to's but it doesn't works  
 In fact, I have the following message :
 ZODB.FileStorage(file) 
 attribute Error : FileStorage
 
 --But I have imported ZODB
 
 And, when I try to import ZODB.FileStorage : the program stops with the 
 following message :
 TypeError : call of non-function type 
 
 what's wrong ?
 
 did Anybody have an example like this... ? 
 Can anybody help me ?
 

Start by doing this:

import ZODB.FileStorage

ref = ZODB.FileStorage.FileStorage('YourData.fs')


and take it from here...
-- 
"Sometimes I think the surest sign that intelligent life exists elsewhere
in the Universe is that none of it has tried to contact us."

Carlos Neves
[EMAIL PROTECTED]

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




[Zope-dev] update: CachePool 0.2.3

2000-06-29 Thread Carlos Neves

Hello,

Just uploaded version 0.2.3 of the CachePool product. It fixes a serious bug
wich crashed zope (a little too often) among some other improvements.

For those of you who don't know, this product caches pages in an array,
dependent of the calling URL and the query string.

you can get it at http://www.zope.org/Members/neli/CachePool


Carlos Neves
[EMAIL PROTECTED]


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




[Zope-dev] Calling rendered objects from a product

2000-06-15 Thread Carlos Neves

Hi,

In the effort of developing a Cache scheme wich would work for highly dinamic
data, and where the called page might be called with an enormous amount of dif
query strings, I stumbled with a little problem...

I need to call a rendered url, passed the REQUEST and wanted to do it directly
to the self var. Not being able to do it, I have come with the solution of
calling urllib with URL1, the called object and '?' + the query string... Not
 that fancy, but it works... slowly but smoothly.
I am having a bit of trouble, though, when calling this Cache with 1000
connections and 100 simultaneous. The server times out and commits a silent
suicide. It keeps working as far as the start script is concerned, but no
longer responds to any requests. I have only the fact that I can call a dtml
method with the values above with no trouble at all as a clue, so any pointer
will be quite welcome.

the cache prod is called CachePool and is available in:
  http://www.zope.org/Members/neli/CachePool


-- 
Carlos Neves
[EMAIL PROTECTED]

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