MCPcopy Create free account

hub / github.com/ahmedkhlief/muddyc3-Revived / functions

Functions768 in github.com/ahmedkhlief/muddyc3-Revived

Methodclear
Delete all rows and field names from the table, maintaining nothing but styling options
lib/prettytable.py:837
Methodclear_rows
Delete all rows from the table but keep the current field names
lib/prettytable.py:833
Functioncommify
Add commas to an integer `n`. >>> commify(1) '1' >>> commify(123) '123' >>> commify(-123) '-
lib/web/utils.py:1015
Methodcompile_template
(self, *a)
lib/web/template.py:966
Functioncond
Function replacement for if-else to use in expressions. >>> x = 2 >>> cond(x % 2 == 0, "even", "odd") 'even'
lib/web/utils.py:1096
Functioncookies
Returns a `storage` object with all the request cookies in it. See `storify` for how `requireds` and `defaults` work. This is fo
lib/web/webapi.py:519
Methodcopy
(self)
lib/prettytable.py:843
Functiondatabase
Creates appropriate database using params. Pooling will be enabled if DBUtils module is available. Pooling can be disabled by passing po
lib/web/db.py:1222
Functiondateify
Formats a numified `datestring` properly.
lib/web/utils.py:1066
Functiondatestr
Converts a (UTC) datetime object to a nice string representation. >>> from datetime import datetime, timedelta >>> d = datet
lib/web/utils.py:898
Functiondebug
Prints a prettyprinted version of `args` to stderr.
lib/web/webapi.py:541
Functiondecode_cookie
r"""Safely decodes a cookie value to unicode. Tries us-ascii, utf-8 and io8859 encodings, in that order. >>> decode_cookie('')
lib/web/webapi.py:449
Functiondecorator
(cls)
lib/web/application.py:508
Methoddel_row
Delete a row to the table Arguments: row_index - The index of the row you want to delete. Indexing starts at 0.
lib/prettytable.py:799
Methoddelete
(self, table, where=None, using=None, vars=None, _test=False)
lib/web/db.py:1100
Functiondictfind
Returns a key whose value in `dictionary` is `element` or, if none exists, None. >>> d = {1:2, 3:4} >>> dictfind(d, 4)
lib/web/utils.py:770
Functiondictfindall
Returns the keys whose values in `dictionary` are `element` or, if none exists, []. >>> d = {1:4, 3:4} >>> dictfindall(d
lib/web/utils.py:785
Functiondictreverse
Returns a new dictionary with keys and values swapped. >>> dictreverse({1: 2, 3: 4}) {2: 1, 4: 3}
lib/web/utils.py:760
Methoddo_GET
(self)
lib/web/httpserver.py:97
Methoddo_commit
(self)
lib/web/db.py:481
Methoddo_rollback
(self)
lib/web/db.py:484
Methoddo_transact
(self)
lib/web/db.py:478
Functionemailerrors
Wraps the old `internalerror` handler (pass as `olderror`) to additionally email all errors to `to_address`, to aid in debugging prod
lib/web/debugerror.py:117
Functionemailerrors_internal
()
lib/web/debugerror.py:128
Methodemit
(self, indent)
lib/web/template.py:540
Methodemit
(self, indent, begin_indent = '')
lib/web/template.py:553
Methodemit
(self, indent, begin_indent = '')
lib/web/template.py:568
Methodemit
(self, indent, begin_indent = '')
lib/web/template.py:584
Methodemit
(self, indent, text_indent = '', name = '')
lib/web/template.py:596
Methodemit
(self, indent, text_indent = '')
lib/web/template.py:615
Methodemit
(self, indent, text_indent = '')
lib/web/template.py:644
Methodemit
(self, indent, begin_indent = '')
lib/web/template.py:658
Methodemit
(self, indent, text_indent)
lib/web/template.py:700
Methodemit
(self, indent, text_indent = '')
lib/web/template.py:713
Methodexit
(self, args = None)
core/cmd.py:35
Functionexpires
Outputs an `Expires` header for `delta` from now. `delta` is a `timedelta` object or a number of seconds.
lib/web/http.py:36
Methodextended_expr
()
lib/web/template.py:273
Methodf
(link)
lib/web/browser.py:155
Methodfind_indent
(text)
lib/web/template.py:460
Methodfind_link
(self, text = None, text_regex = None, url = None, url_regex = None, predicate = None)
lib/web/browser.py:138
Methodfirst
Returns the first element of the iterator or None when there are no elements. If the optional argument default is specified,
lib/web/utils.py:682
Methodfollow_link
(self, link = None, text = None, text_regex = None, url = None, url_regex = None, predicate = None)
lib/web/browser.py:128
Functionform
(openid_loc)
lib/web/webopenid.py:64
Functionformat_exc
(limit=None)
lib/web/utils.py:1189
Functionfrender
Creates a template from the given file path.
lib/web/template.py:1090
Functionfrom_csv
(fp, field_names = None, **kwargs)
lib/prettytable.py:1233
Functionfrom_db_cursor
(cursor, **kwargs)
lib/prettytable.py:1250
Functionfrom_html_one
Generates a PrettyTables from a string of HTML code which contains only a single <table>
lib/prettytable.py:1338
Methodgaerun
Starts the program in a way that will work with Google app engine, no matter which version you are using (2.5 / 2.7)
lib/web/application.py:340
Methodget_default_id
(self)
lib/web/form.py:364
Methodget_html_string
Return string representation of HTML formatted version of table in current state. Arguments: start - index of fi
lib/prettytable.py:1076
Functionget_pointer
()
core/config.py:49
Methodget_pooled_db
()
lib/web/db.py:585
Methodget_source_line
(filename, lineno)
lib/web/template.py:940
Methodget_text
Returns content of e or the current document as plain text.
lib/web/browser.py:115
Methodget_tokens
tokenize text using python tokenizer. Python tokenizer ignores spaces, but they might be important in some cases. This func
lib/web/template.py:310
Methodget_type
(self)
lib/web/form.py:223
Methodget_type
(self)
lib/web/form.py:234
Methodget_type
(self)
lib/web/form.py:416
Methodget_value
(self)
lib/web/form.py:380
Functiongroup
Returns an iterator over a series of lists of length size from iterable. >>> list(group([1,2,3,4], 2)) [[1, 2], [3, 4]]
lib/web/utils.py:539
Methodhandle
(self)
lib/web/application.py:576
Methodhandle_class
(cls)
lib/web/application.py:415
Methodhandle_data
(self, data)
lib/prettytable.py:1296
Methodhandle_endtag
(self, tag)
lib/prettytable.py:1279
Methodhandle_starttag
(self, tag, attrs)
lib/prettytable.py:1274
Functionhttpdate
Formats a datetime object for use in HTTP headers. >>> import datetime >>> httpdate(datetime.datetime(1970, 1, 1, 1, 1,
lib/web/net.py:193
Methodhttps_open
(self, req)
lib/web/browser.py:236
Methodidentifier
()
lib/web/template.py:270
Functioninput
Returns a `storage` object with the GET and POST arguments. See `storify` for how `requireds` and `defaults` work.
lib/web/webapi.py:408
Functioninternal
(self, arg)
lib/web/application.py:669
Methodis_hidden
(self)
lib/web/form.py:413
Functioniterview
Takes an iterable `x` and returns an iterator over it which prints its progress to stderr as it iterates through.
lib/web/utils.py:589
Methoditerwrapper
()
lib/web/db.py:690
Methodkeys
(self)
lib/web/template.py:1332
Methodkill
Kill the session, make it no longer available
lib/web/session.py:176
Methodleast
Returns the keys with mininum count.
lib/web/utils.py:199
Methodlist
(self, args = None)
core/cmd.py:38
Methodlistify
(x)
lib/web/utils.py:1451
Methodload
(self, args=None)
core/cmd.py:91
Methodlog_message
(*a)
lib/web/httpserver.py:183
Functionmain
()
core/webserver.py:256
Methodmain_module_name
()
lib/web/application.py:66
Methodmakefile
(self, *a)
lib/web/httpserver.py:252
Functionmodified
Checks to see if the page has been modified since the version in the requester's cache. When you publish pages, you can include
lib/web/http.py:52
Methodmodname
find name of the module name from fvars.
lib/web/application.py:71
Methodmost
Returns the keys with maximum count.
lib/web/utils.py:194
Methodmultiple_insert
Inserts multiple rows into `tablename`. The `values` must be a list of dictioanries, one for each row to be inserted, each with the
lib/web/db.py:835
Functionnthstr
Formats an ordinal. Doesn't handle negative numbers. >>> nthstr(1) '1st' >>> nthstr(0) '0th' >>>
lib/web/utils.py:1073
Functionnumify
Removes all non-digit characters from `string`. >>> numify('800-555-1212') '8005551212' >>> numify('800.555.1212')
lib/web/utils.py:982
Methodparen_expr
()
lib/web/template.py:295
Functionparsehttpdate
Parses an HTTP date into a datetime object. >>> parsehttpdate('Thu, 01 Jan 1970 01:01:01 GMT') datetime.datetime(1970, 1
lib/web/net.py:204
Methodpayload
(self, args = None)
core/cmd.py:83
Methodpeep
Peeps into an iterator by doing an iteration and returns an equivalent iterator.
lib/web/application.py:255
Methodpercent
Returns what percentage a certain key is of all entries. >>> c = counter() >>> c.add('x') >>> c.add('x')
lib/web/utils.py:204
Methodpopitem
(self)
lib/web/utils.py:1323
Functionprefixurl
Sorry, this function is really difficult to explain. Maybe some other time.
lib/web/http.py:22
Functionprettify
(x)
lib/web/debugerror.py:86
Methodprocess
(processors)
lib/web/application.py:236
Functionprocessor
(handler)
lib/web/application.py:603
← previousnext →601–700 of 768, ranked by callers