Little fixes and cleaned code
This commit is contained in:
parent
99ef772206
commit
ab7d40c931
5 changed files with 60 additions and 57 deletions
|
|
@ -4,7 +4,6 @@ from paramecio.citoplasma.mtemplates import PTemplate, env_theme
|
|||
from paramecio.citoplasma.urls import make_url
|
||||
from paramecio.wsgiapp import app
|
||||
from settings import config
|
||||
from bottle import request
|
||||
|
||||
#t=ptemplate(__file__)
|
||||
env=env_theme(__file__)
|
||||
|
|
@ -20,10 +19,10 @@ def home():
|
|||
def page(id):
|
||||
return t.render_template('index.html', title="A simple example of a page", id=id, value=request.query.value)
|
||||
|
||||
@app.route('/welcome/test/<id:int>')
|
||||
def test(id):
|
||||
@app.route('/welcome/test/<int_id:int>')
|
||||
def test(int_id):
|
||||
|
||||
return make_url('welcome/test/5', {'ohmygod': 'This is gooood', 'shutup':'Shut up!!'})
|
||||
return make_url('welcome/test/'+int_id, {'ohmygod': 'This is gooood', 'shutup':'Shut up!!'})
|
||||
|
||||
if config.default_module=="welcome":
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue