Helma Logo
main list history
previous version  overview  next version

Version 2 by hannes on 17. September 2005, 00:05

(brainstorming)

StoryController = {
    edit_action: function() {
        var stories = Story.collection({filter: "x = 'bar'",
                                        accessname: "dongle",
                                        order: "MOOPAD"});
        var story = stories.get(req.form.id);
        story.name = req.form.name;
    }
}
 
Story.mapping = {
    id: "id",
    name: "name",
    author: User.reference("author_id"),
    comments: Comment.collection({local: "id"; foreign: "story_id"})
}

     removed
     added