Commit d68741f473088ad78a89374b343ba2e1763a1858
1 parent
0a4e0620
Exists in
master
Varias correções no LBBulk
git-svn-id: http://svn.brlight.net/svn/lightbase-neo/trunk/LBBulk@955 29b92fdf-8c97-4584-b987-84e8d3c556fa
Showing
3 changed files
with
4 additions
and
4 deletions
Show diff stats
development.ini
| ... | ... | @@ -9,10 +9,10 @@ pyramid.default_locale_name = en |
| 9 | 9 | pyramid.includes = |
| 10 | 10 | pyramid_tm |
| 11 | 11 | |
| 12 | -sqlalchemy.url = postgresql://rest:rest@localhost/lbbulk | |
| 12 | +sqlalchemy.url = postgresql://rest:rest@localhost/projeto1 | |
| 13 | 13 | |
| 14 | 14 | domain = http://api.brlight.org |
| 15 | -base_name = wmi | |
| 15 | +base_name = wmi_teste | |
| 16 | 16 | |
| 17 | 17 | [server:main] |
| 18 | 18 | use = egg:waitress#main | ... | ... |
lbbulk/model/BulkSources.py
| ... | ... | @@ -3,7 +3,7 @@ from pyramid_restler.model import SQLAlchemyORMContext |
| 3 | 3 | from lbbulk.model import Base, metadata, session |
| 4 | 4 | |
| 5 | 5 | |
| 6 | -bulk_source = Table('lb_bulk_source', metadata, | |
| 6 | +bulk_source = Table('lb_bulk_sources', metadata, | |
| 7 | 7 | Column('id_source', Integer, primary_key=True), |
| 8 | 8 | Column('nome_source', String, nullable=False) |
| 9 | 9 | ) | ... | ... |
lbbulk/view/restfulview.py
| ... | ... | @@ -59,7 +59,7 @@ class RegCustomView(RESTfulView): |
| 59 | 59 | def get_url_lightbase(self): #TODO |
| 60 | 60 | """ Returns url from config """ |
| 61 | 61 | domain = 'http://api.brlight.org' |
| 62 | - base_name = 'wmi' | |
| 62 | + base_name = 'wmi_teste' | |
| 63 | 63 | url = domain + '/' + base_name + '/reg' |
| 64 | 64 | return url |
| 65 | 65 | ... | ... |