Little fixes
This commit is contained in:
parent
e013657963
commit
b41461cc2c
3 changed files with 26 additions and 9 deletions
|
|
@ -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 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
|
||||
|
||||
|
|
@ -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.
|
||||
|
||||
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.
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -37,6 +37,8 @@ class WebModel:
|
|||
|
||||
webmodel=True
|
||||
|
||||
global_cached=False
|
||||
|
||||
#sqlclass=SqlClass()
|
||||
|
||||
#make_connection=sqlclass.connect_to_db
|
||||
|
|
@ -50,6 +52,8 @@ class WebModel:
|
|||
|
||||
def __init__(self, sqlclass, name_field_id="id"):
|
||||
|
||||
cached=self.global_cached
|
||||
|
||||
#The name of the table
|
||||
|
||||
self.name=type(self).__name__.lower()
|
||||
|
|
@ -987,7 +991,7 @@ class PhangoField:
|
|||
|
||||
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
|
||||
|
||||
|
|
@ -1024,6 +1028,7 @@ class PhangoField:
|
|||
|
||||
value=str(value)
|
||||
|
||||
if self.escape==False:
|
||||
value=value.replace('<', '<')
|
||||
|
||||
value=value.replace('>', '>')
|
||||
|
|
|
|||
|
|
@ -93,11 +93,20 @@ session_opts = {
|
|||
|
||||
}
|
||||
|
||||
|
||||
cache_session_opts = {
|
||||
cache_opts = {
|
||||
|
||||
}
|
||||
|
||||
"""
|
||||
cache_opts = {
|
||||
|
||||
'cache.type': 'file',
|
||||
'cache.data_dir': '/tmp/cache/data',
|
||||
'cache.lock_dir': '/tmp/cache/lock'
|
||||
|
||||
}
|
||||
"""
|
||||
|
||||
#Can be absolute or relative
|
||||
|
||||
media_url='/'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue