← Back to team overview

oerppy-hackers team mailing list archive

[Branch ~oerppy-hackers/oerppy/trunk] Rev 21: * Renamed scripts subpackage to scripting.

 

------------------------------------------------------------
revno: 21
committer: duncan@xxxxxxxxxx
branch nick: trunk
timestamp: Wed 2011-06-01 10:58:57 -0600
message:
  * Renamed scripts subpackage to scripting.
  * Renamed export script, fixed its imports, and added a TODO for
    getting/parsing command line options.
  * Added a placeholder for the scripting base class.
  * Fixed typo in service.Service.
added:
  oerppy/scripting/base.py
renamed:
  bin/export_month => bin/export_month_timesheets
  oerppy/scripts/ => oerppy/scripting/
modified:
  oerppy/scripting/__init__.py
  oerppy/scripting/export.py
  oerppy/service.py
  bin/export_month_timesheets


--
lp:oerppy
https://code.launchpad.net/~oerppy-hackers/oerppy/trunk

Your team oerppy Hackers is subscribed to branch lp:oerppy.
To unsubscribe from this branch go to https://code.launchpad.net/~oerppy-hackers/oerppy/trunk/+edit-subscription
=== renamed file 'bin/export_month' => 'bin/export_month_timesheets'
--- bin/export_month	2011-06-01 01:02:05 +0000
+++ bin/export_month_timesheets	2011-06-01 16:58:57 +0000
@@ -1,8 +1,10 @@
 #!/usr/bin/env python
-from pyopenerp.config import get_config_data
-from pyopenerp.scripts import export
+from oerppy.config import get_config_data
+from oerppy.scripting import export
 
 
 config_data = get_config_data()
-monthly_export = export.Monthly(config_data)
+# XXX get/parse options
+options = None
+monthly_export = export.Monthly(config_data, options)
 monthly_export.run()

=== renamed directory 'oerppy/scripts' => 'oerppy/scripting'
=== modified file 'oerppy/scripting/__init__.py'
--- oerppy/scripts/__init__.py	2011-06-01 01:02:05 +0000
+++ oerppy/scripting/__init__.py	2011-06-01 16:58:57 +0000
@@ -0,0 +1,1 @@
+from oerppy.scripting.base import Script

=== added file 'oerppy/scripting/base.py'
--- oerppy/scripting/base.py	1970-01-01 00:00:00 +0000
+++ oerppy/scripting/base.py	2011-06-01 16:58:57 +0000
@@ -0,0 +1,4 @@
+class Script(object):
+    """
+    The common code for all scripting classes.
+    """

=== modified file 'oerppy/scripting/export.py'
--- oerppy/scripts/export.py	2011-06-01 16:42:38 +0000
+++ oerppy/scripting/export.py	2011-06-01 16:58:57 +0000
@@ -1,7 +1,7 @@
-from oerppy import config, scripts, service
-
-
-class Monthly(scripts.Script):
+from oerppy import config, scripting, service
+
+
+class Monthly(scripting.Script):
     """
     """
     def __init__(self, config_data, options):

=== modified file 'oerppy/service.py'
--- oerppy/service.py	2011-06-01 08:04:02 +0000
+++ oerppy/service.py	2011-06-01 16:58:57 +0000
@@ -151,7 +151,7 @@
     """
     """
     def __init__(self, url, dbname, user, password):
-        self.endpoints = Endpoints(url)
+        self.endpoints = ServiceEndpoints(url)
         self.dbname = dbname
         self.credentials = Credentials(user, password)
         self.client = client.Client(