from myapp.views import MyClassBasedView view_func = MyClassBasedView(template_name="myapp/mytemplate.html")
Paolo,
Sorry about my absence. I'd been spending a crazy days for Google I/O.
I'm going to release 3.0 in a days.
and the commit should work fine.xcash@localhost /tmp $ hg clone https://paolo.c...@code.google.com/p/kay-framework/...925 files updated, 0 files merged, 0 files removed, 0 files unresolved#you may need to clone this via httpsxcash@localhost /tmp $ hg clone ssh://h...@bitbucket.org/xcash/kay-framework kay-framework-cash...925 files updated, 0 files merged, 0 files removed, 0 files unresolvedin the kay-framework dir (official repo)hg up py27 to change the branchxcash@localhost /tmp/kay-framework $ hg pull ../kay-framework-cashthis will pull my modificationsin factxcash@localhost /tmp/kay-framework $ hg headschangeset: 1194:dfefd886d82dbranch: py27tag: tipparent: 1193:1277744ab12bparent: 1181:9690fdac2f6euser: Paolo Casciello <paolo.c...@gmail.com>date: Sun Mar 04 11:15:56 2012 +0100summary: merge up from officialchangeset: 1187:bd8a53fc5276branch: py27user: Takashi Matsuo <tma...@shehas.net>date: Fri Jul 06 17:33:21 2012 +0900summary: Docs small fix.then let's merge (some tutorial and docs fixes)xcash@localhost /tmp/kay-framework $ hg mergemerging docs/source/conf.py4 files updated, 1 files merged, 0 files removed, 0 files unresolved(branch merge, don't forget to commit)
> For more options, visit this group at
> http://groups.google.com/group/kay-users?hl=en.
--
You received this message because you are subscribed to the Google Groups "kay-users" group.
To post to this group, send email to kay-...@googlegroups.com.
To unsubscribe from this group, send email to kay-users+unsubscribe@googlegroups.com.
view_groups = [
ViewGroup(
Rule('/', endpoint='index', view=('app_name.listings.ListingsHandler', (), {})),
Rule('/<username>', endpoint='index'),
...
class ListingsHandler(<class derived from kay.handlers.BaseHandler>):
def get_template(self):
...
def get_headers(self):
if self.request.method == 'GET' and not getattr(self, 'no_cache', False):
return {'Cache-Control': 'public,max-age=60'}
return {}
def get_data(self):
data = super(ListingsHandler, self).get_data()
...
return data
@ndb.toplevel
def get(self, username = '@'):
...