From aa7371eabfe61514415c7196f3e4d2371494e04d Mon Sep 17 00:00:00 2001 From: Tim Bentley Date: Fri, 9 Apr 2010 20:15:26 +0100 Subject: [PATCH] Fedora fixes --- documentation/pyqt-sql-py2exe.txt | 58 ------------------- .../openlp-remoteclient.py | 2 +- setup.py | 3 +- 3 files changed, 3 insertions(+), 60 deletions(-) delete mode 100644 documentation/pyqt-sql-py2exe.txt rename openlp/plugins/remotes/remoteclient.py => scripts/openlp-remoteclient.py (98%) diff --git a/documentation/pyqt-sql-py2exe.txt b/documentation/pyqt-sql-py2exe.txt deleted file mode 100644 index 33de23b6e..000000000 --- a/documentation/pyqt-sql-py2exe.txt +++ /dev/null @@ -1,58 +0,0 @@ -This content can be found at this URL: -http://netsuperbrain.com/Postmodern%20PostgreSQL%20Application%20Development.pdf - -Page 11-15: QtDesigner -Page 18-20: SQLAlchemy -Page 21-23: PyQt - widget -Page 24 : main -Page 28 : py2exe and release - - -============================== -This is the destilled content. -============================== - ----------------- -** sqlalchemy ** ----------------- -from sqlalchemy import create_engine, MetaData, Table -from sqlalchemy.orm import sessionmaker, mapper -engine = create_engine( 'postgres://postgres@localhost/customers' ) -metadata = MetaData( bind=engine, reflect=True) -Session = sessionmaker(bind=engine, autoflush=True, - transactional=True) - -class Customer(object): pass -mapper( Customer, Table('customers', metadata ) ) - -session = Session() -customer = Customer( businessName=“Jamb Safety”, - website=“www.jamb.com” ) -session.save( customer ) -for customer in Session.query(Customer).filter( - Customer.businessName.like(“Jamb%”)): - print customer.businessName -session.commit() - ------------------------- -** release and py2exe ** ------------------------- - -from distutils.core import setup -import py2exe -import glob -setup( - name="Customers", - author="Sankel Software", - author_email="david@sankelsoftware.com", - url="http://sankelsoftware.com", - license=“GPL", - version=“1.0.0", - windows=[ { "script":"main.py“,}], - options={"py2exe":{"includes":["sip”]}}, - data_files=[ - ("forms",glob.glob("forms/*.ui")), - ] ) - -release: -python setup.py py2exe --quiet --dist-dir=dist diff --git a/openlp/plugins/remotes/remoteclient.py b/scripts/openlp-remoteclient.py similarity index 98% rename from openlp/plugins/remotes/remoteclient.py rename to scripts/openlp-remoteclient.py index 5939b9f26..de3099920 100755 --- a/openlp/plugins/remotes/remoteclient.py +++ b/scripts/openlp-remoteclient.py @@ -38,7 +38,7 @@ def sendData(options, message): print u'Errow thrown ', sys.exc_info()[1] def format_message(options): - return u'%s:%s' % (options.event, options.message) + return u'%s:%s' % (u'alert', options.message) def main(): usage = "usage: %prog [options] arg1 arg2" diff --git a/setup.py b/setup.py index 436c5a987..4657b9b0f 100755 --- a/setup.py +++ b/setup.py @@ -68,7 +68,8 @@ OpenLP (previously openlp.org) is free church presentation software, or lyrics p url='http://openlp.org/', license='GNU General Public License', packages=find_packages(exclude=['ez_setup', 'examples', 'tests']), - scripts=['openlp.pyw', 'scripts/openlp-1to2-converter.py', 'scripts/bible-1to2-converter.py'], + scripts=['openlp.pyw', 'scripts/openlp-1to2-converter.py', + 'scripts/bible-1to2-converter.py','scripts/openlp-remoteclient.py'], include_package_data=True, zip_safe=False, install_requires=[