*** vlado has joined #zope3-dev | 00:04 | |
*** dunny has joined #zope3-dev | 00:05 | |
mgedmin | you could extract the principal from the current interaction... | 00:10 |
---|---|---|
philiKON | well, from one of the participations of the current interaction | 00:11 |
philiKON | though usually the only participation hapens to be the reuqest :) | 00:11 |
baldtrol | yeah :\ | 00:11 |
baldtrol | basically i have a few content objects associated with a principal. the content objects hook back into an rdb, and it's a view on those content objects that need to have the choice widget. but the vocabulary needs "request" in order to seek for the right bits out of the rdb to create the right choice elements... | 00:13 |
baldtrol | if vocabularies aren't the right way, that's ok too. | 00:13 |
*** vlado has quit IRC | 00:14 | |
*** b_52Centos__ has quit IRC | 00:20 | |
*** b_52CEntos_ has quit IRC | 00:34 | |
*** b_52CEntos_ has joined #zope3-dev | 00:41 | |
*** baldtrol has left #zope3-dev | 00:49 | |
*** mgedmin has quit IRC | 01:04 | |
*** volvox has joined #zope3-dev | 01:08 | |
*** philiKON has quit IRC | 01:22 | |
*** philiKON has joined #zope3-dev | 01:23 | |
*** Theuni has quit IRC | 01:29 | |
*** sashav has quit IRC | 01:37 | |
*** J1m has quit IRC | 01:38 | |
*** nathany has quit IRC | 01:43 | |
*** philiKON has quit IRC | 01:56 | |
*** b_52Centos__ has joined #zope3-dev | 02:25 | |
*** b_52CEntos_ has quit IRC | 02:36 | |
*** stub has joined #zope3-dev | 02:36 | |
*** nathany has joined #zope3-dev | 02:56 | |
*** avoine_ has joined #zope3-dev | 03:16 | |
*** RaFromBRC is now known as RaFromBRC|away | 03:18 | |
*** jinty has left #zope3-dev | 03:21 | |
*** jinty has quit IRC | 03:21 | |
*** yota has quit IRC | 03:25 | |
*** benji has quit IRC | 03:37 | |
*** RaFromBRC|away is now known as RaFromBRC | 03:41 | |
*** volvox has quit IRC | 03:44 | |
*** RaFromBRC has quit IRC | 04:24 | |
*** hazmat has quit IRC | 04:32 | |
*** hazmat has joined #zope3-dev | 04:34 | |
*** ChanServ sets mode: +o hazmat | 04:34 | |
*** nathany has quit IRC | 04:49 | |
*** b_52CEntos_ has joined #zope3-dev | 05:08 | |
*** hazmat has quit IRC | 05:10 | |
*** hazmat has joined #zope3-dev | 05:11 | |
*** ChanServ sets mode: +o hazmat | 05:11 | |
*** b_52Centos__ has quit IRC | 05:23 | |
*** hazmat has quit IRC | 05:26 | |
*** b_52CEntos_ has quit IRC | 05:40 | |
*** hazmat has joined #zope3-dev | 05:47 | |
*** ChanServ sets mode: +o hazmat | 05:47 | |
*** b_52CEntos_ has joined #zope3-dev | 05:47 | |
*** hannosch has quit IRC | 06:15 | |
*** dunny has quit IRC | 06:17 | |
*** dunny has joined #zope3-dev | 06:18 | |
*** avoine_ has quit IRC | 06:22 | |
*** dunny has quit IRC | 06:46 | |
*** alecm has quit IRC | 06:46 | |
*** alecm has joined #zope3-dev | 06:48 | |
*** dunny has joined #zope3-dev | 06:53 | |
*** b_52Centos__ has joined #zope3-dev | 06:53 | |
*** b_52CEntos_ has quit IRC | 07:04 | |
*** philiKON has joined #zope3-dev | 07:28 | |
*** baijum has joined #zope3-dev | 07:36 | |
*** eins has joined #zope3-dev | 08:05 | |
*** d2m has quit IRC | 08:21 | |
*** hazmat has quit IRC | 08:53 | |
*** d2m has joined #zope3-dev | 08:55 | |
*** b_52Centos__ has quit IRC | 08:57 | |
*** alga has joined #zope3-dev | 09:01 | |
*** SureshV has joined #zope3-dev | 09:03 | |
*** alecm has quit IRC | 09:05 | |
*** jukart has joined #zope3-dev | 09:08 | |
*** dobee has joined #zope3-dev | 09:14 | |
*** hdima has joined #zope3-dev | 09:16 | |
*** alga_ has joined #zope3-dev | 09:24 | |
*** jukart has left #zope3-dev | 09:26 | |
*** dunny has quit IRC | 09:30 | |
*** romanofski has joined #zope3-dev | 09:36 | |
*** romanofski has joined #zope3-dev | 09:37 | |
romanofski | moin | 09:39 |
*** alga has quit IRC | 09:40 | |
*** alga_ is now known as alga | 09:42 | |
*** dlk has joined #zope3-dev | 09:43 | |
*** alga has quit IRC | 10:02 | |
*** BjornT has joined #zope3-dev | 10:08 | |
*** sashav has joined #zope3-dev | 10:09 | |
*** yota has joined #zope3-dev | 10:16 | |
*** romanofski has quit IRC | 10:31 | |
*** Aiste has quit IRC | 10:33 | |
flox | i see that directive <factory> is deprecated, replaced by <utility> | 10:34 |
flox | but we still use sub-directive <factory> inside a directive <class> | 10:34 |
flox | right? | 10:34 |
*** romanofski has joined #zope3-dev | 10:35 | |
*** romanofski has quit IRC | 10:40 | |
philiKON | flox, you can, but you don't have to | 10:40 |
philiKON | flox, i don't :) | 10:40 |
*** romanofski has joined #zope3-dev | 10:49 | |
flox | in ur example, u still use subdirective 'factory' | 10:52 |
flox | <class ...><factory id="worldcookery.Recipe" title="Create a new recipe" description="..." /> | 10:54 |
philiKON | well, yeah, my example is also 2 years old :) | 10:54 |
flox | i know | 10:54 |
flox | but how i formulate this one differently? | 10:54 |
flox | i try to remove any deprecation from these exemples (to better understand how things evolve) | 10:55 |
philiKON | from zope.component.factory import Factory | 10:55 |
philiKON | recipeFactory = Factory(Recipe) | 10:55 |
philiKON | <utility component=".recipe.recipeFactory" name="worldcookery.Recipe" /> | 10:55 |
flox | first 2 lines should be added to "recipe.py", i guess | 10:56 |
*** alga has joined #zope3-dev | 10:59 | |
philiKON | flox, exactly :) | 11:04 |
flox | thks | 11:04 |
flox | no more deprecation on example from chapter 12 | 11:05 |
flox | hehe | 11:05 |
philiKON | flox, :) | 11:05 |
flox | philiKON: still a problem in zcml file | 11:10 |
flox | philiKON: it does not accept subdirective <utility> below a directive <class> | 11:11 |
*** baijum has quit IRC | 11:11 | |
philiKON | flox, not utility subdirective | 11:12 |
philiKON | flox, utility top-level directive | 11:12 |
philiKON | it's just a standard utility | 11:12 |
flox | but i can link the class to the utilty? | 11:12 |
flox | or i just repove the class... | 11:12 |
philiKON | ? | 11:12 |
flox | s/repove/remove/ | 11:12 |
philiKON | huh? | 11:12 |
philiKON | recipeFactory = Factory(Recipe) | 11:13 |
philiKON | Recipe is the class | 11:13 |
philiKON | recipeFactory is a factory from the Recipe class | 11:13 |
flox | ok | 11:13 |
flox | how i register them in the zcml? | 11:13 |
philiKON | i just told you | 11:13 |
flox | the utility is top-level, ok | 11:13 |
flox | i just keep remove the old <factory> from the <class> and that's all? | 11:14 |
flox | ok i try this | 11:14 |
philiKON | flox, have a look at http://www.zope.org/DevHome/Wikis/DevSite/Projects/ComponentArchitecture/ReducingTheAmountOfZCMLDirectives | 11:14 |
flox | factly, i already seen this page.... | 11:15 |
flox | but i missed the point on *class/factory* | 11:16 |
flox | now it is ok... :) | 11:16 |
philiKON | :) | 11:16 |
flox | thank | 11:17 |
flox | it works! | 11:17 |
flox | i am in charge to evaluate the benefit to switch from to Zope3 for our Zope/Plone project | 11:19 |
philiKON | if it uses a lot of plone technology, it might make more sense to use zope3 technology in zope 2 via five | 11:20 |
flox | no... factly we changed completely the Plone skin... we do not use it. | 11:20 |
*** volvox has joined #zope3-dev | 11:21 | |
flox | we started with Plone bec we were newbies, and it looks easier, at the beginning | 11:21 |
flox | and the features or Plone, we do not use a lot | 11:21 |
flox | we have to clean-up everything and re-engineer large parts of the site | 11:22 |
flox | this is the reason, i try to push to adopt Zope3.... | 11:23 |
flox | but i lack some arguments | 11:23 |
philiKON | well, why reengineer if it already works? | 11:23 |
flox | it is low-performance | 11:24 |
philiKON | there's your argument :) | 11:24 |
philiKON | of course, plone can be made fast... | 11:24 |
flox | in ur book u tell that catalog and indexing are "still in development" | 11:25 |
flox | i guess that today it works ok, no? | 11:25 |
philiKON | yup | 11:29 |
*** dunny has joined #zope3-dev | 11:30 | |
*** b_52Centos__ has joined #zope3-dev | 11:34 | |
*** stub has quit IRC | 11:58 | |
*** b_52CEntos_ has joined #zope3-dev | 11:58 | |
*** b_52Centos__ has quit IRC | 12:12 | |
*** admp has joined #zope3-dev | 12:26 | |
*** adamSummers has joined #zope3-dev | 12:26 | |
*** b_52CEntos_ is now known as b_52CEntos | 12:27 | |
adamSummers | Hello oh wise ones | 12:27 |
adamSummers | I have a question: Is there any way using the browser:page directive, that I can specify that the Type of a page rendered is not "text/html" but rather "application/vnd.mozilla.xul+xml"? | 12:34 |
philiKON | adamSummers, has nothing to do with the registration | 12:34 |
philiKON | request.response.setHeader('content-type', ...) | 12:35 |
*** jhauser has joined #zope3-dev | 12:36 | |
*** BjornT has quit IRC | 12:38 | |
*** baijum has joined #zope3-dev | 12:47 | |
*** bedlogg has quit IRC | 12:50 | |
adamSummers | philiKON - thanks, but I'm grappling with this. I put in: <vbox tal:define="x python:request.response.setHeader('content-type', 'application/vnd.mozilla.xul+xml')"> | 12:56 |
adamSummers | but I get the following error when viewing the page: File "/Users/adam/z3-dev/Zope3/src/zope/publisher/http.py", line 851, in _implicitResult | 12:56 |
adamSummers | raise ValueError( | 12:56 |
adamSummers | ValueError: Unicode results must have a text content type | 12:56 |
philiKON | don't paste things here | 12:56 |
philiKON | use a pastebin | 12:56 |
philiKON | ah, 2 lines are ok :) | 12:57 |
philiKON | it hought you were going to paste the whole traceback :) | 12:57 |
*** mgedmin has joined #zope3-dev | 12:57 | |
philiKON | hmmm. that's weird | 12:57 |
adamSummers | No mate- I wouldn't dream of it :) | 12:57 |
philiKON | i wonder if that's mandated by some spec | 12:58 |
philiKON | i would file a bug | 12:58 |
mgedmin | but is it a bug? | 13:00 |
* mgedmin reads logs | 13:00 | |
mgedmin | if a view's __call__ returns a unicode string | 13:00 |
*** faassen has joined #zope3-dev | 13:00 | |
*** mkerrin has joined #zope3-dev | 13:00 | |
mgedmin | the zope publisher encodes that string into some charset (well, it's always UTF-8, but it could be some other) | 13:01 |
mgedmin | and changes the Content-Type header to mention that charset | 13:01 |
mgedmin | now the charset="..." parameter is only defined for text/* MIME types | 13:01 |
philiKON | true | 13:01 |
philiKON | so, there's the spec :) | 13:01 |
mgedmin | adamSummers: I'd fix that in a view class: | 13:01 |
mgedmin | class MyView(BrowserView): | 13:01 |
mgedmin | template = ViewPageTemplateFile('whatever.pt') | 13:01 |
mgedmin | def __call__(self): | 13:02 |
mgedmin | self.request.response.setHeader('Content-Type', 'whateveritwas') | 13:02 |
mgedmin | return self.template().encode('UTF-8') | 13:02 |
philiKON | self.request.response.setHeader('Content-Type', 'whateveritwas; charset=UTF-8') | 13:02 |
philiKON | and i'd use BrowserPage as a base class :) | 13:02 |
philiKON | sounds good, though | 13:03 |
*** BjornT has joined #zope3-dev | 13:06 | |
adamSummers | I'll let you know how I go in a while -- thanks | 13:08 |
*** mgedmin has quit IRC | 13:10 | |
*** mgedmin has joined #zope3-dev | 13:11 | |
mgedmin | a crashing laptop is not fun :( | 13:11 |
*** admp has quit IRC | 13:18 | |
*** admp has joined #zope3-dev | 13:20 | |
*** dobee has quit IRC | 13:22 | |
*** vlado has joined #zope3-dev | 13:26 | |
*** bradb has joined #zope3-dev | 13:33 | |
*** dunny has quit IRC | 13:39 | |
*** flox has quit IRC | 13:39 | |
*** jhauser_ has joined #zope3-dev | 13:46 | |
*** jinty has joined #zope3-dev | 13:48 | |
*** b_52CEntos has quit IRC | 13:54 | |
*** rocky|away is now known as rock1 | 13:55 | |
*** rock1 is now known as rocky | 13:55 | |
*** b_52CEntos has joined #zope3-dev | 13:59 | |
*** stub has joined #zope3-dev | 14:00 | |
*** jhauser has quit IRC | 14:02 | |
*** bradb has quit IRC | 14:21 | |
*** BjornT has quit IRC | 14:22 | |
*** flox has joined #zope3-dev | 14:28 | |
*** vlado has quit IRC | 14:28 | |
*** vlado has joined #zope3-dev | 14:29 | |
*** Aiste has joined #zope3-dev | 14:32 | |
volvox | re:formlib.. ehm. i'm inside an inputwidget. Can I find somewhere the action that has just been called? request cannot seem to have it. I know I should handle it somewhere else, but I need this to work asap | 14:34 |
volvox | s/cannot/doesn't/ | 14:34 |
*** vlado has quit IRC | 14:37 | |
volvox | oh well, it has a form.actions.43616e63656c6c6120726963686965737461 I'll try and use that, hope it is ok | 14:38 |
*** vlado has joined #zope3-dev | 14:38 | |
*** zbir has quit IRC | 14:44 | |
mgedmin | volvox: you might want to specify a more human-readable name to the @action decorator | 14:44 |
mgedmin | it uses the hex-encoded label by default (when the label contains certain unsafe characters) | 14:45 |
volvox | oh well, the label is 7-bit ascii | 14:45 |
volvox | i'm not diving inside "Wrong contained type"... message errors are a bit obscure sometimes, but I can handle it | 14:46 |
volvox | s/not/now | 14:46 |
volvox | name is a different parameter than label. I'm setting it now | 14:47 |
*** tonico has quit IRC | 14:54 | |
*** vlado has quit IRC | 14:57 | |
*** vlado has joined #zope3-dev | 14:57 | |
*** nathany has joined #zope3-dev | 14:58 | |
*** mexiKON has joined #zope3-dev | 15:01 | |
*** ignas has joined #zope3-dev | 15:02 | |
*** ignas has quit IRC | 15:06 | |
*** ignas has joined #zope3-dev | 15:06 | |
*** philiKON has quit IRC | 15:09 | |
*** adamSummers has left #zope3-dev | 15:10 | |
*** baldtrol has joined #zope3-dev | 15:10 | |
*** b_52CEntos_ has joined #zope3-dev | 15:10 | |
*** adamSummers has joined #zope3-dev | 15:10 | |
adamSummers | philIKON, mgedmin: success/成功!感谢你们 | 15:16 |
*** BjornT has joined #zope3-dev | 15:18 | |
*** Theuni has joined #zope3-dev | 15:19 | |
*** b_52CEntos has quit IRC | 15:22 | |
*** b_52Centos__ has joined #zope3-dev | 15:28 | |
*** b_52Centos__ is now known as b_52Free | 15:29 | |
*** bradb has joined #zope3-dev | 15:34 | |
*** vlado has quit IRC | 15:37 | |
*** vlado has joined #zope3-dev | 15:38 | |
*** b_52CEntos_ has quit IRC | 15:40 | |
*** gumpa has joined #zope3-dev | 15:44 | |
*** rocky has quit IRC | 15:44 | |
*** rocky has joined #zope3-dev | 15:45 | |
*** benji has joined #zope3-dev | 15:52 | |
*** zbir has joined #zope3-dev | 15:53 | |
*** bradb has quit IRC | 15:58 | |
*** BjornT has quit IRC | 16:15 | |
*** BjornT has joined #zope3-dev | 16:21 | |
*** srichter has quit IRC | 16:23 | |
*** b_52Free has quit IRC | 16:27 | |
*** whit_ has joined #zope3-dev | 16:32 | |
*** baijum has left #zope3-dev | 16:32 | |
avoine | hi, if i have a interface that take a Textline but i don't want him persistent what can i put as my class attribute? I try BrowserView but i have this error: Cache values must be persistent objects | 16:37 |
*** b_52Free has joined #zope3-dev | 16:38 | |
*** whit__ has joined #zope3-dev | 16:39 | |
*** BjornT has quit IRC | 16:39 | |
avoine | do you think the prefix _v_ can help me? | 16:39 |
mexiKON | adamSummers, ??:) | 16:41 |
mexiKON | err, ?? | 16:41 |
mexiKON | damn this tiny font | 16:43 |
*** whit has quit IRC | 16:43 | |
*** mexiKON is now known as philiGOOOL | 16:44 | |
*** stub has quit IRC | 16:46 | |
*** gumpa is now known as gumpa-away | 16:48 | |
*** BjornT has joined #zope3-dev | 16:49 | |
*** whit_ has quit IRC | 16:50 | |
*** eins has quit IRC | 16:54 | |
*** whit__ is now known as whit | 16:55 | |
*** whit has quit IRC | 16:56 | |
*** alga is now known as thla | 17:01 | |
*** thla is now known as alga | 17:03 | |
* mgedmin wants a frozendict | 17:04 | |
* benji wants a pony | 17:09 | |
baldtrol | hah! | 17:09 |
rocky | hmm... how do you all feel about a new zcml directive that creates an actual new view component (and even creates the new class for that component) but doesn't need an existing class to exist? is it evil? i guess this is sort of what <browser:page> does | 17:13 |
mgedmin | yup, evil | 17:15 |
benji | rocky: I'd suspect most would consider that evil | 17:15 |
baldtrol | not that i'm a core dev guy at all, but i'm -1 on zcml doing more than it does already :\ | 17:15 |
* mgedmin sometimes wishes for user-defined zcml macros | 17:16 | |
* mgedmin is sometimes evil, too | 17:16 | |
rocky | any of you familiar with the zope 2 CMFFormController product ? | 17:16 |
* Theuni wants a frozenpony | 17:18 | |
ignas | rocky: evil, as it does not save that much effort, but greatly increases the effort required for extending the view in any way | 17:18 |
rocky | ignas: well, the particular idea i have would be *greatly* simplified if it were all done via zcml | 17:19 |
rocky | basically i want to define the page flow in ZCML which would create a view component that follows that page flow | 17:20 |
faassen | rocky: it's currently not allowed to extend ZCML for anything :) | 17:20 |
rocky | lol | 17:20 |
ignas | which would basically become a tool for doing that specific task, in a general purpose framework | 17:20 |
faassen | rocky: you're supposed to type a lot of ZCML | 17:20 |
*** whit has joined #zope3-dev | 17:20 | |
rocky | faassen: have you used CMFFormControler before? | 17:20 |
faassen | rocky: no, I saw a presentation on it once long ago. | 17:21 |
rocky | basically i'd like to define page flow: if page 1 is submitted by action 1, it goes to page 2, if its submitted by action 2, it goes to page 3 ... when action 8 is submitted on page 3, it performs some validation and then goes to page 6 | 17:21 |
rocky | etc etc | 17:21 |
rocky | with CMFFC, that kind of logic is defined by .metadata files | 17:21 |
rocky | i'd like to do a similar concept but defined by ZCML | 17:22 |
benji | rocky, I don't hold "custom" ZCML up to the same standard as core ZCML though, if you define ZCML for your project and it helps you, feel free | 17:22 |
*** vlado_ has joined #zope3-dev | 17:22 | |
rocky | benji: well, what i'm brainstorming about i'd love to contribute back to zope 3 core as an extension to formlib or as a new "zope.pageflow" type project | 17:22 |
* rocky wishes people weren't so anti-zcml these days ... | 17:23 | |
faassen | rocky: if you want it to fly at all in the current Zope 3 consensus thing.. | 17:23 |
faassen | rocky: you define it in terms of existing ZCML thingers. | 17:23 |
rocky | faassen: nothing to compare it to ;) | 17:23 |
faassen | rocky: and you have a few handy factory functions that you call from your ZCML | 17:23 |
rocky | well... perhaps describing it like how you do zope.wfmc stuff | 17:23 |
faassen | rocky: the zope.annotation package has an example of a handy factory thing. | 17:23 |
faassen | rocky: formlib of course does a lot in Python and then hooks it up using ZCML | 17:24 |
benji | if you really think the ZCML makes a major contribution (opposed to using Python), try it; if it's compelling it might get into the core | 17:24 |
faassen | rocky: I don't know whether your usecase could work that way. I don't even know whether I agree with the consensus on ZCML. | 17:24 |
*** vlado has quit IRC | 17:24 | |
faassen | rocky: but I also don't disagree with the consensus, so I'm just waiting until I got a better idea. :) | 17:25 |
rocky | well, all i'm really talking about is basically autogenerating formlib based views with appropriate actions so that i can model page flow in zcml and touch little code (of course you'd still need to write code if you want custom stuff to happen during an action) | 17:25 |
faassen | autogenerate formlib based views, huh? :) | 17:26 |
faassen | I mean, I can tell you one thing, editform was evil. | 17:26 |
ignas | rocky: ZCML being something like a small Domain Specific Language that can be extended "easily" i am weary of adding new keywords to it unless they are of a general purpose (having an extension, like another namespace etc. is fine though) | 17:26 |
* mgedmin is pushing for a purely functional zcml | 17:27 | |
*** BjornT has quit IRC | 17:27 | |
mgedmin | or should I say declarative? | 17:27 |
faassen | mgedmin: how is ZCML not purely declarative now? | 17:27 |
rocky | i can see the only way i could properly get feedback is if i were to demonstrate a use case being fulfilled ;) | 17:27 |
mgedmin | well, I want it to be order independent | 17:28 |
faassen | that'd be nice. | 17:28 |
mgedmin | and unloadable at run time | 17:28 |
faassen | I'm interested in experimenting with a way to make ZCML go away/autogenerate ZCML, something. | 17:29 |
mgedmin | with an internal notation that is not a list of tuples that contain references to unpickleable closures constructed by the parser | 17:29 |
benji | plus, if ZCML were "unloadable" the test layers could then be torn down, making the tests faster | 17:29 |
faassen | I mean, ZCML should be there when needed but not when not needed. As to ZCML being a more declarative language I'd be happy, I pushed for that in the past. | 17:30 |
faassen | when TALES expressions were sneaking in and such. :) | 17:30 |
*** vlado_ has quit IRC | 17:30 | |
*** vlado_ has joined #zope3-dev | 17:31 | |
*** BjornT has joined #zope3-dev | 17:36 | |
rocky | faassen: the biggest problem with the whole "be there when needed but not when not needed" is that most people have no idea when its needed or not needed ;) | 17:38 |
rocky | so many people don't understand that keeping configuration out of python has huge advantages when bringing in non-python people | 17:39 |
benji | rocky, I percieve some of that as is a tension between the we-write-deploy-and-maintain-it people and the we-write-it-and-throw-it-over-the-wall people | 17:41 |
baldtrol | rocky: not to jump in, but the glut of zcml directives provides another hurdle to jump when bringing in non-python people. i've been playing with zope3 for almost a year, and i still learn new things about zcml once in a while. | 17:41 |
*** hdima has quit IRC | 17:41 | |
baldtrol | unless zope3 is the only framework you use and develop for and in, it's just "another thing to remember and forget" | 17:41 |
rocky | baldtrol: the logic has to be implemented somewhere, whether its in xml or in python code, its still "another thing to remember and forget" | 17:43 |
rocky | but regardless, too much xml is a bad thing too | 17:43 |
rocky | i'm not saying zcml is perfect | 17:43 |
rocky | i just think there's a healthy compromise | 17:43 |
rocky | j2ee has waaaaaay too much crap in xml | 17:43 |
Theuni | baldtrol: i'm "using" zope 3 since it began, and i'm learning news things everyday :) | 17:46 |
baldtrol | ;) | 17:51 |
baldtrol | sorry, didn't mean to dip on the conversation... we found a baby snake in the office, had to escort it outside | 17:52 |
Theuni | lol | 17:52 |
benji | strangely enough, baldtrol, I've had the same experience, but with a baby bird :) | 17:53 |
baldtrol | rocky: i think zcml is great, i'm not picking on it directly. i just know that i use rails, a little pylons, turbogears, and a lot of zope3... things in markup that are obvious (browser:page, mailer: etc) should be there... | 17:53 |
baldtrol | but too much configuration that's not in the language i'm using, or using an xmlns i'm not familiar with, just makes for something that impedes, rather than accelerates, development times :\ | 17:54 |
*** admp has joined #zope3-dev | 17:54 | |
baldtrol | benji: hee... a little snake i can see sneaking in... how did a baby bird wander in? :) | 17:54 |
rocky | baldtrol: right, i think thats pretty much how i feel | 17:55 |
rocky | but for me, i see modeling workflow as something better suited to XML than python | 17:55 |
faassen | I'm not discounting explicit configuration. | 17:55 |
faassen | or domain specific languages. | 17:55 |
faassen | I'm just wondering whether we have a more graceful path. | 17:55 |
faassen | from just 1 file apps to multi file explicit configuration apps. | 17:56 |
faassen | let alone multi file explicit configuration you've got tests for everything under the sun apps. | 17:56 |
baldtrol | rocky: i agree... have you looked at the xml design for workflow in srichter's workflow package? it's a good one, and is set up as an element of the workflow, not zcml config. admittedly, that may be picking nits at that point, but the UI dumps and reads in the xml on it's own, should you want to do it that way | 17:56 |
faassen | and I wonder whether we can't get mor agility into it all. | 17:56 |
*** nathany has quit IRC | 17:56 | |
*** nathany_ has joined #zope3-dev | 17:57 | |
benji | baldtrol, there was a small hole on the outside of our building; apparently it's mother thought it would be a good place for a nest, it turned out the hole was open to the inside too and the baby fell out onto the floor | 17:57 |
baldtrol | awww :) | 17:57 |
baldtrol | was it ok? | 17:58 |
faassen | what kind of bird was it? | 17:58 |
*** b_52CEntos_ has joined #zope3-dev | 17:58 | |
Theuni | did taste like chicken or pony? | 18:00 |
benji | it was a robin of some sort, I had to sneak up on it to be able to catch it, funny sight | 18:02 |
baldtrol | heheh | 18:02 |
baldtrol | i now have cartoon *dum-dum-dum-dum-daaaaa-dump* sneaking music in my head. | 18:03 |
benji | heh :) | 18:04 |
ignas | is that music special ? | 18:04 |
baldtrol | just the standard warner bros. bugs-is-sneaking-up-on-someone kind of special | 18:05 |
benji | it's good sneaking music | 18:05 |
*** tarek has quit IRC | 18:05 | |
ignas | why use the #\* then | 18:05 |
ignas | ? | 18:05 |
baldtrol | **blinks confusedly | 18:05 |
*** b_52Free has quit IRC | 18:07 | |
ignas | baldtrol: sorry wrong channel | 18:11 |
ignas | baldtrol: a context heavy joke :/ | 18:11 |
*** g_n_o_s_i_s has joined #Zope3-dev | 18:11 | |
baldtrol | ah, ok | 18:12 |
baldtrol | cool :) | 18:12 |
ignas | and not even funny when i think about it ;) | 18:13 |
*** g_n_o_s_i_s has quit IRC | 18:13 | |
*** sashav has quit IRC | 18:14 | |
*** alecm has joined #zope3-dev | 18:20 | |
*** alecm has quit IRC | 18:27 | |
*** alecm has joined #zope3-dev | 18:28 | |
*** alecm has joined #zope3-dev | 18:29 | |
*** alecm has quit IRC | 18:34 | |
*** alecm has joined #zope3-dev | 18:35 | |
*** srichter has joined #zope3-dev | 18:40 | |
*** faassen has quit IRC | 18:47 | |
*** ChanServ sets mode: +o srichter | 18:56 | |
*** SureshV has quit IRC | 18:57 | |
*** adamSummers has left #zope3-dev | 18:57 | |
mgedmin | Field inherits Attribute, but IField does not inherit IAttribute | 19:00 |
mgedmin | is that correct? | 19:00 |
mgedmin | I mean, intentional? | 19:00 |
* mgedmin just discovered that adding an attribute named 'interface' to a custom field is not a good idea | 19:01 | |
srichter | not intentional | 19:02 |
srichter | you can safely add this | 19:02 |
srichter | since attribute requires there to be a name, which certainly IField also requires | 19:03 |
*** vlado_ has quit IRC | 19:03 | |
*** alecm has quit IRC | 19:04 | |
*** alecm has joined #zope3-dev | 19:05 | |
* philiGOOOL freezes a pony for Theuni | 19:09 | |
baldtrol | *snicker* | 19:10 |
*** philiGOOOL is now known as philiKON | 19:11 | |
*** zagy_ has quit IRC | 19:16 | |
*** BjornT has quit IRC | 19:17 | |
*** BjornT has joined #zope3-dev | 19:18 | |
* Theuni puts the frozen pony into his fridge | 19:18 | |
mgedmin | that's a large fridge... | 19:21 |
* mgedmin wishes WrongContainedType would be more explicit | 19:22 | |
mgedmin | the code (Object._validate) actually stuffs informative errors into the WrongContainedType exception | 19:23 |
mgedmin | but the end-user does not see any of them | 19:23 |
*** clasux has quit IRC | 19:49 | |
*** BjornT has quit IRC | 19:50 | |
*** b_52Free has joined #zope3-dev | 19:50 | |
*** BjornT has joined #zope3-dev | 19:54 | |
*** admp has quit IRC | 19:55 | |
*** b_52CEntos_ has quit IRC | 19:55 | |
*** natea has joined #zope3-dev | 20:08 | |
*** alga has quit IRC | 20:08 | |
*** zagy has joined #zope3-dev | 20:13 | |
*** nathany_ has quit IRC | 20:21 | |
*** ignas has quit IRC | 20:29 | |
*** b_52Free has quit IRC | 20:32 | |
*** zagy has quit IRC | 20:36 | |
*** b_52Free has joined #zope3-dev | 20:38 | |
*** zagy has joined #zope3-dev | 20:41 | |
mgedmin | srichter: making IField inherit IAttribute breaks zcml, which says <allowed name="__name__" /> and <require permission="zope.ManageContent" interface=".interfaces.IField" /> | 20:42 |
mgedmin | I don't have the time to chase this now | 20:42 |
*** BjornT has quit IRC | 20:53 | |
*** RaFromBRC has joined #zope3-dev | 20:59 | |
*** hazmat has joined #zope3-dev | 21:00 | |
*** ChanServ sets mode: +o hazmat | 21:00 | |
*** baldtrol has quit IRC | 21:03 | |
*** baldtrol has joined #zope3-dev | 21:12 | |
*** alecm has quit IRC | 21:14 | |
*** sashav has joined #zope3-dev | 21:19 | |
*** Theuni has quit IRC | 21:19 | |
mgedmin | I keep using <tal:comment> ... </tal:comment> and forgetting to include condition="nothing" | 21:23 |
*** mkerrin has quit IRC | 21:42 | |
*** natea has quit IRC | 21:58 | |
*** zagy_ has joined #zope3-dev | 21:59 | |
flox | bonsoir | 22:03 |
flox | hello | 22:04 |
flox | i try to send back a 'application/xml' document fom a PT | 22:05 |
flox | but an error occurs bec of "ValueError: Unicode results must have a text content type." | 22:05 |
baldtrol | flox: if it's really just an encoding issue, you can str() your results, or .encode("latin1") or something similar | 22:07 |
flox | my tag is: <tal:if condition="validReceipt" replace="structure context/example.xml/data" /> | 22:08 |
mgedmin | flox: http://zope3.pov.lt/irclogs/%23zope3-dev.2006-06-20.log.html#t2006-06-20T13:00:44 | 22:08 |
flox | i should use python inside the TALES expression? | 22:08 |
flox | the XML is plain ASCII | 22:08 |
mgedmin | flox: ignore the tales expression; read the irc log excertp I linked | 22:08 |
mgedmin | it contains the answer to your question | 22:09 |
*** srichter has quit IRC | 22:12 | |
*** zagy has quit IRC | 22:12 | |
flox | mgedmin: i try to do that TTW | 22:12 |
mgedmin | ahh | 22:13 |
*** whit is now known as whit|phone | 22:13 | |
mgedmin | ouch | 22:13 |
mgedmin | file a bug? | 22:13 |
flox | mgedmin: but i will implement ur example, i think | 22:13 |
flox | mgedmin: this is a bug, you think | 22:13 |
mgedmin | maybe | 22:15 |
mgedmin | well, yes | 22:15 |
mgedmin | you should not be able to cause a SystemError by entering values in web forms, IMO | 22:15 |
mgedmin | I take that back | 22:15 |
mgedmin | syntax errors in page templates cause System error messages too | 22:16 |
mgedmin | nevertheless it is at the very least confusing to the users, as you've demonstrated | 22:16 |
flox | i try to change the Charset inside the header... but useless: | 22:18 |
flox | <span tal:define="dummy python:request.response.setHeader('Content-Type', 'application/xml;; charset=UTF-8');" /> | 22:18 |
flox | j'ai la même erreur à la sortie | 22:19 |
mgedmin | I think you cannot work around this restriction | 22:19 |
flox | ok | 22:20 |
flox | so i will add some piece of python code to work around this | 22:20 |
flox | taking ur example from earlier today | 22:20 |
*** b_52CEntos_ has joined #zope3-dev | 22:30 | |
*** b_52Free has quit IRC | 22:41 | |
*** sussi has joined #zope3-dev | 22:51 | |
*** sashav has quit IRC | 22:52 | |
*** sashav has joined #zope3-dev | 22:52 | |
*** jinty has quit IRC | 22:55 | |
*** baldtrol has quit IRC | 22:55 | |
*** sussi has quit IRC | 22:59 | |
*** whit has joined #zope3-dev | 23:05 | |
*** zagy_ has quit IRC | 23:06 | |
*** RaFromBRC is now known as RaFromBRC|away | 23:09 | |
*** mgedmin has quit IRC | 23:10 | |
*** whit|phone has quit IRC | 23:15 | |
*** clasux has joined #zope3-dev | 23:26 | |
*** dunny has joined #zope3-dev | 23:46 | |
*** sashav has quit IRC | 23:56 | |
volvox | is there a ZPT .txt, wiki or whatever specifically for z3 ? I'm just trying to use a macro I've defined a few lines above... | 23:57 |
*** sashav has joined #zope3-dev | 23:57 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!