accounts2/fas README.txt, NONE, 1.1 dev.cfg, NONE, 1.1 devdata.sqlite, NONE, 1.1 devdata.sqlite.bak, NONE, 1.1 fasdb.sqlite, NONE, 1.1 sample-prod.cfg, NONE, 1.1 setup.py, NONE, 1.1 setup.pyc, NONE, 1.1 start-fas.py, NONE, 1.1 test.cfg, NONE, 1.1
Michael Patrick McGrath (mmcgrath)
fedora-extras-commits at redhat.com
Mon Mar 26 15:11:13 UTC 2007
- Previous message: accounts2/fas/fas.egg-info - New directory
- Next message: accounts2/fas/fas/static/css/static/images favicon.ico, NONE, 1.1 header-icon_account.png, NONE, 1.1 header_inner.png, NONE, 1.1 hr.png, NONE, 1.1 icon_tool-item.png, NONE, 1.1 icon_warning.png, NONE, 1.1 info.png, NONE, 1.1 ok.png, NONE, 1.1 status_approved.png, NONE, 1.1 status_incomplete.png, NONE, 1.1 status_rejected.png, NONE, 1.1 tg_under_the_hood.png, NONE, 1.1 under_the_hood_blue.png, NONE, 1.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: mmcgrath
Update of /cvs/fedora/accounts2/fas
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv26831/fas
Added Files:
README.txt dev.cfg devdata.sqlite devdata.sqlite.bak
fasdb.sqlite sample-prod.cfg setup.py setup.pyc start-fas.py
test.cfg
Log Message:
added tg fas2 code
--- NEW FILE README.txt ---
fas
This is a TurboGears (http://www.turbogears.org) project. It can be
started by running the start-fas.py script.
--- NEW FILE dev.cfg ---
[global]
# This is where all of your settings go for your development environment
# Settings that are the same for both development and production
# (such as template engine, encodings, etc.) all go in
# fas/config/app.cfg
# DATABASE
# pick the form for your database
# sqlobject.dburi="postgres://username@hostname/databasename"
# sqlobject.dburi="mysql://username:password@hostname:port/databasename"
# sqlobject.dburi="sqlite:///file_name_and_path"
# If you have sqlite, here's a simple default to get you started
# in development
sqlobject.dburi="sqlite://%(current_dir_uri)s/devdata.sqlite?debug=True"
# if you are using a database or table type without transactions
# (MySQL default, for example), you should turn off transactions
# by prepending notrans_ on the uri
# sqlobject.dburi="notrans_mysql://username:password@hostname:port/databasename"
# for Windows users, sqlite URIs look like:
# sqlobject.dburi="sqlite:///drive_letter:/path/to/file"
# SERVER
# Some server parameters that you may want to tweak
server.socket_port=8081
# Enable the debug output at the end on pages.
# log_debug_info_filter.on = False
server.environment="development"
autoreload.package="fas"
# session_filter.on = True
# Set to True if you'd like to abort execution if a controller gets an
# unexpected parameter. False by default
tg.strict_parameters = True
server.webpath='/fas'
base_url_filter.on=True
base_url_filter.use_x_forwarded_host=True
# LOGGING
# Logging configuration generally follows the style of the standard
# Python logging module configuration. Note that when specifying
# log format messages, you need to use *() for formatting variables.
# Deployment independent log configuration is in fas/config/log.cfg
[logging]
[[loggers]]
[[[fas]]]
level='DEBUG'
qualname='fas'
handlers=['debug_out']
[[[allinfo]]]
level='INFO'
handlers=['debug_out']
[[[access]]]
level='INFO'
qualname='turbogears.access'
handlers=['access_out']
propagate=0
--- NEW FILE devdata.sqlite ---
SQLite format 3
¶ç
id INTEGER PRIMARY KEY,
visit_key VARCHAR(40) NOT NULL UNIQUE,
created TIMESTAMP,
expiry TIMESTAMP
))=
id INTEGER PRIMARY KEY,
visit_key VARCHAR(40) NOT NULL UNIQUE,
created TIMESTAMP,
expiry TIMESTAMP
)/C
id INTEGER PRIMARY KEY,
child_name VARCHAR(255),
user_name VARCHAR(16) NOT NULL UNIQUE,
email_address VARCHAR(255) NOT NULL UNIQUE,
display_name VARCHAR(255),
password VARCHAR(40),
created TIMESTAMP
)
id INTEGER PRIMARY KEY,
child_name VARCHAR(255),
group_name VARCHAR(16) NOT NULL UNIQUE,
display_name VARCHAR(255),
created TIMESTAMP
)/ C
q
''!tabletg_user_grouptg_user_group
CREATE TABLE tg_user_group (
group_id INT NOT NULL,
user_id INT NOT NULL
) 339tabletg_group_permissiontg_group_permissionCREATE TABLE tg_group_permission (
group_id INT NOT NULL,
permission_id INT NOT NULL
)
visit_key VARCHAR(40) NOT NULL,
user_id TEXT,
PRIMARY KEY (visit_key)
);O)
id INTEGER PRIMARY KEY,
child_name VARCHAR(255),
permission_name VARCHAR(16) NOT NULL UNIQUE,
description VARCHAR(255)
)9
M'
id INTEGER PRIMARY KEY,
visit_key VARCHAR(40) NOT NULL UNIQUE,
user_id INT
)AU/
--- NEW FILE devdata.sqlite.bak ---
SQLite format 3
id INTEGER PRIMARY KEY,
visit_key VARCHAR(40) NOT NULL UNIQUE,
created TIMESTAMP,
expiry TIMESTAMP
))=
id INTEGER PRIMARY KEY,
child_name VARCHAR(255),
user_name VARCHAR(16) NOT NULL UNIQUE,
email_address VARCHAR(255) NOT NULL UNIQUE,
display_name VARCHAR(255),
password VARCHAR(40),
created TIMESTAMP
)-A
id INTEGER PRIMARY KEY,
child_name VARCHAR(255),
group_name VARCHAR(16) NOT NULL UNIQUE,
display_name VARCHAR(255),
created TIMESTAMP
)/C
group_id INT NOT NULL,
user_id INT NOT NULL
) 339tabletg_group_permissiontg_group_permissionCREATE TABLE tg_group_permission (
group_id INT NOT NULL,
permission_id INT NOT NULL
)L
''Wtabletg_permissiontg_permission
CREATE TABLE tg_permission (
id INTEGER PRIMARY KEY,
child_name VARCHAR(255),
permission_name VARCHAR(16) NOT NULL UNIQUE,
description VARCHAR(255)
)9M'
id INTEGER PRIMARY KEY,
visit_key VARCHAR(40) NOT NULL UNIQUE,
user_id INT
)A
U/
--- NEW FILE fasdb.sqlite ---
SQLite format 3
¶ç
id INTEGER PRIMARY KEY,
visit_key VARCHAR(40) NOT NULL UNIQUE,
created TIMESTAMP,
expiry TIMESTAMP
))=
id INTEGER PRIMARY KEY,
visit_key VARCHAR(40) NOT NULL UNIQUE,
created TIMESTAMP,
expiry TIMESTAMP
)/C
id INTEGER PRIMARY KEY,
child_name VARCHAR(255),
user_name VARCHAR(16) NOT NULL UNIQUE,
email_address VARCHAR(255) NOT NULL UNIQUE,
display_name VARCHAR(255),
password VARCHAR(40),
created TIMESTAMP
)
id INTEGER PRIMARY KEY,
child_name VARCHAR(255),
group_name VARCHAR(16) NOT NULL UNIQUE,
display_name VARCHAR(255),
created TIMESTAMP
)/ C
q
''!tabletg_user_grouptg_user_group
CREATE TABLE tg_user_group (
group_id INT NOT NULL,
user_id INT NOT NULL
) 339tabletg_group_permissiontg_group_permissionCREATE TABLE tg_group_permission (
group_id INT NOT NULL,
permission_id INT NOT NULL
)
visit_key VARCHAR(40) NOT NULL,
user_id TEXT,
PRIMARY KEY (visit_key)
);O)
id INTEGER PRIMARY KEY,
child_name VARCHAR(255),
permission_name VARCHAR(16) NOT NULL UNIQUE,
description VARCHAR(255)
)9
M'
id INTEGER PRIMARY KEY,
visit_key VARCHAR(40) NOT NULL UNIQUE,
user_id INT
)AU/
--- NEW FILE sample-prod.cfg ---
[global]
# This is where all of your settings go for your production environment.
# You'll copy this file over to your production server and provide it
# as a command-line option to your start script.
# Settings that are the same for both development and production
# (such as template engine, encodings, etc.) all go in
# fas/config/app.cfg
# DATABASE
# pick the form for your database
# sqlobject.dburi="postgres://username@hostname/databasename"
# sqlobject.dburi="mysql://username:password@hostname:port/databasename"
# sqlobject.dburi="sqlite:///file_name_and_path"
# If you have sqlite, here's a simple default to get you started
# in development
sqlobject.dburi="sqlite://%(current_dir_uri)s/devdata.sqlite"
# if you are using a database or table type without transactions
# (MySQL default, for example), you should turn off transactions
# by prepending notrans_ on the uri
# sqlobject.dburi="notrans_mysql://username:password@hostname:port/databasename"
# for Windows users, sqlite URIs look like:
# sqlobject.dburi="sqlite:///drive_letter:/path/to/file"
# SERVER
server.environment="production"
# Sets the number of threads the server uses
# server.thread_pool = 1
# if this is part of a larger site, you can set the path
# to the TurboGears instance here
# server.webpath=""
# session_filter.on = True
# Set to True if you are deploying your App behind a proxy
# e.g. Apache using mod_proxy
# base_url_filter.on = False
# Set to True if your proxy adds the x_forwarded_host header
# base_url_filter.use_x_forwarded_host = True
# If your proxy does not add the x_forwarded_host header, set
# the following to the *public* host url.
# (Note: This will be overridden by the use_x_forwarded_host option
# if it is set to True and the proxy adds the header correctly.
# base_url_filter.base_url = "http://www.example.com"
# Set to True if you'd like to abort execution if a controller gets an
# unexpected parameter. False by default
# tg.strict_parameters = False
# LOGGING
# Logging configuration generally follows the style of the standard
# Python logging module configuration. Note that when specifying
# log format messages, you need to use *() for formatting variables.
# Deployment independent log configuration is in fas/config/log.cfg
[logging]
[[handlers]]
[[[access_out]]]
# set the filename as the first argument below
args="('server.log',)"
class='FileHandler'
level='INFO'
formatter='message_only'
[[loggers]]
[[[fas]]]
level='ERROR'
qualname='fas'
handlers=['error_out']
[[[access]]]
level='INFO'
qualname='turbogears.access'
handlers=['access_out']
propagate=0
--- NEW FILE setup.py ---
from setuptools import setup, find_packages
from turbogears.finddata import find_package_data
import os
execfile(os.path.join("fas", "release.py"))
setup(
name="fas",
version=version,
# uncomment the following lines if you fill them out in release.py
#description=description,
#author=author,
#author_email=email,
#url=url,
#download_url=download_url,
#license=license,
install_requires = [
"TurboGears >= 1.0.1",
],
scripts = ["start-fas.py"],
zip_safe=False,
packages=find_packages(),
package_data = find_package_data(where='fas',
package='fas'),
keywords = [
# Use keywords if you'll be adding your package to the
# Python Cheeseshop
# if this has widgets, uncomment the next line
# 'turbogears.widgets',
# if this has a tg-admin command, uncomment the next line
# 'turbogears.command',
# if this has identity providers, uncomment the next line
# 'turbogears.identity.provider',
# If this is a template plugin, uncomment the next line
# 'python.templating.engines',
# If this is a full application, uncomment the next line
# 'turbogears.app',
],
classifiers = [
'Development Status :: 3 - Alpha',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules',
'Framework :: TurboGears',
# if this is an application that you'll distribute through
# the Cheeseshop, uncomment the next line
# 'Framework :: TurboGears :: Applications',
# if this is a package that includes widgets that you'll distribute
# through the Cheeseshop, uncomment the next line
# 'Framework :: TurboGears :: Widgets',
],
test_suite = 'nose.collector',
)
--- NEW FILE setup.pyc ---
mò
PkàEc
d
--- NEW FILE start-fas.py ---
#!/usr/bin/python
import pkg_resources
pkg_resources.require("TurboGears")
from turbogears import update_config, start_server
import cherrypy
cherrypy.lowercase_api = True
from os.path import *
import sys
# first look on the command line for a desired config file,
# if it's not on the command line, then
# look for setup.py in this directory. If it's not there, this script is
# probably installed
if len(sys.argv) > 1:
update_config(configfile=sys.argv[1],
modulename="fas.config")
elif exists(join(dirname(__file__), "setup.py")):
update_config(configfile="dev.cfg",modulename="fas.config")
else:
update_config(configfile="prod.cfg",modulename="fas.config")
from fas.controllers import Root
start_server(Root())
--- NEW FILE test.cfg ---
# You can place test-specific configuration options here (like test db uri, etc)
#sqlobject.dburi = "sqlite:///:memory:"
- Previous message: accounts2/fas/fas.egg-info - New directory
- Next message: accounts2/fas/fas/static/css/static/images favicon.ico, NONE, 1.1 header-icon_account.png, NONE, 1.1 header_inner.png, NONE, 1.1 hr.png, NONE, 1.1 icon_tool-item.png, NONE, 1.1 icon_warning.png, NONE, 1.1 info.png, NONE, 1.1 ok.png, NONE, 1.1 status_approved.png, NONE, 1.1 status_incomplete.png, NONE, 1.1 status_rejected.png, NONE, 1.1 tg_under_the_hood.png, NONE, 1.1 under_the_hood_blue.png, NONE, 1.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the scm-commits
mailing list