onedrive
eric 2019-04-20 14:34:09 -04:00
parent 3bc21605f3
commit ce088ebd90
3 changed files with 18 additions and 2 deletions

View File

@ -47,7 +47,7 @@ class MSDrive (CloudStorage.CloudStorage):
""" Upload a file to microsoft drive. """ """ Upload a file to microsoft drive. """
url = self.upload_endpoint.format( url = self.upload_endpoint.format(
'filename': self.fix_filename (session.ebook.get_filename ()) {'filename': self.fix_filename (session.ebook.get_filename ())}
) )
upload_session = session.post (url) upload_session = session.post (url)

View File

@ -1,5 +1,5 @@
# autocat3_original # autocat3_original
## Intruduction ## Introduction
**autocat3** is a python-based application used for supporting [Project Gutenberg](gutenberg.org). **autocat3** is a python-based application used for supporting [Project Gutenberg](gutenberg.org).
CherryPy is used as the web framwork which is easy to develop. CherryPy is used as the web framwork which is easy to develop.

16
templates/index.html Normal file
View File

@ -0,0 +1,16 @@
<html>
<table>
<tr>
<td class="noprint"><a href="/ebooks/downloadtest.pdf">Download Test</a></td>
<td class="noprint">
<a href="/ebooks/send/dropbox/test.pdf" title="Send to Dropbox." rel="nofollow"><span class="icon icon_dropbox">Dropbox</span></a>
</td>
<td class="noprint">
<a href="/ebooks/send/gdrive/test.pdf" title="Send to Google Drive." rel="nofollow"><span class="icon icon_gdrive">Google Drive</span></a>
</td>
<td class="noprint">
<a href="/ebooks/send/msdrive/test.pdf" title="Send to OneDrive." rel="nofollow"><span class="icon icon_msdrive">OneDrive</span></a>
</td>
</tr>
</table>
</html>