Little fixes and cleaned code

This commit is contained in:
Antonio de la Rosa 2018-08-13 15:48:55 +02:00
parent 99ef772206
commit ab7d40c931
5 changed files with 60 additions and 57 deletions

View file

@ -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":