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
b713e589
Commit
b713e589
authored
Nov 08, 2013
by
Cédric de Saint Martin
Committed by
Nicolas Wavrant
Dec 03, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pubsub: increase CSV max field.
feed can be *very* large.
parent
45d124de
Changes
1
Hide 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 @
b713e589
from
datetime
import
datetim
e
import
argpars
e
import
csv
import
feedparser
import
httplib
# To avoid magic numbers
import
io
import
socket
import
json
import
time
import
math
import
httplib
# To avoid magic numbers
import
argparse
import
os
import
socket
import
sys
import
time
from
datetime
import
datetime
from
hashlib
import
sha512
from
atomize
import
Entry
...
...
@@ -19,6 +20,9 @@ from flask import abort
from
flask
import
request
app
=
Flask
(
__name__
)
# csv entries can be very large, increase limit.
csv
.
field_size_limit
(
sys
.
maxsize
)
@
app
.
route
(
'/get/<feed>'
)
def
get_feed
(
feed
):
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