Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.toolbox
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Lu Xu
slapos.toolbox
Commits
74e46c1c
Commit
74e46c1c
authored
Nov 08, 2013
by
Cédric de Saint Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pubsub: increase CSV max field.
feed can be *very* large.
parent
4eb93526
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
slapos/pubsub/__init__.py
slapos/pubsub/__init__.py
+9
-5
No files found.
slapos/pubsub/__init__.py
View file @
74e46c1c
from
datetime
import
datetim
e
import
argpars
e
import
csv
import
csv
import
feedparser
import
feedparser
import
httplib
# To avoid magic numbers
import
io
import
io
import
socket
import
json
import
json
import
time
import
math
import
math
import
httplib
# To avoid magic numbers
import
argparse
import
os
import
os
import
socket
import
sys
import
time
from
datetime
import
datetime
from
hashlib
import
sha512
from
hashlib
import
sha512
from
atomize
import
Entry
from
atomize
import
Entry
...
@@ -19,6 +20,9 @@ from flask import abort
...
@@ -19,6 +20,9 @@ from flask import abort
from
flask
import
request
from
flask
import
request
app
=
Flask
(
__name__
)
app
=
Flask
(
__name__
)
# csv entries can be very large, increase limit.
csv
.
field_size_limit
(
sys
.
maxsize
)
@
app
.
route
(
'/get/<feed>'
)
@
app
.
route
(
'/get/<feed>'
)
def
get_feed
(
feed
):
def
get_feed
(
feed
):
global
app
global
app
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment