Little fixes

This commit is contained in:
Antonio de la Rosa 2016-07-31 23:23:42 +02:00
parent e013657963
commit b41461cc2c
3 changed files with 26 additions and 9 deletions

View file

@ -27,7 +27,7 @@ In Debian and Ubuntu you can install MariaDB using the next command: `apt-get in
In Fedora and other Red Hat derived distros you can use `yum install mariadb-server`. In Fedora and other Red Hat derived distros you can use `yum install mariadb-server`.
In RedHat/Centos 6 probably you need install adittional repositories for get latest versions of mariadb, but with MySQL 5.5, Pastafari should work fine. In RedHat/Centos 6 probably you need install adittional repositories for get latest versions of mariadb, but with MySQL 5.5, Pastafari should work fine.
When you will install the mysql server, you should create a new user amd database for Paramecio. When you will install the mysql server, you should create a new user and database for Paramecio.
### Pip ### Pip
@ -53,4 +53,7 @@ Pastafari need a web framework called Paramecio. You can install this framework
This command will install in your server paramecio framework with its dependencies. This command will install in your server paramecio framework with its dependencies.
When Paramecio finish the installing, a command called `paramecio` can be used for install Pastafari. When Paramecio finish the installing, you can create your first paramecio site with `paramecio` command.

View file

@ -37,6 +37,8 @@ class WebModel:
webmodel=True webmodel=True
global_cached=False
#sqlclass=SqlClass() #sqlclass=SqlClass()
#make_connection=sqlclass.connect_to_db #make_connection=sqlclass.connect_to_db
@ -50,6 +52,8 @@ class WebModel:
def __init__(self, sqlclass, name_field_id="id"): def __init__(self, sqlclass, name_field_id="id"):
cached=self.global_cached
#The name of the table #The name of the table
self.name=type(self).__name__.lower() self.name=type(self).__name__.lower()
@ -987,7 +991,7 @@ class PhangoField:
self.name_form=BaseForm self.name_form=BaseForm
# Property that define if make escape in show_formatted # Property that define if make escape in show_formatted. This property control the html transformation of <>" characters in html entities.If false, convert.
self.escape=False self.escape=False
@ -1024,6 +1028,7 @@ class PhangoField:
value=str(value) value=str(value)
if self.escape==False:
value=value.replace('<', '&lt;') value=value.replace('<', '&lt;')
value=value.replace('>', '&gt;') value=value.replace('>', '&gt;')

View file

@ -93,11 +93,20 @@ session_opts = {
} }
cache_opts = {
cache_session_opts = {
} }
"""
cache_opts = {
'cache.type': 'file',
'cache.data_dir': '/tmp/cache/data',
'cache.lock_dir': '/tmp/cache/lock'
}
"""
#Can be absolute or relative #Can be absolute or relative
media_url='/' media_url='/'