The new woob repository is here: https://gitlab.com/woob/woob. This gitlab will be removed soon.

Commit 6b859d4b authored by Roger Philibert's avatar Roger Philibert Committed by Vincent A

woob: more renames

parent 7f0c5015
Pipeline #3699 passed with stages
in 66 minutes and 1 second
Weboob is a free software written by:
Woob is a free software written by:
Romain Bignon <romain@weboob.org>
* Core team;
......
......@@ -12,7 +12,7 @@ then
dossier=$1
else
echo "Usage: $0 FOLDER"
echo "For example : $0 /tmp/weboob_session_NLSIls/freemobile/"
echo "For example : $0 /tmp/woob_session_NLSIls/freemobile/"
exit 1
fi
......
Weboob
Woob
==========
Weboob is a project which provides a core library, modules and applications
Woob is a project which provides a core library, modules and applications
such as boobank.
Overview
......@@ -20,7 +20,7 @@ in a multi-threaded way.
The core library provides base classes which help developers write
modules and applications.
Weboob is written in Python and is distributed under the LGPLv3+ license.
Woob is written in Python and is distributed under the LGPLv3+ license.
For more information, please go to the official website at http://woob.tech/
......@@ -49,7 +49,7 @@ depending on your Ubuntu Version. Or put it in `~/.config/openbox/autostart`
###Dependencies
- weboob >= 1.0
- woob >= 1.0
- gir1.2-appindicator3 >= 0.1
- gir1.2-notify >= 0.7
......@@ -58,7 +58,7 @@ depending on your Ubuntu Version. Or put it in `~/.config/openbox/autostart`
If the app indicator fails to show in Ubuntu versions, consider installing
python-appindicator with
`sudo apt-get install python-appindicator` weboob gir1.2-appindicator3 gir1.2-notify`
`sudo apt-get install python-appindicator` woob gir1.2-appindicator3 gir1.2-notify`
##Author Information
- Bezleputh (<bezleputh@gmail.com>)
......@@ -5,7 +5,7 @@
version='2.1',
description='show your bank accounts in your System Tray',
long_description='boobank_indicator will show you bank accounts and associated transactions in your system tray. Your bank accounts should be configured in boobank',
keywords='weboob boobank tray icon',
keywords='woob bank tray icon',
url='http://woob.tech/',
license='GNU LGPL 3',
author='Bezleputh',
......
......@@ -4,20 +4,20 @@
# Copyright(C) 2010-2011 Romain Bignon
#
# This file is part of weboob.
# This file is part of woob.
#
# weboob is free software: you can redistribute it and/or modify
# woob is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# weboob is distributed in the hope that it will be useful,
# woob is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
# along with woob. If not, see <http://www.gnu.org/licenses/>.
from __future__ import print_function
......
......@@ -182,7 +182,7 @@ sub fetch {
}
}
}
# execute weboob
# execute woob
open my $data, q(-|), $weboob or croak "Couldn't execute program: $ERRNO";
my @lines = <$data>;
close $data or carp "unable to close: $ERRNO";
......
......@@ -25,16 +25,16 @@
### Configuration ###
## Mandatory options ##
# env.capa: The Weboob capability to load
# env.capa: The Woob capability to load
# Example: env.capa CapBank
#
# env.do: The Weboob command to call. It can take more than one argument.
# env.do: The Woob command to call. It can take more than one argument.
# With two argument, the second is used as parameter for the command.
# The third is used to restrict backends.
# Example: env.do get_balance
#
# env.import: The import line to import the capabilities
# Example: from weboob.capabilities.bank import CapBank
# Example: from woob.capabilities.bank import CapBank
#
# env.attribvalue: The attribut name of objects returned by the do command.
# For example, the "balance" member of Account objects
......
Weboob session importer
=======================
Woob session importer
=====================
This is a webextension to export a weboob session URL and cookies and load it in
This is a webextension to export a woob session URL and cookies and load it in
a real browser.
Build
......@@ -16,7 +16,7 @@ To build a package, `web-ext build` can be used.
Use
---
To export the session with weboob-debug for example:
To export the session with woob-debug for example:
>>> print(json.dumps(browser.export_session()))
......@@ -24,5 +24,5 @@ Copy the JSON output (sample):
{"url": "https://example.com/foo", "cookies": [{"name": "foo", "value": "bar"}]}
Then click on the Weboob toolbar button of your browser and paste the JSON.
The browser will set the cookies from weboob and go to the same URL.
Then click on the Woob toolbar button of your browser and paste the JSON.
The browser will set the cookies from woob and go to the same URL.
{
"manifest_version": 2,
"name": "Weboob session importer",
"name": "Woob session importer",
"version": "0.0.1",
"description": "Import Weboob session URL and cookies",
"homepage_url": "http://weboob.org",
"description": "Import Woob session URL and cookies",
"homepage_url": "http://woob.tech",
"icons": {
"48": "logo.png"
......@@ -19,7 +19,7 @@
"browser_action": {
"browser_style": true,
"default_icon": "logo.png",
"default_title": "Import Weboob session",
"default_title": "Import Woob session",
"default_popup": "popup.html"
}
}
......@@ -29,8 +29,8 @@
from woob import __version__
WEBOOB_MODULES = os.getenv(
'WEBOOB_MODULES',
WOOB_MODULES = os.getenv(
'WOOB_MODULES',
os.path.realpath(os.path.join(os.path.dirname(__file__), '../../modules')))
BOILERPLATE_PATH = os.getenv(
'BOILERPLATE_PATH',
......@@ -68,7 +68,7 @@ def __init__(self, args):
self.login = False
def write(self, filename, contents):
return write(os.path.join(WEBOOB_MODULES, self.name, filename), contents)
return write(os.path.join(WOOB_MODULES, self.name, filename), contents)
def template(self, name, **kwargs):
if '.' not in name:
......
......@@ -25,7 +25,7 @@
import traceback
import lxml.etree
from weboob.browser.filters import standard
from woob.browser.filters import standard
class Error(SyntaxError):
......@@ -141,7 +141,7 @@ def search_py(root):
parser.add_argument('-w', '--warnings', action='store_true')
args = parser.parse_args()
modpath = os.getenv('WEBOOB_MODULES', os.path.normpath(os.path.dirname(__file__) + '/../modules'))
modpath = os.getenv('WOOB_MODULES', os.path.normpath(os.path.dirname(__file__) + '/../modules'))
for fn in search_py(modpath):
with open(fn) as fd:
try:
......
......@@ -23,7 +23,7 @@ def write_request(entry, fd):
if 'postData' in entry:
if entry['postData'].get('x-binary'):
# non-standard key emitted by weboob
# non-standard key emitted by woob
body = entry['postData']['text'].encode('latin-1')
else:
body = entry['postData']['text'].encode()
......
......@@ -30,7 +30,7 @@
from datetime import datetime
from textwrap import dedent
from weboob.tools.application.base import Application
from woob.tools.application.base import Application
BASE_PATH = os.path.join(os.path.dirname(__file__), os.pardir)
DEST_DIR = 'man'
......@@ -106,7 +106,7 @@ def format_option_strings(self, option):
def main():
# TODO rename when apps have changed folder
scripts_path = os.path.join(BASE_PATH, 'weboob', 'applications')
scripts_path = os.path.join(BASE_PATH, 'woob', 'applications')
files = sorted(os.listdir(scripts_path))
completions = dict()
......
......@@ -2,10 +2,10 @@
# -*- coding: utf-8 -*-
"""
Script to format XUNIT output from unittests as a JSON string ready to be sent
to a [Weboob-CI](https://github.com/Phyks/weboob-ci) instance.
to a [Woob-CI](https://github.com/Phyks/weboob-ci) instance.
* `XUNIT` is the XUNIT file to handle.
* `ORIGIN` is an origin string as described in the Weboob-CI documentation
* `ORIGIN` is an origin string as described in the Woob-CI documentation
(basically just a string to identify the source of the unittests results).
"""
from __future__ import print_function
......@@ -23,7 +23,7 @@ def main(xunit, origin):
modules = {}
other_testcases = []
for tc in ts:
if tc.classname.startswith("weboob."):
if tc.classname.startswith("woob."):
other_testcases.append(repr(tc))
continue
module = tc.classname.split(".")[0]
......
......@@ -75,10 +75,10 @@ if [ ! -n "${XUNIT_OUT}" ]; then
XUNIT_OUT=""
fi
# Handle Weboob-CI variables
# Handle Woob-CI variables
if [ -n "${WOOB_CI_TARGET}" ]; then
if [ ! -n "${WOOB_CI_ORIGIN}" ]; then
WOOB_CI_ORIGIN="Weboob unittests run"
WOOB_CI_ORIGIN="Woob unittests run"
fi
# Set up xunit reporting
XUNIT_OUT="${WOOB_TMPDIR}/xunit.xml"
......@@ -127,7 +127,7 @@ if [ -n "${BACKEND}" ]; then
STATUS=$?
else
if [ $TEST_CORE = 1 ]; then
echo "=== Weboob ==="
echo "=== Woob ==="
CORE_TESTS=$(mktemp)
${PYTHON} -m nose --cover-package woob -c ${WOOB_DIR}/setup.cfg --logging-level=DEBUG -sv 2>&1 | tee "${CORE_TESTS}"
STATUS_CORE=$?
......
import weboob.tools.captcha.virtkeyboard as OLD
import woob.tools.captcha.virtkeyboard as OLD
# can't import *, __all__ is incomplete...
for attr in dir(OLD):
......@@ -31,7 +31,7 @@ class SimpleVirtualKeyboard(object):
(x0, y0, x1, y1) on grid image from left to right and top to
down, European reading way. It's not symbols in the image.
:type matching_symbols_coords: dict[str:4-tuple(int)]
:param browser: Browser of weboob session.
:param browser: Browser of woob session.
Allow to dump tiles files in same directory than session folder
:type browser: obj(Browser)
......@@ -81,7 +81,7 @@ def build_path(self, browser=None):
if browser and browser.responses_dirname:
return browser.responses_dirname
else:
return tempfile.mkdtemp(prefix='weboob_session_')
return tempfile.mkdtemp(prefix='woob_session_')
def load_image(self, file, margin=None, convert=None):
self.image = Image.open(file)
......
......@@ -5,7 +5,7 @@
import os
import sys
from weboob.core import Woob
from woob.core import Woob
# Hint: use this script with file:///path/to/local/modules/ in sources.list
# if you want to correctly check all modules.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment