Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dinever/crotal
/ functions
Functions
226 in github.com/dinever/crotal
⨍
Functions
226
◇
Types & classes
41
↓ 32 callers
Method
remove
(self, key)
crotal/models/base.py:55
↓ 31 callers
Function
getScalar
(orig, dim)
crotal/quickstart-template/themes/hueman/static/fancybox/jquery.fancybox.js:38
↓ 31 callers
Function
m
(a,d)
crotal/quickstart-template/themes/hueman/static/fancybox/jquery.fancybox.pack.js:2
↓ 19 callers
Method
add
(cls, name, obj)
crotal/models/others.py:101
↓ 17 callers
Method
all
(self)
crotal/models/base.py:60
↓ 11 callers
Function
getValue
(value, dim)
crotal/quickstart-template/themes/hueman/static/fancybox/jquery.fancybox.js:47
↓ 11 callers
Function
x
(a,b)
crotal/quickstart-template/themes/hueman/static/fancybox/jquery.fancybox.pack.js:2
↓ 10 callers
Function
isString
(str)
crotal/quickstart-template/themes/hueman/static/fancybox/jquery.fancybox.js:29
↓ 10 callers
Function
r
(a)
crotal/quickstart-template/themes/hueman/static/fancybox/jquery.fancybox.pack.js:2
↓ 9 callers
Method
get
(self, key, default=None)
crotal/models/base.py:52
↓ 9 callers
Method
insert
(self, obj)
crotal/models/others.py:150
↓ 8 callers
Method
render
Render the content of the site based on templates. :return: None
crotal/site.py:114
↓ 8 callers
Function
set
()
crotal/quickstart-template/themes/hueman/static/fancybox/jquery.fancybox.js:437
↓ 7 callers
Function
F
(a)
crotal/quickstart-template/themes/hueman/static/fancybox/jquery.fancybox.pack.js:2
↓ 7 callers
Function
isPercentage
(str)
crotal/quickstart-template/themes/hueman/static/fancybox/jquery.fancybox.js:32
↓ 6 callers
Method
_layout_file
(self, filename)
crotal/renderer.py:34
↓ 6 callers
Method
_update_variables
(self, new_variables)
crotal/renderer.py:40
↓ 6 callers
Method
add
(self, key, value)
crotal/models/base.py:45
↓ 6 callers
Function
isQuery
(obj)
crotal/quickstart-template/themes/hueman/static/fancybox/jquery.fancybox.js:26
↓ 6 callers
Method
load
This method loads the static files indicated by ``cls.PATH`` of each model, then parse them into objects. :param database: A
crotal/models/base.py:167
↓ 6 callers
Function
u
(a)
crotal/quickstart-template/themes/hueman/static/fancybox/jquery.fancybox.pack.js:2
↓ 6 callers
Method
write
Write the site content based on ``self.site_content``. :return: None
crotal/site.py:122
↓ 5 callers
Method
from_text
This method is used to load a single object from a string. :param file_path: The path of the designated file. :param text: T
crotal/models/base.py:334
↓ 5 callers
Method
generate
Generate the site, first render the templates, then write the rendered files in the output path, then save the database json file ``d
crotal/site.py:68
↓ 5 callers
Method
get
(self, key, default=None)
crotal/db.py:165
↓ 5 callers
Method
parse
(self, input)
crotal/models/fields.py:15
↓ 5 callers
Method
sort
(self, key, reverse=False)
crotal/models/base.py:63
↓ 4 callers
Method
__repr__
(self)
crotal/models/others.py:129
↓ 4 callers
Method
create
Convert the page content from markdown into html format.
crotal/models/page.py:54
↓ 3 callers
Function
callback
(call)
crotal/quickstart-template/themes/hueman/static/scrollLoading/jquery.scrollLoading.js:29
↓ 3 callers
Method
get_table
Get a table object, same to ``self.__getitem__``. :param table: Name of the table acquired. :return: A ``table`` object.
crotal/db.py:55
↓ 3 callers
Method
hanzi2pinyin_split
(self, string="", split="")
crotal/lib/pinyin/pinyin.py:65
↓ 3 callers
Method
load_config
(output=None)
crotal/command.py:67
↓ 3 callers
Method
process
(self, event)
crotal/server.py:118
↓ 2 callers
Function
autoHideMenus
()
crotal/quickstart-template/themes/hueman/static/js/html-patch.js:33
↓ 2 callers
Function
clear
()
crotal/quickstart-template/themes/hueman/static/fancybox/jquery.fancybox.js:434
↓ 2 callers
Method
create
This function is called after the model has successfully load the documents from the folder indicated, it should be overridden if
crotal/models/base.py:138
↓ 2 callers
Function
d
()
crotal/quickstart-template/themes/hueman/static/fancybox/jquery.fancybox.pack.js:10
↓ 2 callers
Method
dumps
Similar to ``json.dumps``.
crotal/db.py:104
↓ 2 callers
Method
get_item
Get the value directly from the database based on key and table name. :param table: Name of the table acquired. :param key:
crotal/db.py:69
↓ 2 callers
Method
get_template
Override `get_template` so that it returns a `error template` when lookup failed to locate the template.
crotal/template_engine.py:19
↓ 2 callers
Method
load_extra_items
This method is called after all static files are load. If you want to load some other fields from the files in addition to the main f
crotal/models/base.py:268
↓ 2 callers
Method
load_single_file
This method is used to load a single file from the ``file_path``. :param file_path: The path of the designated file. :param
crotal/models/base.py:282
↓ 2 callers
Method
load_word
(self)
crotal/lib/pinyin/pinyin.py:23
↓ 2 callers
Function
make_dirs
(file_path)
crotal/utils.py:19
↓ 2 callers
Method
parse_attributes
For each attributes read from the static file, find the corresponding field and parse the attribute by the ``parse`` method under the
crotal/models/base.py:375
↓ 2 callers
Method
parse_content
Parse the content from a string and return an model object. :param file_path: The path of the designated file. :param conten
crotal/models/base.py:346
↓ 2 callers
Method
remove_single_file
This method is used to remove a single file from the object manager and the database. :param file_path: The path of the desi
crotal/models/base.py:293
↓ 2 callers
Function
setThumbnailHeight
()
crotal/quickstart-template/themes/hueman/static/js/html-patch.js:25
↓ 1 callers
Method
__init__
(self, config, port)
crotal/server.py:70
↓ 1 callers
Method
__init__
(self, **attributes)
crotal/models/base.py:126
↓ 1 callers
Method
__new__
This metaclass for `Model` adds a ``_fields`` attribute to the host class, ``_fields`` contains the fields which should be defined in
crotal/models/base.py:73
↓ 1 callers
Method
_run
Test the HTTP request handler class. This runs an HTTP server on port 1124 (or the first command line argument).
crotal/server.py:87
↓ 1 callers
Function
c
()
crotal/quickstart-template/themes/hueman/static/fancybox/jquery.fancybox.pack.js:11
↓ 1 callers
Method
check_config
(self, path)
crotal/config.py:45
↓ 1 callers
Method
classify_files
This method classifies the static files into 3 types: ``unmodified``, ``modified`` and ``removed`` by comparing the last modified tim
crotal/models/base.py:188
↓ 1 callers
Method
deploy
(self)
crotal/deploy.py:12
↓ 1 callers
Method
detect_file_type
Decide which model the file belongs to. :param file_path: Path of the file. :return: ``model`` that the file belongs to.
crotal/site.py:102
↓ 1 callers
Function
e
()
crotal/quickstart-template/themes/hueman/static/fancybox/jquery.fancybox.pack.js:10
↓ 1 callers
Method
escape_keywords
This method serves like a switch statement, return field by the indicated keyword. :param word: ``year``, ``month``, ``day``, ``title
crotal/models/post.py:170
↓ 1 callers
Function
format
( url, rez, params )
crotal/quickstart-template/themes/hueman/static/fancybox/helpers/jquery.fancybox-media.js:70
↓ 1 callers
Method
from_db
This method is used to load a single object directly from the database. :param path: Path of the designated file, which is n
crotal/models/base.py:306
↓ 1 callers
Method
from_file
Read the database from the path argument. :param path: The file path of the designated database file. :return: The database o
crotal/db.py:16
↓ 1 callers
Method
from_file
This method is used to load a single object from the file system. :param file_path: The path of the designated file. :param
crotal/models/base.py:321
↓ 1 callers
Method
generate_url
Save the post url by the permalink in config file. The permalink is seperated into servel parts from '/'. If one part of it
crotal/models/post.py:149
↓ 1 callers
Method
generate_url
(self)
crotal/models/others.py:27
↓ 1 callers
Method
generate_url
(self)
crotal/models/others.py:83
↓ 1 callers
Method
generate_url
(self)
crotal/models/others.py:141
↓ 1 callers
Method
generate_url
(self)
crotal/models/others.py:203
↓ 1 callers
Method
get_file_list
This method returns the list of all the source files in the directory indicated. Notice that there be multiple paths passed as a list
crotal/models/base.py:396
↓ 1 callers
Method
git_deploy
(self)
crotal/deploy.py:18
↓ 1 callers
Method
hanzi2pinyin
(self, string="")
crotal/lib/pinyin/pinyin.py:36
↓ 1 callers
Method
identify_output_path
(self, source_path)
crotal/models/others.py:33
↓ 1 callers
Function
isScrollable
(el)
crotal/quickstart-template/themes/hueman/static/fancybox/jquery.fancybox.js:35
↓ 1 callers
Method
keys
(self)
crotal/db.py:162
↓ 1 callers
Method
load_main_items
This method handles 3 types of source file differently, loads the fields of each source file, build objects and add them into the
crotal/models/base.py:232
↓ 1 callers
Method
load_modules
(self)
crotal/site.py:55
↓ 1 callers
Function
loading
()
crotal/quickstart-template/themes/hueman/static/scrollLoading/jquery.scrollLoading.js:35
↓ 1 callers
Function
main
()
crotal/main.py:62
↓ 1 callers
Function
parse_arguments
()
crotal/main.py:31
↓ 1 callers
Method
parse_content
(cls, file_path, config)
crotal/models/others.py:20
↓ 1 callers
Method
parse_single_file
This method is used when single file change was detected during the server running. When a single file is modified, created
crotal/site.py:79
↓ 1 callers
Function
read
(fname)
setup.py:9
↓ 1 callers
Method
read_from_file
(self)
crotal/config.py:37
↓ 1 callers
Method
rsync
(self)
crotal/deploy.py:32
↓ 1 callers
Method
run
(self)
crotal/renderer.py:131
↓ 1 callers
Method
save
Save the database content into ``db.json``. :return: None
crotal/site.py:147
↓ 1 callers
Method
serialize
(self)
crotal/models/base.py:150
↓ 1 callers
Function
setScrollLoading
()
crotal/quickstart-template/themes/hueman/static/scrollLoading/main.js:9
↓ 1 callers
Method
single_file_on_change
This method is called by the crotal server. If there is a file change when the server is running, the server will call this m
crotal/models/base.py:208
↓ 1 callers
Function
start
()
crotal/quickstart-template/themes/hueman/static/fancybox/jquery.fancybox.js:453
↓ 1 callers
Function
stop
()
crotal/quickstart-template/themes/hueman/static/fancybox/jquery.fancybox.js:444
↓ 1 callers
Method
to_db
Convert the data from object into crotal database format for data persistence and serialization. :param absolute_path: Absol
crotal/models/base.py:153
Method
__contains__
(self, key)
crotal/db.py:147
Method
__contains__
(self, item)
crotal/models/base.py:34
Method
__delitem__
Remove an item from the cache dict. Raise a `KeyError` if it does not exist.
crotal/db.py:153
Method
__delitem__
(self, key)
crotal/models/others.py:78
Method
__delitem__
(self, key)
crotal/models/others.py:132
Method
__eq__
(self, other)
crotal/models/others.py:72
Method
__eq__
(self, other)
crotal/models/others.py:126
next →
1–100 of 226, ranked by callers