root / lib / pyzinn / erp / Itransport.py @ a899390a2a8aca3b3b4617dd7cd96a19e64b489c

View | Annotate | Download (1.1 KB)

1 a899390a seb
 # Copyright (c) 2009 Lost Oasis, IELO <info@ielo.net>
2 a899390a seb
 #
3 a899390a seb
 # This file is part of ZINN.
4 a899390a seb
 #
5 a899390a seb
 # SINN is free software: you can redistribute it and/or modify it under
6 a899390a seb
 # the terms of the GNU General Public License as published by the Free
7 a899390a seb
 # Software Foundation, either version 3 of the License, or (at your
8 a899390a seb
 # option) any later version.
9 a899390a seb
 #
10 a899390a seb
 # SINN is distributed in the hope that it will be useful, but WITHOUT
11 a899390a seb
 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 a899390a seb
 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
13 a899390a seb
 # for more details.
14 a899390a seb
 #
15 a899390a seb
 # You should have received a copy of the GNU General Public License
16 a899390a seb
 # along with ZINN.  If not, see <http://www.gnu.org/licenses/>.
17 a899390a seb
18 a899390a seb
 """
19 a899390a seb
     Common interface that erp transport plugins must implement
20 a899390a seb
 """
21 a899390a seb
 class Itransport(object):
22 a899390a seb
     def __init__(self, dsn):
23 a899390a seb
         self.dsn = dsn
24 a899390a seb
25 a899390a seb
     def getProxy(self):
26 a899390a seb
         raise NotImplementedError
27 a899390a seb
28 a899390a seb
     def getContext(self):
29 a899390a seb
         raise NotImplementedError
30 a899390a seb
31 a899390a seb
     def getSession(self):
32 a899390a seb
         raise NotImplementedError
33 a899390a seb
34 a899390a seb
     def getUserId(self):
35 a899390a seb
         return self.user_id
36 a899390a seb
         raise NotImplementedError