fedora-hardware/hardware README.txt, NONE, 1.1 dev.cfg, NONE, 1.1 model_designer.tmp, NONE, 1.1 sample-prod.cfg, NONE, 1.1 setup.py, NONE, 1.1 setup.pyc, NONE, 1.1 start-hardware.py, NONE, 1.1
Michael Patrick McGrath (mmcgrath)
fedora-extras-commits at redhat.com
Thu Jan 11 20:02:52 UTC 2007
- Previous message: rpms/kmymoney2/devel kmymoney2.spec,1.18,1.19
- Next message: fedora-hardware/hardware/hardware __init__.py, NONE, 1.1 controllers.py, NONE, 1.1 json.py, NONE, 1.1 model.py, NONE, 1.1 release.py, NONE, 1.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: mmcgrath
Update of /cvs/fedora/fedora-hardware/hardware
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv3389/hardware
Added Files:
README.txt dev.cfg model_designer.tmp sample-prod.cfg setup.py
setup.pyc start-hardware.py
Log Message:
added a ton of crap
--- NEW FILE README.txt ---
hardware
This is a TurboGears (http://www.turbogears.org) project. It can be
started by running the start-hardware.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
# hardware/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
# Some server parameters that you may want to tweak
# server.socket_port=8080
# Enable the debug output at the end on pages.
# log_debug_info_filter.on = False
server.environment="development"
autoreload.package="hardware"
# 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
# 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 hardware/config/log.cfg
[logging]
[[loggers]]
[[[hardware]]]
level='DEBUG'
qualname='hardware'
handlers=['debug_out']
[[[allinfo]]]
level='INFO'
handlers=['debug_out']
[[[access]]]
level='INFO'
qualname='turbogears.access'
handlers=['access_out']
propagate=0
--- NEW FILE model_designer.tmp ---
{"name":"hardware", "models":{"Device":{"name":"Device", "parent_class":"SQLObject", "table_name":"", "id_name":"", "columns":{"DateAdded":{"type":"DateTimeCol", "column_name":"DateAdded", "column_db_name":"", "column_title":"Date Added", "column_default":"", "column_length":"", "column_size":"", "column_precision":"", "column_db_encoding":"", "column_varchar":"", "column_unique":"", "column_not_none":"", "column_alternate_id":""}, "id":{"type":"RelatedJoin", "column_name":"id", "join_type":"RelatedJoin", "other_class_name":"HostLinks", "other_method_name":"DeviceID"}, "device":{"type":"StringCol", "column_name":"device", "column_db_name":"", "column_title":"Device", "column_default":"", "column_length":"", "column_size":"", "column_precision":"", "column_db_encoding":"", "column_varchar":"", "column_unique":"", "column_not_none":"", "column_alternate_id":"True"}}, "relations":{}, "idx":0, "ordered_columns":["device", "DateAdded", "id"]}, "Host":{"name":"Host", "parent_class!
":"SQLObject", "table_name":"", "id_name":"", "columns":{"OS":{"type":"StringCol", "column_name":"OS", "column_db_name":"", "column_title":"", "column_default":"", "column_length":"", "column_size":"", "column_precision":"", "column_db_encoding":"", "column_varchar":"", "column_unique":"", "column_not_none":"", "column_alternate_id":""}, "platform":{"type":"StringCol", "column_name":"platform", "column_db_name":"", "column_title":"", "column_default":"", "column_length":"", "column_size":"", "column_precision":"", "column_db_encoding":"", "column_varchar":"", "column_unique":"", "column_not_none":"", "column_alternate_id":""}, "bogomips":{"type":"StringCol", "column_name":"bogomips", "column_db_name":"", "column_title":"", "column_default":"", "column_length":"", "column_size":"", "column_precision":"", "column_db_encoding":"", "column_varchar":"", "column_unique":"", "column_not_none":"", "column_alternate_id":""}, "systemMemory":{"type":"IntCol", "column_name":"systemMemo!
ry", "column_db_name":"", "column_title":"System Memory", "col!
umn_de
lt":"", "column_length":"", "column_size":"", "column_precision":"", "column_db_encoding":"", "column_varchar":"", "column_unique":"", "column_not_none":"", "column_alternate_id":""}, "CPUVendor":{"type":"StringCol", "column_name":"CPUVendor", "column_db_name":"", "column_title":"CPU Vendor", "column_default":"", "column_length":"", "column_size":"", "column_precision":"", "column_db_encoding":"", "column_varchar":"", "column_unique":"", "column_not_none":"", "column_alternate_id":""}, "numCPUs":{"type":"IntCol", "column_name":"numCPUs", "column_db_name":"", "column_title":"Number of CPUs", "column_default":"", "column_length":"", "column_size":"", "column_precision":"", "column_db_encoding":"", "column_varchar":"", "column_unique":"", "column_not_none":"", "column_alternate_id":""}, "CPUSpeed":{"type":"StringCol", "column_name":"CPUSpeed", "column_db_name":"", "column_title":"CPU Speed", "column_default":"", "column_length":"", "column_size":"", "column_precision":"", "colu!
mn_db_encoding":"", "column_varchar":"", "column_unique":"", "column_not_none":"", "column_alternate_id":""}, "language":{"type":"StringCol", "column_name":"language", "column_db_name":"", "column_title":"Language", "column_default":"", "column_length":"", "column_size":"", "column_precision":"", "column_db_encoding":"", "column_varchar":"", "column_unique":"", "column_not_none":"", "column_alternate_id":""}, "defaultRunlevel":{"type":"IntCol", "column_name":"defaultRunlevel", "column_db_name":"", "column_title":"Default Runlevel", "column_default":"", "column_length":"", "column_size":"", "column_precision":"", "column_db_encoding":"", "column_varchar":"", "column_unique":"", "column_not_none":"", "column_alternate_id":""}, "UUID":{"type":"StringCol", "column_name":"UUID", "column_db_name":"", "column_title":"UUID", "column_default":"", "column_length":"", "column_size":"", "column_precision":"", "column_db_encoding":"", "column_varchar":"", "column_unique":"True", "column!
_not_none":"True", "column_alternate_id":"True"}, "lsbRelease"!
:{"typ
"StringCol", "column_name":"lsbRelease", "column_db_name":"", "column_title":"", "column_default":"", "column_length":"", "column_size":"", "column_precision":"", "column_db_encoding":"", "column_varchar":"", "column_unique":"", "column_not_none":"", "column_alternate_id":""}}, "relations":{}, "ordered_columns":["UUID", "lsbRelease", "OS", "platform", "bogomips", "systemMemory", "CPUVendor", "numCPUs", "CPUSpeed", "language", "defaultRunlevel"], "idx":2}, "HostLinks":{"name":"HostLinks", "parent_class":"SQLObject", "table_name":"", "id_name":"", "columns":{"HostUUID":{"type":"ForeignKey", "column_name":"HostUUID", "column_db_name":"", "column_title":"", "column_default":"", "column_length":"", "column_size":"", "column_precision":"", "column_db_encoding":"", "column_varchar":"", "column_unique":"", "column_not_none":"", "column_alternate_id":"", "other_class_name":"Host", "other_method_name":"UUID", "original_other_class_name":"", "original_other_method_name":"", "join_type"!
:"RelatedJoin"}, "DeviceID":{"type":"RelatedJoin", "column_name":"DeviceID", "column_db_name":"", "column_title":"", "column_default":"", "column_length":"", "column_size":"", "column_precision":"", "column_db_encoding":"", "column_varchar":"", "column_unique":"", "column_not_none":"", "column_alternate_id":"", "other_class_name":"Device", "other_method_name":"id", "original_other_class_name":"", "original_other_method_name":"", "join_type":"RelatedJoin"}}, "relations":{}, "idx":1}}, "ordered_models":["Device", "HostLinks", "Host"]}
--- 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
# hardware/config/app.cfg
# 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'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 hardware/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]]
[[[hardware]]]
level='ERROR'
qualname='hardware'
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("hardware", "release.py"))
setup(
name="hardware",
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.0b2",
],
scripts = ["start-hardware.py"],
zip_safe=False,
packages=find_packages(),
package_data = find_package_data(where='hardware',
package='hardware'),
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ò
iEc
d
--- NEW FILE start-hardware.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="hardware.config")
elif exists(join(dirname(__file__), "setup.py")):
update_config(configfile="dev.cfg",modulename="hardware.config")
else:
update_config(configfile="prod.cfg",modulename="hardware.config")
from hardware.controllers import Root
start_server(Root())
- Previous message: rpms/kmymoney2/devel kmymoney2.spec,1.18,1.19
- Next message: fedora-hardware/hardware/hardware __init__.py, NONE, 1.1 controllers.py, NONE, 1.1 json.py, NONE, 1.1 model.py, NONE, 1.1 release.py, NONE, 1.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the scm-commits
mailing list