used markdown instead of markdown2
This commit is contained in:
@@ -2,11 +2,19 @@ Metadata-Version: 2.1
|
|||||||
Name: caotek-mesavoirs
|
Name: caotek-mesavoirs
|
||||||
Version: 0.1
|
Version: 0.1
|
||||||
Summary: caotek_mesavoirs
|
Summary: caotek_mesavoirs
|
||||||
Home-page: UNKNOWN
|
Home-page:
|
||||||
Author:
|
Author:
|
||||||
Author-email:
|
Author-email:
|
||||||
License: UNKNOWN
|
License: UNKNOWN
|
||||||
Description: # README #
|
Keywords: web wsgi bfg pylons pyramid
|
||||||
|
Platform: UNKNOWN
|
||||||
|
Classifier: Programming Language :: Python
|
||||||
|
Classifier: Framework :: Pyramid
|
||||||
|
Classifier: Topic :: Internet :: WWW/HTTP
|
||||||
|
Classifier: Topic :: Internet :: WWW/HTTP :: WSGI :: Application
|
||||||
|
Provides-Extra: testing
|
||||||
|
|
||||||
|
# README #
|
||||||
|
|
||||||
Cette application permet de :
|
Cette application permet de :
|
||||||
|
|
||||||
@@ -65,10 +73,4 @@ Description: # README #
|
|||||||
'twoHundredDayAverageChangePercent': 0.04785564, 'marketCap': 34460147712, 'priceToBook': 1.4602123, 'sourceInterval': 15,
|
'twoHundredDayAverageChangePercent': 0.04785564, 'marketCap': 34460147712, 'priceToBook': 1.4602123, 'sourceInterval': 15,
|
||||||
'exchangeTimezoneName': 'America/New_York', 'exchangeTimezoneShortName': 'EDT', 'gmtOffSetMilliseconds': -14400000, 'triggerable': False,
|
'exchangeTimezoneName': 'America/New_York', 'exchangeTimezoneShortName': 'EDT', 'gmtOffSetMilliseconds': -14400000, 'triggerable': False,
|
||||||
'market': 'us_market', 'regularMarketPrice': 93.09, 'regularMarketTime': 1569614400, 'symbol': 'VNQ'}
|
'market': 'us_market', 'regularMarketPrice': 93.09, 'regularMarketTime': 1569614400, 'symbol': 'VNQ'}
|
||||||
Keywords: web wsgi bfg pylons pyramid
|
|
||||||
Platform: UNKNOWN
|
|
||||||
Classifier: Programming Language :: Python
|
|
||||||
Classifier: Framework :: Pyramid
|
|
||||||
Classifier: Topic :: Internet :: WWW/HTTP
|
|
||||||
Classifier: Topic :: Internet :: WWW/HTTP :: WSGI :: Application
|
|
||||||
Provides-Extra: testing
|
|
||||||
|
|||||||
@@ -1,4 +1,2 @@
|
|||||||
[paste.app_factory]
|
[paste.app_factory]
|
||||||
main = caotek_mesavoirs:main
|
main = caotek_mesavoirs:main
|
||||||
[console_scripts]
|
|
||||||
|
|
||||||
@@ -7,11 +7,11 @@ pyramid_retry
|
|||||||
pyramid_tm
|
pyramid_tm
|
||||||
SQLAlchemy
|
SQLAlchemy
|
||||||
transaction
|
transaction
|
||||||
zope.sqlalchemy
|
zope.sqlalchemy==1.1
|
||||||
waitress
|
waitress
|
||||||
mysqlclient
|
mysqlclient
|
||||||
yfinance
|
yfinance
|
||||||
markdown2
|
markdown
|
||||||
|
|
||||||
[testing]
|
[testing]
|
||||||
WebTest>=1.3.1
|
WebTest>=1.3.1
|
||||||
|
|||||||
@@ -161,10 +161,9 @@ def doc_view(request):
|
|||||||
# insèrer le path de static/img
|
# insèrer le path de static/img
|
||||||
texte = doc.texte.replace('static/img/', "%s/static/img/" % request.application_url)
|
texte = doc.texte.replace('static/img/', "%s/static/img/" % request.application_url)
|
||||||
|
|
||||||
# convertir mardown en HTML
|
# convertir markdown en HTML
|
||||||
from markdown2 import Markdown
|
import markdown
|
||||||
markdowner = Markdown()
|
texte = markdown.markdown(texte)
|
||||||
texte = markdowner.convert(texte)
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
'page_title': doc.intitule,
|
'page_title': doc.intitule,
|
||||||
|
|||||||
Reference in New Issue
Block a user