IRC log of #zope3-dev for Monday, 2005-02-14

*** tarek_ has quit IRC00:54
*** xenwryly has joined #zope3-dev01:41
*** mgedmin has joined #zope3-dev02:11
*** mgedmin has quit IRC02:20
*** xenwryly has quit IRC02:46
*** alga has quit IRC03:11
*** d2m has quit IRC03:34
*** hazmat has joined #zope3-dev04:14
*** hazmat has quit IRC04:58
*** hazmat has joined #zope3-dev04:58
*** ChanServ sets mode: +o hazmat05:28
*** tvon has quit IRC06:11
*** bskahan has joined #zope3-dev06:28
*** sashav has joined #zope3-dev06:53
*** `anthony has quit IRC06:56
*** Jim7J1AJ1 has joined #zope3-dev07:07
*** Jim7J1AJH has quit IRC07:11
*** Jim7J1AJ1 has quit IRC07:11
*** Jim7J1AJH has joined #zope3-dev07:11
*** `anthony has joined #zope3-dev07:44
*** sashav has quit IRC07:46
*** bskahan has left #zope3-dev07:48
*** hazmat has quit IRC08:17
zagymoin08:29
*** Tiran has joined #zope3-dev08:44
Tirangood morning08:44
zagymoin Tiran08:46
Tiranhey zagy ;)08:47
TiranI'm waiting for a response to http://article.gmane.org/gmane.comp.web.zope.zope3/1176008:47
*** sashav has joined #zope3-dev09:07
*** SteveA has joined #zope3-dev09:18
Tiranhey SteveA09:19
*** `anthony has quit IRC09:23
*** stub has joined #zope3-dev09:23
*** Tiran has left #zope3-dev09:27
SteveABjornT: ping09:52
*** d2m has joined #zope3-dev10:09
*** SteveA has quit IRC10:42
*** sashav_ has joined #zope3-dev10:51
*** SteveA has joined #zope3-dev10:54
*** sashav has quit IRC11:06
*** MalcolmC has joined #zope3-dev11:10
*** Theuni has joined #zope3-dev11:10
*** __gotcha has joined #zope3-dev11:24
*** __gotcha has quit IRC11:35
*** Aiste has quit IRC11:42
*** Aiste has joined #zope3-dev11:51
*** __gotcha has joined #zope3-dev11:54
*** J1m has joined #zope3-dev12:08
*** agenteo has joined #zope3-dev12:09
*** agenteo has left #zope3-dev12:09
*** mgedmin has joined #zope3-dev12:09
*** dlk has joined #zope3-dev12:13
*** stub has quit IRC12:13
*** dlk has left #zope3-dev12:14
*** SteveA has quit IRC12:28
*** SteveA has joined #zope3-dev12:30
*** stub has joined #zope3-dev12:52
*** Tiran has joined #zope3-dev12:57
*** bradb has joined #zope3-dev12:57
Tiranhello12:57
TiranI'm still waiting for a response on http://article.gmane.org/gmane.comp.web.zope.zope3/11760. Has anybody time to verify my code?12:58
J1mI don't have time to review this in detail.13:02
J1mDid you try to reproduce the C API?13:02
Tiranyes13:02
J1mHave you verified that the pickles are the same?13:02
Tiranaccording to the unit tests13:02
J1mIn that case, I'm good with it.13:02
Tiranall tests are passing when I remove the c module13:03
Tiranthere is a test for __reduce__(). I think that is a test for the pickle?13:03
J1mYou might try to twist Philipp's arm to take a look at it.13:03
J1mOK13:03
J1myup13:03
Tiranhehe, good idea :)13:03
J1mSo, if the C and Python version's __reduce__ return the same thing, then that should be good.13:04
J1mThanks for doing this.13:04
Tiranyou're welcome13:05
Tiranit needs some unit testing13:07
*** stub has quit IRC13:16
*** niemeyer has joined #zope3-dev13:24
*** deo has joined #zope3-dev13:59
*** stub has joined #zope3-dev14:02
*** SteveA has quit IRC14:05
*** SteveA has joined #zope3-dev14:06
*** srichter has quit IRC14:55
*** J1m has quit IRC15:06
*** niemeyer has left #zope3-dev15:19
*** niemeyer has joined #zope3-dev15:19
*** SteveA has quit IRC15:29
*** srichter has joined #zope3-dev15:29
*** ChanServ sets mode: +o srichter15:30
*** SteveA has joined #zope3-dev15:31
*** deo has quit IRC15:39
*** tvon has joined #zope3-dev15:54
mgedminI heard that zope.app.tests.setup.placefulSetup is (informally) deprecated, is that right?16:01
*** hdima has joined #zope3-dev16:04
*** wrstlprmpft has joined #zope3-dev16:06
*** wrstlprmpft has left #zope3-dev16:06
*** mgedmin has quit IRC16:10
*** bradb has quit IRC16:28
*** bradb has joined #zope3-dev16:28
*** SteveA has quit IRC16:36
*** SteveA has joined #zope3-dev16:37
*** `anthony has joined #zope3-dev16:38
*** bradb has quit IRC16:49
*** bradb has joined #zope3-dev16:50
*** J1m has joined #zope3-dev16:51
*** hdima has quit IRC16:51
srichterJ1m: does a descriptor know its name in a class instance?16:52
TiranJ1m: I've added pickle tests to i18nmessage16:52
J1msrichter, not unless someone tells it (e.g. in it's constructor)16:57
J1mTiran, cool16:58
srichterJ1m: ok; its not that bad right now; it would be just a nice feature to have anyways16:58
srichterJ1m: I am almost done, btw16:58
srichterso I think today or tomorrow is the day of days :-)16:59
J1mWe'll hold on to our butts. :)16:59
srichterhe he... you better are :-)17:00
J1mPlease make a tag before the merge.17:01
srichterok, will do17:01
*** alga has joined #zope3-dev17:02
*** bskahan has joined #zope3-dev17:03
*** bska|mobile has joined #zope3-dev17:03
*** bskahan has quit IRC17:04
*** benji_york has joined #zope3-dev17:18
*** philiKON has joined #zope3-dev17:25
*** tvon has quit IRC17:27
*** tvon has joined #zope3-dev17:41
srichterJ1m: I found a bug in your fixed implementedByFallback(cls) function17:42
srichterJ1m: this method assumes that cls is an object that has a name17:43
Tiranhey philiKON :)17:43
*** sashav_ has quit IRC17:43
philiKONhi Tiran17:43
srichterbut for some reason that does not seem to be true all the time17:43
philiKONTiran, J1m, haven't got much time, but i was still wondering... when we decided to reimplement Messages as immutable objects, we realized that it had to be a non-python implementation because true immutability cannot be achieved in python, right?17:45
philiKONso, having a fallback impl is always nice, but we should definitely state that it doesn't give you true immutability17:45
*** SteveA has quit IRC17:46
srichterJ1m: I take that back; getattr(cls, '__module__', '?') returns None for lambda functions17:46
philiKONTiran, also, I don't think your Message implementation should derive from MessageID. we want to rid MessageID at some point and unnecessary dependencies on it wouldn't be good then17:47
srichterJ1m: so changing the code to getattr(cls, '__module__', '?') or '?' works17:47
TiranphiliKON: already fixed17:47
J1msrichter, O don't really know what you are talking about.17:48
J1msrichter, I don't really know what you are talking about.17:48
srichterJ1m: :-)17:48
*** SteveA has joined #zope3-dev17:48
srichterJ1m: you changed the method implementedByFallback() recently to support all types of callables17:48
J1myes17:49
srichterJ1m: at some point when you create the specification for the object, you set the name17:49
*** gintas has joined #zope3-dev17:49
philiKONTiran, have you tested whether the C implementation and yours have compatible pickles?17:49
srichterJ1m: there you call getattr(cls, '__module__', '?')17:49
philiKONTiran, i assume the doctest passes for your impl17:49
TiranphiliKON: I've added pickle tests to the last version of my fix17:50
srichterJ1m: this will return None for lambda functions, since they have a '__module__' attribute but with a None value17:50
srichterJ1m: but this call must return a string17:50
srichterJ1m: so I appended `or '?'` to the call, in case it is None17:50
J1mk17:50
TiranphiliKON: I'm able to pickle and unpickle pyMessage with pyMessage, pyMessage with cMessage and cMessage with pyMessage17:50
philiKONTiran, great17:53
philiKONTiran, then I'm +1 for your impl. the documentation should state the immutability issue though17:53
TiranphiliKON: what about pointing to the message.txt file in the doc string? It should be sufficiant, shouldn't it?17:54
*** mgedmin has joined #zope3-dev18:01
*** sashav has joined #zope3-dev18:03
srichterphiliKON: what is the best way to merge a branch with many changes in SVN?18:26
tvonvimdiff18:27
tvonheh18:27
srichterI made a checkout of the trunk and want to merge the branch into it18:27
srichterbut I need to specify revision numbers18:27
srichterI want to avoid specifying rev numbers, simply because I do not know them18:27
srichterI just want to say: "merge all changes made in the branch onto the trunk"18:28
Tiransrichter: meld?18:28
srichterI guess the simplest approach would be to simply copy the branch? The history should be conserved because I merged all changes from the trunk18:29
srichterTiran: is meld a SVN command?18:29
mgedminsashav, meld is a nice gtk+ app for doing all sorts of merges18:29
Tiranit's a nice diff utility like vimdiff18:29
Tiranpython and wx18:30
srichterdiffs are not the problem!18:30
srichterI can deal nicely with it using the command line tools and Emacs18:30
srichterI want to avoid missing any revisions being merged18:30
srichterand the diff utilities break down anyways, since there are too many changes18:31
srichterJ1m: do you have any suggestion?18:33
srichter(if I cannot find a better solution, I look for the revision in which I first created the branch18:33
gintassvn log --stop-on-copy?18:37
srichterok, so merging does not work, because I temporarly deleted a package and readded it18:37
srichterwhat can I do about that?18:37
srichtergintas: thanks18:38
srichteris there something like a force option?18:38
*** SteveA has quit IRC18:42
srichterok, --ignore-ancestry is the right flag18:42
srichterugh, 73 conflicting files :-(18:46
philiKONsrichter, i know it's too late for this now, but i think for the future one should avoid merging the trunk to a branch and then everything back.18:51
srichterok, but that's really a hard requirement18:51
philiKONit's not18:51
philiKONyou create a branch18:51
philiKONthen you want to see what happens when you merge it18:52
srichterif you have a long living branch, then this is unpractical18:52
philiKONso, you create a new branch off of the trunk18:52
philiKONand merge your branch into this one18:52
philiKONresolve all conflicts18:52
philiKONand merge the 2nd branch to the trunk18:52
srichterI see18:52
srichterok18:52
philiKONthat way you should only have to resolve conflicts once18:53
srichterright, ok, good to know18:53
*** SteveA has joined #zope3-dev18:53
philiKON(assumming of course the conflict resolving branch is short-living in comparison to the original branch)18:54
srichteroh man, this merge will be sooooooooooooo painful; I even get 5 failures in zope.component, which merged fairly well :-(18:54
*** gintas has quit IRC19:04
*** sashav has quit IRC19:29
*** tvon has quit IRC19:45
*** tvon has joined #zope3-dev19:45
*** Tiran has left #zope3-dev19:50
*** MalcolmC has quit IRC19:54
*** SteveA has quit IRC19:57
*** __gotcha_ has joined #zope3-dev20:05
*** SteveA has joined #zope3-dev20:08
*** tvon has quit IRC20:12
*** Theuni has quit IRC20:15
*** __gotcha has quit IRC20:16
J1msrichter, do you still have a question for me?20:21
mgedminwould anyone mind if I updated test.py to use getopt.gnu_getopt instead of getopt.getopt?20:28
mgedmingnu_getopt lets you intermix options and arguments20:28
mgedminI find that I sometimes do ./test.py -pv foo -1, and -1 is interpreted as a regexp instead of as an option20:28
*** alga has quit IRC20:28
*** __gotcha_ has quit IRC20:34
*** __gotcha has joined #zope3-dev20:34
*** GaryPoster has joined #zope3-dev21:08
benji_yorkHi GaryPoster!21:08
GaryPosterHi benji_york ;-)21:08
*** SteveA has quit IRC21:14
*** SteveA has joined #zope3-dev21:23
*** oling has joined #zope3-dev21:53
olinghello... is there any way zo do virual hosting insider zope3, without the help of an external (apache) web server? like the virtual host monster in zope221:56
SteveAyou can do it by writing your own HTTPPublisherRequestFactory21:58
SteveAhttp = ServerType(PublisherHTTPServer,21:58
SteveA                  HTTPPublicationRequestFactory,21:58
SteveA                  CommonAccessLogger,21:58
SteveA                  8080, True)21:58
SteveAthat's how the basic http server is defined21:58
SteveAoverride the HTTPPublicationRequestFactory21:59
SteveAto set the virtual host information on that port21:59
srichterJ1m: not yet, but I will later22:00
*** niemeyer has quit IRC22:09
olingSteveA: Thx, i hoped there is some more intuitive way. but it's still ZopeX3 and not Zope3 :-)22:10
*** stub has left #zope3-dev22:11
SteveAoling: this is actually only a very few lines of code required.22:12
SteveAof course, the hard part is determining exactly which lines you need to write22:13
SteveAI'd estimate around 15 lines of code, and a zcml declaration, and a hook-up in your zope3.conf (or whatever conf file you use)22:14
SteveAand most of those lines of code are just in the imports and subclassing22:15
*** bradb has quit IRC22:21
*** xen has joined #zope3-dev22:24
*** xen has quit IRC22:28
*** xenwryly has joined #zope3-dev22:28
*** jhauser has joined #zope3-dev22:32
*** __gotcha has quit IRC22:34
*** __gotcha has joined #zope3-dev22:34
*** Aiste has quit IRC22:35
*** jhauser_ has quit IRC22:44
*** projekt01 has joined #zope3-dev22:50
*** SteveA has quit IRC22:53
mgedminI wrote a short HOWTO on Zope 3 generations22:55
mgedminit is here: http://mg.pov.lt/blog/zope3-generations.html22:55
mgedminI'd appreciate any comments (mail them to <marius@pov.lt>)22:55
*** mgedmin has quit IRC22:56
*** SteveA has joined #zope3-dev23:03
*** hazmat has joined #zope3-dev23:45
srichteryipee! all tests pass!23:53
projekt01Cool, I'm wonder who much work we have till TIKS is running again.23:53
srichter:-) I guess you will figure this one out soon :-)23:54
projekt01Yeah, Do you merge now?23:54
srichterI am about to, yes23:54
projekt01Great, then we can make a migration session tomorrow23:55
srichterI hope it will nto be too bad23:55
projekt01Perhaps we can try out the generation HOWTO from mgedmin, Thanks marius ;-)23:57

Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!