This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Encoding: utf-8 | |
from nagare import component, presentation | |
class Item(object): | |
def __init__(self, text): | |
self.text = text | |
@presentation.render_for(Item) | |
def render(self, h, *args): | |
return h.span(self.text) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from nagare import component, presentation, editor, validator, ajax | |
# -------------------------------------------------------------------------- | |
class Aggregator(object): | |
def __init__(self): | |
self.todo_list_component = component.Component( | |
TodoEntryListEditor()) | |
self.todo_entry_component = component.Component( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from nagare import component, presentation, editor, validator | |
# -------------------------------------------------------------------------- | |
class Aggregator(object): | |
def __init__(self): | |
self.todo_list_component = component.Component( | |
TodoEntryListEditor()) | |
self.todo_entry_component = component.Component( |