MCPcopy Create free account

hub / github.com/everydo/zcms / functions

Functions91 in github.com/everydo/zcms

↓ 38 callersMethodget
(self, key, default=None)
zcms/models.py:172
↓ 22 callersMethodospath
transform to a real os path
zcms/frs.py:63
↓ 12 callersMethodexists
(self, vPath)
zcms/frs.py:71
↓ 8 callersMethodjoinpath
(self, *arg)
zcms/frs.py:78
↓ 8 callersMethodkeys
(self, do_filter=False, do_sort=False)
zcms/models.py:138
↓ 7 callersMethoddirname
(self, path)
zcms/frs.py:90
↓ 7 callersMethodlistdir
(self, vPath, pattern=None)
zcms/frs.py:116
↓ 6 callersMethodopen
(self, vPath, mode='r')
zcms/frs.py:134
↓ 6 callersMethodurl
得到对象的URL,如果不是文件夹,去除之后的/
zcms/models.py:46
↓ 5 callersMethodcache_path
get os path of cache folder for vpath
zcms/frs.py:58
↓ 4 callersMethod_get
(self, key)
zcms/models.py:111
↓ 4 callersMethodmakedirs
(self, vPath, mode=0777)
zcms/frs.py:150
↓ 4 callersMethodremove
remove a file path
zcms/frs.py:158
↓ 4 callersMethodrender_html
(self, request)
zcms/models.py:340
↓ 4 callersMethodvalues
(self, do_filter=False, do_sort=False)
zcms/models.py:178
↓ 3 callersFunctiongetDisplayTime
人性化的时间显示: (支持时区转换) time 是datetime类型,或者timestampe的服点数, 最后的show_mode是如下: - localdate: 直接转换为本地时间显示,到天 - localdatetime: 直接转换为本地时间显示,到 年
zcms/utils.py:35
↓ 3 callersMethodget_obj_by_subpath
根据vpath,找到对象
zcms/models.py:245
↓ 3 callersMethodisfile
(self, vPath)
zcms/frs.py:101
↓ 3 callersMethodismount
return if vPath is a mount folder
zcms/frs.py:93
↓ 3 callersMethodmove
(self, vPath1, vPath2)
zcms/frs.py:137
↓ 3 callersMethodrender_slots
name can be: left, right, upper
zcms/models.py:84
↓ 2 callersMethod_filter
Subclasses may overwrite this method. Filter possible assets.
zcms/models.py:104
↓ 2 callersMethodget_recent_file_subpaths
(self)
zcms/models.py:185
↓ 2 callersMethodget_site
得到所属的站点
zcms/models.py:59
↓ 2 callersFunctionrst2html
(rst, path, context, request)
zcms/utils.py:99
↓ 2 callersFunctionucopytree
(ossrc, osdst, symlinks=False)
zcms/frs.py:15
↓ 1 callersMethod_get_slot_info
(self, name)
zcms/models.py:66
↓ 1 callersMethodbasename
(self, path)
zcms/frs.py:81
↓ 1 callersFunctionblog_view
(context, request, size=5)
zcms/blog_views.py:14
↓ 1 callersMethodcopyfile
(self, vSrc, vDst)
zcms/frs.py:163
↓ 1 callersMethodcopytree
(self, vSrc, vDst)
zcms/frs.py:166
↓ 1 callersMethodget_body
(self)
zcms/models.py:326
↓ 1 callersFunctionget_sub_time_paths
迭代查找整个子目录,找出所有的子文档的路径
zcms/models.py:16
↓ 1 callersFunctionget_theme_template
(theme_url)
zcms/utils.py:184
↓ 1 callersMethodisdir
(self, vPath)
zcms/frs.py:98
↓ 1 callersMethoditems
(self, do_filter=False, do_sort=False)
zcms/models.py:181
↓ 1 callersMethodmount
XXX only support mount top dirs only now mount filesystem path to vfs
zcms/frs.py:37
↓ 1 callersFunctionnav_tree
render navtree structure, root_depth from root
zcms/directives/navtree.py:49
↓ 1 callersFunctionrender_news
(context, request, path, size=5, klass='nav nav-list')
zcms/directives/news.py:42
↓ 1 callersFunctionrender_sections
(site, context, request)
zcms/utils.py:122
↓ 1 callersMethodrmtree
(self, vPath, ignore_errors=False, onerror=None)
zcms/frs.py:173
↓ 1 callersMethodsplitext
(self, name)
zcms/frs.py:84
↓ 1 callersMethodstat
(self, vPath)
zcms/frs.py:87
↓ 1 callersFunctionumove
(ossrc, osdst)
zcms/frs.py:23
Method__contains__
(self, key)
zcms/models.py:258
Method__getitem__
traverse
zcms/models.py:254
Method__init__
(self, cache_root='/tmp')
zcms/frs.py:33
Method__init__
(self, frs, vpath=u'/')
zcms/models.py:37
Method__iter__
(self)
zcms/models.py:261
Method__len__
(self)
zcms/models.py:264
Function_func
(context, request)
zcms/utils.py:141
Method_get_data
(self)
zcms/models.py:270
Method_set_data
(self, value)
zcms/models.py:276
Methodatime
(self, vPath)
zcms/frs.py:104
Functionblog_post_view
单独一篇博客
zcms/blog_views.py:56
Functionblogs_directive
(name, arguments, options, content, lineno, content_offset, block_text, state, state_machi
zcms/directives/blogs.py:26
Functionclear_content_cache
()
zcms/views.py:104
Functionclear_theme_cache
()
zcms/views.py:100
MethodcontentType
(self)
zcms/models.py:289
MethodcopyAsset
copy folder / file don't keep stat
zcms/frs.py:230
Methodctime
(self, vPath)
zcms/frs.py:110
Methoddirs
(self, vPath, pattern=None)
zcms/frs.py:124
Functiondocument_view
(context, request)
zcms/views.py:56
Functiondownload_view
(context, request)
zcms/views.py:89
Functionfile_view
(context, request)
zcms/views.py:61
Methodfiles
(self, vPath, pattern=None)
zcms/frs.py:129
Functionfolder_view
(context, request)
zcms/views.py:17
MethodgetNewName
(self, path, name)
zcms/frs.py:153
Functionget_root
(environ)
zcms/__init__.py:23
Methodgetsize
(self, vPath)
zcms/frs.py:113
Functionimage_view
(context, request)
zcms/views.py:73
Methodlag_minutes
(time_now, txt_time)
zcms/models.py:200
Functionmain
(global_config, sites, **settings)
zcms/__init__.py:16
Methodmetadata
(self)
zcms/models.py:95
Methodmetadata
(self)
zcms/models.py:285
Methodmetadata
(self)
zcms/models.py:304
Methodmkdir
(self, vPath, mode=0777)
zcms/frs.py:147
MethodmoveAsset
rename or move a file or folder
zcms/frs.py:214
Methodmtime
(self, vPath)
zcms/frs.py:107
Methodmycmp
(x, y)
zcms/models.py:230
Functionnavtree_directive
(name, arguments, options, content, lineno, content_offset, block_text, state, state_ma
zcms/directives/navtree.py:33
Functionnews_directive
(name, arguments, options, content, lineno, content_offset, block_text, state, state_machine)
zcms/directives/news.py:28
Methodospath
(self)
zcms/models.py:43
Functionpygments_directive
(name, arguments, options, content, lineno, content_offset, block_text, state, state_ma
zcms/directives/codeblock.py:64
MethodremoveAsset
(self, path)
zcms/frs.py:205
MethodsetCacheRoot
where to push caches
zcms/frs.py:48
Methodtitle
(self)
zcms/models.py:54
Methodtouch
(self, vpath)
zcms/frs.py:180
Methodvpath
transform ospath to vpath
zcms/frs.py:52
Methodwalk
(self, top, topdown=True, onerror=None)
zcms/frs.py:184
Functionzcms_template
(func)
zcms/utils.py:140