| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
And empty setup.py (python3 -mbuild . doesn't work without it)
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
First off, the cookie list internal to getCookieString is now a dict instead of a list, this has slightly worse code for formatting, but rather better code for checking to see if we have logged in successfully.
Second, the login declined case no longer tries to format more variables that are provided, allowing us to go down the path correctly.
This gets wikipediafs working again for me against mediawiki 1.19.14+dfsg-1.
git-svn-id: http://svn.code.sf.net/p/wikipediafs/code/trunk@75 59acd704-e115-0410-a914-e735a229ed7c
|
|
|
|
|
|
|
|
|
|
| |
Add some debugging to the login process, under the debug log level.
Add support for the login Token exchange new in MediaWiki 1.15.3, this closes bug 2997265, and is based on a patch submitted by user vochi on SourceForge, adapted to also work on older versions of MediaWiki.
git-svn-id: http://svn.code.sf.net/p/wikipediafs/code/trunk@70 59acd704-e115-0410-a914-e735a229ed7c
|
|
|
|
| |
git-svn-id: http://svn.code.sf.net/p/wikipediafs/code/trunk@69 59acd704-e115-0410-a914-e735a229ed7c
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
bit.
config.py: Handle a new general configuration variable,
login-cache-time, which defaults to 7200 seconds (two hours).
metadir.py:
Report mtime for stat.
Refuse to create a file (With EACCES) if it is not a valid wiki filename.
(Potential data loss.)
Implement fsync and flush, which attempts to actually write the file, so we
can report write failures to an application. (Potential data loss)
Slightly improved debug logging for release and mkdir.
In rename, try to report failure to write to the wiki. (Potential data loss)
fs.py:
Cache the login time for class ArticleDir.
Add a force argument to set_cookie_string to force it to get a new one
regardless of if one already exists.
Add a 'get_art' function which handles all the logic for getting the article
object, including caching and login timeouts.
Make all the functions use the get_art function.
Add a function for getting the mtime, used by the above change to metadir.
Add some debug logging.
article.py:
Lots and lots and lots of debug logging, trying to get all the above sorted
out.
Add some code to Article set to return false on success and true on failure,
so that we can report back to the application when a write failed. (Potential
data loss.)
git-svn-id: http://svn.code.sf.net/p/wikipediafs/code/trunk@68 59acd704-e115-0410-a914-e735a229ed7c
|
|
|
|
| |
git-svn-id: http://svn.code.sf.net/p/wikipediafs/code/trunk@67 59acd704-e115-0410-a914-e735a229ed7c
|
|
|
|
|
|
|
|
| |
for LDAP/AD authentication. Patch by Matthieu Moy and Hannes Hörl.
Fixes #1745542.
git-svn-id: http://svn.code.sf.net/p/wikipediafs/code/trunk@64 59acd704-e115-0410-a914-e735a229ed7c
|
|
|
|
| |
git-svn-id: http://svn.code.sf.net/p/wikipediafs/code/trunk@61 59acd704-e115-0410-a914-e735a229ed7c
|
|
|
|
| |
git-svn-id: http://svn.code.sf.net/p/wikipediafs/code/trunk@59 59acd704-e115-0410-a914-e735a229ed7c
|
|
|
|
|
|
|
| |
characters like &.
git-svn-id: http://svn.code.sf.net/p/wikipediafs/code/trunk@56 59acd704-e115-0410-a914-e735a229ed7c
|
|
|
|
| |
git-svn-id: http://svn.code.sf.net/p/wikipediafs/code/trunk@51 59acd704-e115-0410-a914-e735a229ed7c
|
|
|
|
|
|
|
| |
with underscores.
git-svn-id: http://svn.code.sf.net/p/wikipediafs/code/trunk@50 59acd704-e115-0410-a914-e735a229ed7c
|
|
|
|
| |
git-svn-id: http://svn.code.sf.net/p/wikipediafs/code/trunk@49 59acd704-e115-0410-a914-e735a229ed7c
|
|
|
|
| |
git-svn-id: http://svn.code.sf.net/p/wikipediafs/code/trunk@48 59acd704-e115-0410-a914-e735a229ed7c
|
|
|
|
| |
git-svn-id: http://svn.code.sf.net/p/wikipediafs/code/trunk@47 59acd704-e115-0410-a914-e735a229ed7c
|
|
|
|
|
|
|
| |
- Fixed mount from fstab.
git-svn-id: http://svn.code.sf.net/p/wikipediafs/code/trunk@44 59acd704-e115-0410-a914-e735a229ed7c
|
|
|
|
| |
git-svn-id: http://svn.code.sf.net/p/wikipediafs/code/trunk@42 59acd704-e115-0410-a914-e735a229ed7c
|
|
|
|
| |
git-svn-id: http://svn.code.sf.net/p/wikipediafs/code/trunk@41 59acd704-e115-0410-a914-e735a229ed7c
|
|
|
|
| |
git-svn-id: http://svn.code.sf.net/p/wikipediafs/code/branches/fuse-python-new-api@35 59acd704-e115-0410-a914-e735a229ed7c
|
|
|
|
| |
git-svn-id: http://svn.code.sf.net/p/wikipediafs/code/branches/fuse-python-new-api@34 59acd704-e115-0410-a914-e735a229ed7c
|
|
|
|
| |
git-svn-id: http://svn.code.sf.net/p/wikipediafs/code/branches/fuse-python-new-api@33 59acd704-e115-0410-a914-e735a229ed7c
|
|
|
|
|
|
|
|
|
|
| |
mkdir wikipedia-fr) automatically sets a working directory for the concerned
site from the wikimedia foundation.
- Added subfolder support (yay !).
git-svn-id: http://svn.code.sf.net/p/wikipediafs/code/branches/fuse-python-new-api@31 59acd704-e115-0410-a914-e735a229ed7c
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
MetaDir allows to associate one directory with one class.
Therefore each directory can define its own behaviour in its own class.
It creates a higher level API so that we do not have do deal with
inodes and other low level data structures.
It takes care of editor files which can be a pain to deal with otherwise.
- Added fs.py, the actual logic of the file system, which uses MetaDir.
- Renamed the logger and config global variables to LOGGER and CONFIG resp. in
order to prevent confusion.
- Set default cache time to 30 seconds instead of 300 seconds. Too big cache
time may cause edit conflicts with people editing the same article.
git-svn-id: http://svn.code.sf.net/p/wikipediafs/code/branches/fuse-python-new-api@30 59acd704-e115-0410-a914-e735a229ed7c
|
|
|
|
| |
git-svn-id: http://svn.code.sf.net/p/wikipediafs/code/branches/fuse-python-new-api@29 59acd704-e115-0410-a914-e735a229ed7c
|
|
|
|
|
|
|
| |
- Set debug logging level if debug mode set in config.
git-svn-id: http://svn.code.sf.net/p/wikipediafs/code/branches/fuse-python-new-api@28 59acd704-e115-0410-a914-e735a229ed7c
|
|
|
|
| |
git-svn-id: http://svn.code.sf.net/p/wikipediafs/code/branches/fuse-python-new-api@26 59acd704-e115-0410-a914-e735a229ed7c
|
|
|
|
|
|
|
|
|
| |
- Created http.py.
- Added support for httpauth, based on a patch from Johannes Wolter.
- Added support for https.
git-svn-id: http://svn.code.sf.net/p/wikipediafs/code/branches/fuse-python-new-api@25 59acd704-e115-0410-a914-e735a229ed7c
|
|
|
|
| |
git-svn-id: http://svn.code.sf.net/p/wikipediafs/code/branches/fuse-python-new-api@24 59acd704-e115-0410-a914-e735a229ed7c
|
|
|
|
| |
git-svn-id: http://svn.code.sf.net/p/wikipediafs/code/branches/fuse-python-new-api@22 59acd704-e115-0410-a914-e735a229ed7c
|
|
git-svn-id: http://svn.code.sf.net/p/wikipediafs/code/branches/fuse-python-new-api@21 59acd704-e115-0410-a914-e735a229ed7c
|