Welcome to www.sevenever.com
Something about programming, Linux, geek...Added an issue.
And tinyMCE dose not work now in this Edit post page, why? my problem or tinyMCE's?
gae has changed a lot since last study last September, there are 5 item in "main" group in the gae admin page, but 2 of them (Cron jobs and Task Queues) never used. Beside this, the memcache api, XMPP api is the same status. It seems that a new study of gae is necessary.
in Hitachi, Ibaraki, Japan 2009/09/05
Hi, glog has been added a widget framework.
A theme can define widget groups as widgets container for show widgets on page. Template variable "wgroup1...n" which is list of widget string will be pass to template engine. Theme can fetch widget content from URL like "/blogId/widget/widgetid/widget_param" by ajax or something else.
User specify which widgets will be shown and group them by a simple rule.
Widget developer just need write a python module, import the widget module define a module function and register it. Of course, developer must write a templete file for this widget named "widgetid.widget".
I'll give some example later. But if you read the source you'll find that Tags cloud, Archives list, Blog infomation, RecentComment has implemented as widget.
需要管理员手动添加blogger,不能自动注册。并且需要用户有google账号。如果你愿意尝鲜,我非常欢迎,请通过邮件sevenever#gmail.com告诉我,并把你的gmail地址给我我就帮你加。
Theme的框架是有了,但是没时间做其他的Theme,就凑合default吧。
打算把这个东西叫glog了,简单,google appengine blog简称glog。
仍然有个问题,TinyMCE的form提交的时候,textarea的内容还是空的,第二次提交才不空(每次publish的时候都会报个错content is empty),需要调查一下。
gae 中
如果是html page的GET和POST数据,self.request.get['name']获得的是unicode类型
如果是XHR(xmlhttprequest)的GET和POST数据,self.request.get['name']获得的是str类型(utf-8)
python 中调用父类同名方法的方法fromlimodou:
class TestBase(object):
def myMethod(self):
pass
class MyTest1(TestBase):
def myMethod(self):
super(MyTest1, self).myMethod()
#other process