New Blog Coming Soon
So I got tired of the blogger thing and decided that since I was upgrading my current web hosting solution, I might as well setup wordpress on my own box and use that instead. So check it out at
blog.carduner.net
Be prepared for anything.
So I got tired of the blogger thing and decided that since I was upgrading my current web hosting solution, I might as well setup wordpress on my own box and use that instead. So check it out at
blog.carduner.net
Posted by Paul Carduner at 5:13 PM 0 comments
After a few weeks of fruitful and not so fruitful work sessions, I am slowly approaching the benchmark for a 0.1 release of z3c.formjs. So what will be provided in the 0.1 release?
import zope.interface
from z3c.form import form, button
from z3c.formui import layout
from z3c.formjs import jsbutton
class IButtons(zope.interface.Interface):
show = jsbutton.JSButton(title=u'Show Code')
hide = jsbutton.JSButton(title=u'Hide Code')
class ButtonForm(layout.FormLayoutSupport, form.EditForm):
buttons = button.Buttons(IButtons)
@jsbutton.handler(IButtons['show'])
def handleShow(self, id):
return '$("#code").slideDown()'
@jsbutton.handler(IButtons['hide'])
def handleHide(self, id):
return '$("#code").slideUp()'
@jsevent.handler(fields['state'], event=jsevent.CHANGED)
def handleStateChange(self, id):
return jsevent.updateWidgetFor(self.fields['city']).render()
Posted by Paul Carduner at 4:46 PM 0 comments
Labels: GSOC