*** tarek has joined #zope3-dev | 00:04 | |
*** jpcw has quit IRC | 00:25 | |
*** pelle_ has quit IRC | 00:26 | |
*** jhauser has quit IRC | 00:28 | |
*** junkafarian has joined #zope3-dev | 00:29 | |
*** srichter has quit IRC | 00:31 | |
*** srichter has joined #zope3-dev | 00:33 | |
*** ChanServ sets mode: +o srichter | 00:34 | |
*** timte has quit IRC | 00:39 | |
*** tarek has quit IRC | 00:44 | |
*** brandon_rhodes has joined #zope3-dev | 00:47 | |
*** whit|out has quit IRC | 00:48 | |
binbrain | I'm struggling with some logic if somebody has a chance. I have a content type, that when created, needs to also create a container in the root of the site. I have the factory for the container created, but how do I get at the root directory to say root['newcontainer'] = createObject(myContainerFactory | 00:52 |
---|---|---|
*** benji has quit IRC | 00:53 | |
srichter | binbrain: most likely your root is your site, so you can say: hooks.getSite() | 00:54 |
binbrain | right on, that worked, thanks srichter | 01:01 |
*** reco has joined #zope3-dev | 01:05 | |
*** mcdonc_ has quit IRC | 01:07 | |
*** jamur2 has quit IRC | 01:09 | |
*** nyo1 has quit IRC | 01:10 | |
*** harobed has quit IRC | 01:15 | |
*** andycat has joined #zope3-dev | 01:15 | |
*** redir has quit IRC | 01:15 | |
*** binbrain has quit IRC | 01:24 | |
*** lucielejard has quit IRC | 01:28 | |
*** junkafarian has quit IRC | 01:35 | |
*** brandon_rhodes has quit IRC | 01:44 | |
*** lurkymclurkleton has quit IRC | 01:47 | |
*** J1m_ has quit IRC | 01:47 | |
*** tarek has joined #zope3-dev | 01:48 | |
*** rocky has quit IRC | 01:50 | |
*** binbrain has joined #zope3-dev | 02:01 | |
*** nathany has quit IRC | 02:02 | |
*** tarek has quit IRC | 02:04 | |
*** rocky has joined #zope3-dev | 02:24 | |
*** rocky has quit IRC | 02:29 | |
*** rocky has joined #zope3-dev | 02:29 | |
*** reco_ has joined #zope3-dev | 02:34 | |
*** aaronv has quit IRC | 02:44 | |
*** binbrain has quit IRC | 02:45 | |
*** rmarianski has quit IRC | 02:49 | |
*** reco has quit IRC | 02:50 | |
*** reco_ has quit IRC | 02:51 | |
*** fmail has joined #zope3-dev | 03:13 | |
*** davisagli has left #zope3-dev | 03:13 | |
*** davisagli has joined #zope3-dev | 03:33 | |
*** binbrain has joined #zope3-dev | 03:48 | |
*** srichter has quit IRC | 03:50 | |
*** redir has joined #zope3-dev | 04:10 | |
*** srichter has joined #zope3-dev | 04:24 | |
*** srichter has quit IRC | 04:25 | |
*** srichter has joined #zope3-dev | 04:25 | |
*** fmail has left #zope3-dev | 04:31 | |
*** projekt01 has joined #zope3-dev | 04:40 | |
*** pcardune has quit IRC | 05:31 | |
*** greenman has quit IRC | 05:35 | |
binbrain | I swear I saw a post on this before, but isn't there some FieldProperty a incrementing int id? | 05:43 |
binbrain | defaults to incrementing to the next | 05:43 |
*** binseer has joined #zope3-dev | 05:54 | |
*** pelle_ has joined #zope3-dev | 06:26 | |
*** baijum has joined #zope3-dev | 06:32 | |
*** andycat2 has joined #zope3-dev | 06:35 | |
*** andycat has quit IRC | 06:36 | |
*** andycat2 is now known as andycat | 06:36 | |
*** fairwinds has quit IRC | 07:19 | |
*** stub1 has joined #zope3-dev | 07:32 | |
*** stub1 is now known as stub | 07:32 | |
*** jukart has joined #zope3-dev | 08:07 | |
*** andycat has quit IRC | 08:11 | |
*** jpcw has joined #zope3-dev | 08:14 | |
*** andycat has joined #zope3-dev | 08:14 | |
*** yota has joined #zope3-dev | 08:20 | |
*** afd__ has joined #zope3-dev | 08:33 | |
*** jukart has quit IRC | 08:36 | |
*** afd___ has joined #zope3-dev | 08:50 | |
*** srichter has quit IRC | 08:53 | |
*** srichter has joined #zope3-dev | 08:54 | |
*** afd__ has quit IRC | 09:05 | |
*** jukart has joined #zope3-dev | 09:06 | |
*** JaRoel|4D has quit IRC | 09:06 | |
*** agroszer has joined #zope3-dev | 09:06 | |
*** yvl has joined #zope3-dev | 09:09 | |
*** pyqwer has joined #zope3-dev | 09:09 | |
*** JaRoel|4D has joined #zope3-dev | 09:11 | |
*** nathany has joined #zope3-dev | 09:13 | |
*** afd___ has quit IRC | 09:16 | |
*** afd__ has joined #zope3-dev | 09:17 | |
*** pelle_ has quit IRC | 09:24 | |
*** quodt has joined #zope3-dev | 09:26 | |
*** danfairs has quit IRC | 09:34 | |
*** andycat has quit IRC | 09:38 | |
*** mgedmin has joined #zope3-dev | 09:39 | |
*** basti__ has joined #zope3-dev | 09:43 | |
*** fRiSi has joined #zope3-dev | 09:45 | |
*** jhauser has joined #zope3-dev | 09:46 | |
*** greenman has joined #zope3-dev | 10:03 | |
*** markusleist has joined #zope3-dev | 10:06 | |
*** afd__ has quit IRC | 10:11 | |
*** agroszer has quit IRC | 10:11 | |
*** afd__ has joined #zope3-dev | 10:13 | |
*** agroszer has joined #zope3-dev | 10:20 | |
*** pelle_ has joined #zope3-dev | 10:23 | |
*** iham|away is now known as iham | 10:25 | |
*** markusleist has quit IRC | 10:33 | |
*** harobed has joined #zope3-dev | 10:36 | |
*** davisagli has left #zope3-dev | 10:40 | |
*** afd__ has quit IRC | 10:40 | |
*** MJ has joined #zope3-dev | 10:40 | |
*** MJ has quit IRC | 10:43 | |
*** MJ has joined #zope3-dev | 10:43 | |
*** kursor has joined #zope3-dev | 10:48 | |
*** danfairs has joined #zope3-dev | 10:48 | |
*** Rolando has joined #zope3-dev | 10:49 | |
*** davisagli has joined #zope3-dev | 10:54 | |
*** ignas has joined #zope3-dev | 10:56 | |
*** projekt01 has quit IRC | 11:03 | |
*** junkafarian has joined #zope3-dev | 11:07 | |
*** stub has quit IRC | 11:10 | |
*** stub1 has joined #zope3-dev | 11:10 | |
*** stub1 is now known as stub | 11:10 | |
*** projekt01 has joined #zope3-dev | 11:14 | |
projekt01 | start.bat | 11:15 |
*** mintsauce has joined #zope3-dev | 11:15 | |
mgedmin | Permission denied | 11:15 |
projekt01 | ;-) | 11:16 |
projekt01 | I guess it's time to update to a buildout based setup ;-) | 11:16 |
agroszer | and someone should invent the eye following window focus | 11:17 |
* mgedmin wants | 11:18 | |
*** hipertracker has joined #zope3-dev | 11:23 | |
mintsauce | I have a site built (loosely) around philiKON's Zope3 Book. Each page access macros via metal:use-macro="context/@@standard_macros/whatever", which in turn, via zcml, is lined to standardmacros.py. From TAL, how would I access variables in this python file? The normal suspects view/ context/ etc dont work ... | 11:25 |
*** stub has left #zope3-dev | 11:33 | |
mgedmin | what do you mean by variables? | 11:36 |
mgedmin | globals? | 11:36 |
mintsauce | yup .... self.whatever | 11:36 |
*** alga has joined #zope3-dev | 11:37 | |
mintsauce | Normally a pt file has a 'matching' py file, linked via zcml and you can pass it via view/whatever. But I'm not clear how I would access stuff in the standardmacros.py file when its linked via metal:use-macro | 11:38 |
*** junkafarian_ has joined #zope3-dev | 11:39 | |
*** nyo1 has joined #zope3-dev | 11:40 | |
mgedmin | self.whatever aren't globals | 11:45 |
mgedmin | what's self? | 11:45 |
mgedmin | the view? | 11:45 |
mintsauce | ahh hang on .... standardmacros has the line return self.template.macros[key] ..... I can only 'return' via this, rather than self. | 11:45 |
mintsauce | yup | 11:45 |
mintsauce | i think im approching this from the wrong angle ... | 11:46 |
mintsauce | basically, every template file in the site needs to call a common .py file - I thought standardmacros.py would be a good choice as they all call it already(!) | 11:46 |
mintsauce | Is there a way via zcml that all .pt files could access one general py file - aswell as their specific ones that they are already linked to? | 11:47 |
*** afd__ has joined #zope3-dev | 11:48 | |
mgedmin | what does it mean to "access a py file"? | 11:49 |
*** goschtl has joined #zope3-dev | 11:49 | |
mintsauce | via view/ in tal in the pt file | 11:50 |
mintsauce | doh ...... should I just call a macro which uses that py file, in each pt file? | 11:55 |
*** regebro has joined #zope3-dev | 11:56 | |
ignas | mintsauce: did you try view/@@standard_macros/name_of_your_variable ? | 12:07 |
mintsauce | ignas: i think so, lemme give it another go | 12:07 |
mgedmin | METAL macros only deal in TAL trees | 12:11 |
mgedmin | there's no way to share Python code via METAL | 12:11 |
mgedmin | you may want to use snippet views instead (<div tal:replace="structure context/@@something" />) | 12:11 |
mgedmin | or have the macro access attributes and methods of a shared view | 12:12 |
mintsauce | mgedmin: ok, makes sense - thanks | 12:12 |
lisppaste6 | mintsauce pasted "Macros" at http://paste.lisp.org/display/73522 | 12:16 |
*** baijum has quit IRC | 12:16 | |
mintsauce | I suppose the issue is the 'return' that returns the whole template - otherwise i could set self.whatever and access it via tal. (mulling it over still!) | 12:17 |
*** mkerrin has joined #zope3-dev | 12:18 | |
mgedmin | when you do use-macro, it always takes something that refers to a precompiled TAL bytecode | 12:19 |
mgedmin | there's no way around it, other than not using 'use-macro' | 12:19 |
mintsauce | mgedmin: ok, good to know thats the case | 12:21 |
*** junkafarian has quit IRC | 12:24 | |
*** nyo1 has quit IRC | 12:26 | |
*** zagy has quit IRC | 12:29 | |
*** projekt01 has quit IRC | 12:34 | |
*** dunny has quit IRC | 12:36 | |
*** projekt01 has joined #zope3-dev | 12:39 | |
*** yvl has quit IRC | 12:44 | |
*** davisagli_ has joined #zope3-dev | 12:47 | |
*** mintsauce has quit IRC | 12:51 | |
*** afd___ has joined #zope3-dev | 12:52 | |
*** harobed has quit IRC | 13:00 | |
*** junkafarian_ is now known as junkafarian | 13:04 | |
*** davisagli has quit IRC | 13:08 | |
*** afd__ has quit IRC | 13:13 | |
*** afd____ has joined #zope3-dev | 13:15 | |
*** greenman has quit IRC | 13:22 | |
*** nyo1 has joined #zope3-dev | 13:26 | |
*** afd___ has quit IRC | 13:34 | |
*** mcdonc has joined #zope3-dev | 13:45 | |
*** mintsauce has joined #zope3-dev | 14:15 | |
mintsauce | How do I provide values to the Bool schema widget / how do I use a radio widget for a schema attribute? | 14:24 |
mintsauce | Or(!) ..... can I use a radio-like widget for the Choice attribute? | 14:27 |
nyo1 | mintsauce: what widget framework are you using? z3c.form uses yes/no radio widget for bool by default, IIRC | 14:40 |
mintsauce | But how do i provide a list of values to a Bool? I suppose I'm looking for a checkbox list, where only one item can be chosen. | 14:42 |
nyo1 | mintsauce: There also radio and dropdown bool widgets in zope.app.form | 14:42 |
*** fairwinds has joined #zope3-dev | 14:42 | |
mintsauce | How do I specify in the schema which widget to use? | 14:42 |
nyo1 | mintsauce: that's not specified in schema, but in form | 14:43 |
nyo1 | mintsauce: for z3c.form it's done by setting custom widgetFactory attribute for the form field | 14:43 |
nyo1 | mintsauce: for zope.formlib fields it's custom_widget iirc | 14:44 |
mintsauce | nyo1: Ahh ... that rings a bell, think I've done similar. | 14:44 |
mintsauce | Can a Bool have a list of values / vocab though? Can't seem to get that to work ... | 14:44 |
nyo1 | mintsauce: no, bool can only be True or False (or also None if not required), but what to show in the form is widget's thing. | 14:47 |
nyo1 | mintsauce: in z3c.form, if you want to override default yes/no, you can provide a custom terms adapter (see z3c.form.term.BoolTerms that you just can subclass and override trueLabel/falseLabel). | 14:48 |
mintsauce | So i need to customise a widget for the Choice attribute then .. | 14:49 |
nyo1 | mintsauce: whay are you want to do? | 14:49 |
mintsauce | I have a list of items, from which the user can only choose one. I'm using a jQuery plugin to render this as a slider (http://wnas.nl/jquery-ui-slider), it can only work with radio or text elements (text isn't an option) | 14:51 |
nyo1 | mintsauce: when why are you want to use Bool field? | 14:54 |
nyo1 | mintsauce: looks like Choice is the right one for that indeed | 14:55 |
mintsauce | nyo1: Because that seems to be the only way to render radio buttons from my schema (other than a custom widget). | 14:55 |
mintsauce | The js im using requires radio buttons though, not a drop down list. | 14:55 |
nyo1 | mintsauce: Then use Choice in schema and specify z3c.form.browser.radio.RadioFieldWidget as a widgetFactory for its field in your form. | 14:57 |
*** baijum has joined #zope3-dev | 14:59 | |
nyo1 | mintsauce: or even you could subclass the RadioWidget to make it do all js include/initialization for you :) | 14:59 |
mintsauce | nyo1: that would just be too sensible ;) | 14:59 |
*** markusleist has joined #zope3-dev | 15:02 | |
*** baijum has quit IRC | 15:04 | |
*** kaeru has quit IRC | 15:08 | |
*** benji has joined #zope3-dev | 15:12 | |
*** harobed has joined #zope3-dev | 15:20 | |
*** BjornT has quit IRC | 15:43 | |
mcdonc | nyo1: did you happen to see the changes i made to repoze.catalog.indexes.field (the curve-fitting sutff?) | 15:43 |
*** BjornT has joined #zope3-dev | 15:44 | |
nyo1 | mcdonc: I took a quick look at it, but I currently don't have much time to integrate that to zope.index | 15:47 |
mcdonc | nyo1: no worries, just wondered if you had seen it... ftr, it gets the decision right about 95% of the time (by testing) for which strategy to use for ascending sorts | 15:48 |
mcdonc | i havent done descending yet | 15:48 |
*** kursor has quit IRC | 15:51 | |
*** pelle_ has quit IRC | 15:57 | |
*** pelle_ has joined #zope3-dev | 15:57 | |
*** aaronv has joined #zope3-dev | 15:59 | |
*** pelle__ has joined #zope3-dev | 16:01 | |
*** jamur2 has joined #zope3-dev | 16:02 | |
*** lurkymclurkleton has joined #zope3-dev | 16:03 | |
*** J1m has joined #zope3-dev | 16:03 | |
*** pelle__ has quit IRC | 16:10 | |
*** pelle_ has quit IRC | 16:11 | |
*** pelle_ has joined #zope3-dev | 16:12 | |
*** binbrain has quit IRC | 16:13 | |
*** pelle__ has joined #zope3-dev | 16:16 | |
*** sp0cksbeard has joined #zope3-dev | 16:19 | |
*** binseer has quit IRC | 16:23 | |
*** nyo1 has quit IRC | 16:29 | |
*** nyo1 has joined #zope3-dev | 16:31 | |
*** pelle___ has joined #zope3-dev | 16:33 | |
*** pelle_ has quit IRC | 16:33 | |
*** pelle___ has quit IRC | 16:33 | |
*** projekt01_ has joined #zope3-dev | 16:34 | |
*** pelle___ has joined #zope3-dev | 16:35 | |
*** projekt01 has quit IRC | 16:35 | |
*** pelle____ has joined #zope3-dev | 16:39 | |
mintsauce | Are there any 'nice' examples of using schemas and add / edit forms with z3c.form - im stuggling to adapt my formlib based widgets .. | 16:41 |
*** pelle____ has quit IRC | 16:41 | |
*** pelle_____ has joined #zope3-dev | 16:41 | |
ignas | emm, you are adapting widgets, but want examples for schemas? | 16:42 |
ignas | it does not make sense | 16:42 |
mintsauce | hang on, let me past an example | 16:43 |
* mintsauce really needs to explain himself better | 16:43 | |
*** pelle____ has joined #zope3-dev | 16:45 | |
lisppaste6 | mintsauce pasted "AddForm" at http://paste.lisp.org/display/73533 | 16:45 |
*** pelle______ has joined #zope3-dev | 16:45 | |
*** pelle___ has quit IRC | 16:46 | |
mintsauce | So thats my Add / Edit form classes - how would I use z3c.form on *specific* fields - bearing in mind they all currently use formlib ... | 16:46 |
ignas | on fields? | 16:47 |
ignas | ouch, why? | 16:47 |
ignas | i mean you either use one or the other | 16:47 |
ignas | i would not suggest mixing them | 16:47 |
mintsauce | Can i just switch to z3c.form? | 16:47 |
ignas | yes, your form seems simple enough | 16:48 |
ignas | though - you might have to do some hacking around | 16:48 |
ignas | i mean - with layers | 16:48 |
mintsauce | hrrrm | 16:48 |
ignas | z3c.form wants some layer in your skin or it does not work | 16:48 |
mintsauce | i think i have layers already | 16:48 |
*** kaeru has joined #zope3-dev | 16:48 | |
ignas | also you might want to register some your application specific pagelets/viewlets to make it look like your formlib form used to | 16:49 |
ignas | can't tell you any details at the moment, but I know that it is doable ;) | 16:49 |
ignas | schooltool is using both formlib forms and z3c form in the same application, but not in the same view | 16:49 |
ignas | because they are completely different approaches | 16:49 |
ignas | (well, they share the part about schemas) | 16:50 |
mintsauce | although - all i want to do is use a radio widget on a Choice field - i assume i could just do that with formlib? | 16:50 |
ignas | yeah, i think you can | 16:50 |
ignas | you must set a custom widget | 16:50 |
mintsauce | In that same file? | 16:50 |
ignas | for that field | 16:50 |
ignas | i think formlib or zope3 has a radio widget widget | 16:50 |
ignas | so you just do fields['my_field'].custom_widget = TheWidget | 16:51 |
ignas | or something like that | 16:51 |
ignas | in your view | 16:51 |
pyqwer | mintsauce: Wait, radio widget on Choice field? | 16:51 |
*** thetet has joined #zope3-dev | 16:51 | |
pyqwer | Hmmm, I think I have done that. | 16:51 |
mintsauce | Yup ! | 16:52 |
* pyqwer searching code... | 16:52 | |
* mintsauce praying | 16:52 | |
*** basti__ has quit IRC | 16:52 | |
*** pelle__ has quit IRC | 16:53 | |
ignas | RadioWidget | 16:53 |
ignas | zope.app.form.browser.itemswidgets.RadioWidget | 16:53 |
ignas | should work I think | 16:53 |
*** Theuni has quit IRC | 16:53 | |
*** pelle____ has quit IRC | 16:53 | |
ignas | or you might have to wrap it in some kind of WidgetFactory | 16:53 |
pyqwer | from z3c.form.browser.radio import RadioFieldWidget | 16:55 |
ignas | pyqwer: he has a formlib form | 16:55 |
pyqwer | fields['myfield'] = RadioFieldWidget | 16:55 |
pyqwer | ignas: Oh, sorry, I thought he'd switch to z3c.form. | 16:55 |
ignas | form_fields['my_field'].custom_widget = RadioWidget | 16:56 |
ignas | and from zope.app.form.browser.itemswidget import RadioWidget | 16:56 |
ignas | should work | 16:56 |
ignas | I'd guess | 16:56 |
ignas | zope.app.form.browser import RadioWidget | 16:57 |
mintsauce | I'd like to switch to z3c.form - but it's a lot of work for now, for just this tiem | 16:57 |
pyqwer | mintsauce: I understand. | 16:57 |
*** reco has joined #zope3-dev | 16:57 | |
*** reco has joined #zope3-dev | 16:57 | |
pyqwer | I did the switch some time ago and did not regret it - although z3c.form can be kind of complicated. | 16:58 |
*** pelle_____ has quit IRC | 16:58 | |
mintsauce | hmmm ..... that code doesnt give an error ..... but the page still renders a dropdown ... | 16:59 |
ignas | mintsauce: did you set the widget for the right field? | 16:59 |
ignas | mintsauce: for the right view? | 16:59 |
ignas | just after "form_fields =" bit? | 16:59 |
mintsauce | yup ... double checking | 16:59 |
*** pelle_ has joined #zope3-dev | 17:01 | |
*** ChanServ sets mode: +o srichter | 17:02 | |
mintsauce | Hmm .... was reloading wrong page .... but now there is an error: | 17:03 |
mintsauce | _createWidget TypeError: __init__() takes exactly 4 arguments (3 given) | 17:03 |
mgedmin | that's familiar | 17:03 |
mgedmin | maybe try .custom_widget = CustomWidgetFactory(RadioWidget) | 17:03 |
mintsauce | wheres CustomWidgetFactory imported from? | 17:04 |
mgedmin | scratch the 'maybe', CustomWidgetFactory contains the extra code to pass the vocabulary for choice widgets | 17:04 |
mgedmin | it is a choice field, right? | 17:04 |
ignas | mgedmin: yes | 17:05 |
mintsauce | its a choice that i want to be a radio yup | 17:05 |
mgedmin | so CustomWidgetFactory is necessary | 17:05 |
mintsauce | from zope.app.form import CustomWidgetFactory | 17:05 |
mintsauce | Woo! | 17:06 |
mintsauce | That did it :) | 17:06 |
mintsauce | Once again, I suggest that zope3-dev needs a tip jar / paypal beer fund ;) | 17:07 |
*** pelle______ has quit IRC | 17:09 | |
*** pelle_ has quit IRC | 17:13 | |
*** andrew00david has joined #zope3-dev | 17:15 | |
*** projekt01_ is now known as projekt01 | 17:15 | |
*** projekt01 has quit IRC | 17:23 | |
*** andrew00david has quit IRC | 17:27 | |
*** andrew00david has joined #zope3-dev | 17:27 | |
*** vimes656 has joined #zope3-dev | 17:28 | |
*** goschtl has quit IRC | 17:32 | |
*** srichter has quit IRC | 17:33 | |
*** srichter has joined #zope3-dev | 17:33 | |
*** afd____ has quit IRC | 17:35 | |
*** menesis has joined #zope3-dev | 17:36 | |
*** ynamar has joined #zope3-dev | 17:39 | |
*** yotaff has joined #zope3-dev | 17:40 | |
*** ynamar has left #zope3-dev | 17:47 | |
*** srichter has quit IRC | 17:47 | |
*** srichter has joined #zope3-dev | 17:48 | |
*** TheSkrill has joined #zope3-dev | 17:53 | |
*** andrew00david has quit IRC | 17:54 | |
*** malthe is now known as malthe|away | 17:55 | |
*** MJ has quit IRC | 17:55 | |
*** cshenton has joined #zope3-dev | 17:58 | |
*** afd__ has joined #zope3-dev | 18:00 | |
*** strichter has joined #zope3-dev | 18:04 | |
*** cshenton_ has quit IRC | 18:07 | |
*** srichter is now known as Guest52336 | 18:08 | |
*** strichter is now known as srichter | 18:10 | |
*** ChanServ sets mode: +o srichter | 18:10 | |
*** __mac__ has joined #zope3-dev | 18:16 | |
*** jukart has quit IRC | 18:22 | |
*** Guest52336 has quit IRC | 18:24 | |
*** afd__ has quit IRC | 18:24 | |
*** regebro has left #zope3-dev | 18:25 | |
*** afd__ has joined #zope3-dev | 18:29 | |
*** fRiSi has quit IRC | 18:31 | |
*** davisagli_ has quit IRC | 18:34 | |
*** ignas has quit IRC | 18:38 | |
*** rmarianski has joined #zope3-dev | 18:40 | |
*** malthe|away is now known as malthe | 18:40 | |
mintsauce | Is it possible to override a formlib template easily? | 18:56 |
mintsauce | The radio template includes some extra divs that I dont want - can I include a radio.pt or similar locally for it to use? | 18:57 |
*** __mac__ has quit IRC | 18:58 | |
*** Rolando has quit IRC | 19:01 | |
*** markusleist has quit IRC | 19:02 | |
mgedmin | surew | 19:04 |
mgedmin | IIRC template = ViewPageTemplateFile('radio.pt') in your view is sufficient | 19:05 |
mintsauce | it doesnt have a seperate view, its called in the add from we discussed earlier | 19:06 |
mintsauce | custom_widget = CustomWidgetFactory(RadioWidget) | 19:06 |
*** davisagli has joined #zope3-dev | 19:07 | |
mgedmin | oh, you mean the *widget* template | 19:07 |
mgedmin | sorry, I misunderstood | 19:07 |
mintsauce | yup | 19:08 |
mgedmin | you can subclass RadioWidget and use it for your custom widget | 19:08 |
mgedmin | or inline your wanted widget html in the parent view's template instead of using the form macro | 19:09 |
mgedmin | I suspect z3c.form would have more points for customization | 19:09 |
*** ktwilight__ has quit IRC | 19:16 | |
*** ktwilight has joined #zope3-dev | 19:17 | |
*** alga has quit IRC | 19:24 | |
*** sp0cksbeard has quit IRC | 19:26 | |
*** TheSkrill has quit IRC | 19:26 | |
*** quodt has quit IRC | 19:29 | |
*** jukart has joined #zope3-dev | 19:33 | |
*** pyqwer has quit IRC | 19:34 | |
*** vimes656 has quit IRC | 19:35 | |
*** TheSkrill has joined #zope3-dev | 19:35 | |
*** danfairs has quit IRC | 19:36 | |
*** MrTopf has joined #zope3-dev | 19:36 | |
*** alga has joined #zope3-dev | 19:37 | |
*** nathany has quit IRC | 19:38 | |
*** binbrain has joined #zope3-dev | 19:38 | |
*** hipertracker is now known as hipertracker|off | 19:41 | |
*** MrSipan has joined #zope3-dev | 19:46 | |
*** jukart has quit IRC | 19:51 | |
*** harobed has quit IRC | 19:53 | |
*** nathany has joined #zope3-dev | 19:56 | |
*** mintsauce has quit IRC | 19:56 | |
*** Jell-O-Fishi has quit IRC | 19:57 | |
*** mintsauce has joined #zope3-dev | 19:58 | |
*** mkerrin has quit IRC | 20:02 | |
*** menesis has quit IRC | 20:08 | |
*** mgedmin has quit IRC | 20:22 | |
*** timte has joined #zope3-dev | 20:25 | |
*** quodt has joined #zope3-dev | 20:27 | |
*** vimes656 has joined #zope3-dev | 20:34 | |
*** thetet has left #zope3-dev | 20:39 | |
*** davisagli is now known as davi|mtg | 20:42 | |
*** MrTopf has quit IRC | 20:42 | |
*** dunny has joined #zope3-dev | 20:53 | |
*** afd__ has quit IRC | 20:59 | |
*** markusleist has joined #zope3-dev | 21:05 | |
*** binbrain has quit IRC | 21:09 | |
*** danfairs has joined #zope3-dev | 21:24 | |
*** philiKON_ has joined #zope3-dev | 21:31 | |
*** agroszer_ has joined #zope3-dev | 21:31 | |
junkafarian | how can i print a `%` in a tal python statement? | 21:41 |
junkafarian | eg: tal:attributes="style python:'width:%s%%;' % ('40')" | 21:42 |
*** philiKON has quit IRC | 21:46 | |
*** agroszer has quit IRC | 21:49 | |
junkafarian | ah, it was the `;` | 21:51 |
junkafarian | my bad | 21:51 |
*** junkafarian has quit IRC | 21:54 | |
*** davi|mtg is now known as davisagli | 21:55 | |
*** cshenton_ has joined #zope3-dev | 21:59 | |
*** greenman has joined #zope3-dev | 22:04 | |
*** Theuni has joined #zope3-dev | 22:05 | |
*** cshenton has quit IRC | 22:06 | |
*** agroszer_ has quit IRC | 22:09 | |
*** danfairs has quit IRC | 22:17 | |
*** danfairs has joined #zope3-dev | 22:19 | |
*** junkafarian has joined #zope3-dev | 22:19 | |
*** menesis has joined #zope3-dev | 22:22 | |
*** danfairs has quit IRC | 22:22 | |
*** danfairs has joined #zope3-dev | 22:22 | |
*** TresEquis has joined #zope3-dev | 22:42 | |
*** timte has quit IRC | 22:42 | |
*** vimes656 has quit IRC | 22:43 | |
*** binbrain has joined #zope3-dev | 23:05 | |
*** harobed has joined #zope3-dev | 23:13 | |
*** lisppaste6 has quit IRC | 23:18 | |
*** menesis has quit IRC | 23:24 | |
*** lisppaste6 has joined #zope3-dev | 23:24 | |
*** quodt has quit IRC | 23:39 | |
*** rocky1 has joined #zope3-dev | 23:43 | |
*** Theuni has quit IRC | 23:50 | |
*** rocky has quit IRC | 23:51 | |
*** Jell-O-Fishi has joined #zope3-dev | 23:57 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!