Added generate admin to pramecio2
This commit is contained in:
parent
b845f78e3f
commit
97e89736b5
9 changed files with 735 additions and 8 deletions
|
|
@ -53,7 +53,28 @@ def make_external_url(path, query_args={}):
|
|||
get_query='?'+urllib.parse.urlencode(query_args)
|
||||
|
||||
return path+get_query
|
||||
|
||||
def add_get_parameters(url, **args):
|
||||
|
||||
"""
|
||||
This is a method for add args to existent url
|
||||
|
||||
Keyword arguments:
|
||||
url -- The url
|
||||
args -- a ser of get variables for add to url
|
||||
|
||||
"""
|
||||
|
||||
added_url='&'
|
||||
|
||||
if url.find('?')==-1:
|
||||
added_url='?'
|
||||
|
||||
get_query=urllib.parse.urlencode(args)
|
||||
|
||||
return url+added_url+get_query
|
||||
|
||||
|
||||
if config.yes_static==True:
|
||||
|
||||
def make_media_url(file_path, module):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue