server/sources/datafeed.py
changeset 8694 d901c36bcfce
parent 8674 001c1592060a
child 8695 358d8bed9626
equal deleted inserted replaced
8693:a6ca96ec8693 8694:d901c36bcfce
    16 # You should have received a copy of the GNU Lesser General Public License along
    16 # You should have received a copy of the GNU Lesser General Public License along
    17 # with CubicWeb.  If not, see <http://www.gnu.org/licenses/>.
    17 # with CubicWeb.  If not, see <http://www.gnu.org/licenses/>.
    18 """datafeed sources: copy data from an external data stream into the system
    18 """datafeed sources: copy data from an external data stream into the system
    19 database
    19 database
    20 """
    20 """
    21 from __future__ import with_statement
       
    22 
    21 
    23 import urllib2
    22 import urllib2
    24 import StringIO
    23 import StringIO
    25 from os.path import exists
    24 from os.path import exists
    26 from datetime import datetime, timedelta
    25 from datetime import datetime, timedelta