freeipa/.gitignore

95 lines
1.7 KiB
Plaintext
Raw Normal View History

2010-10-18 10:14:05 -05:00
configure
config.h
config.h.in
Makefile
Makefile.in
.deps/
.libs/
*.la
*.lo
2013-04-16 15:22:27 -05:00
*.log
2010-10-18 10:14:05 -05:00
*.o
2008-10-07 21:16:53 -05:00
*.pyc
2013-04-16 15:22:27 -05:00
*.trs
2008-10-07 21:16:53 -05:00
.bzr
freeipa2-dev-doc
2008-10-23 09:37:16 -05:00
build
2010-10-18 10:14:05 -05:00
dist/
RELEASE
daemons/AUTHORS
daemons/COPYING
daemons/ChangeLog
daemons/INSTALL
daemons/NEWS
daemons/README
daemons/aclocal.m4
daemons/autom4te.cache/
daemons/config.guess
daemons/config.log
daemons/config.status
daemons/config.sub
daemons/depcomp
daemons/install-sh
2013-05-30 07:36:13 -05:00
daemons/ipa-otpd/ipa-otpd
daemons/ipa-otpd/ipa-otpd.socket
daemons/ipa-otpd/ipa-otpd@.service
2010-10-18 10:14:05 -05:00
daemons/ipa-version.h
daemons/libtool
daemons/ltmain.sh
daemons/missing
daemons/stamp-h1
2013-05-30 07:36:13 -05:00
daemons/test-driver
2010-10-18 10:14:05 -05:00
install/AUTHORS
install/COPYING
install/ChangeLog
install/INSTALL
install/NEWS
install/README
install/aclocal.m4
install/autom4te.cache/
install/config.log
install/config.status
install/install-sh
install/missing
install/stamp-h1
Replace broken i18n shell test with Python test We had been using shell scripts and sed to test our translations. But trying to edit pot and po files with sed is nearly impossible because the file format can vary significantly and the sed editing was failing and gettext tools were complaining about our test strategy. We had been using a Python script (test_i18n.py) to perform the actual test after using shell, sed, and gettext tools to create the files. There is a Python library (polib) which can read/write/edit pot/po/mo files (used internally by Transifex, our translation portal). The strategy now is to do everything in Python (in test_i18n.py). This is easier, more robust and allows us to do more things. * add python-polib to BuildRequires * Remove the logic for creating the test lang from Makefile.in and replace it with calls to test_i18n.py * add argument parsing, usage, configuration parameters, etc. to test_i18n.py to make it easier to use and configurable. * add function to generate a test po and mo file. It also writes the files and creates the test directory structure. * Took the existing validate code and refactored it into validation function. It used to just pick one string and test it, now it iterates over all strings and all plural forms. * Validate anonymous Python format substitutions in pot file * added support for plural forms. * Add pot po file validation for variable substitution * In install/po subdir you can now do: $ make test $ make validate-pot $ make validate-po * The options for running test_i18n.py are: $ ./test_i18n.py --help Usage: test_i18n.py --test-gettext test_i18n.py --create-test test_i18n.py --validate-pot [pot_file1, ...] test_i18n.py --validate-po po_file1 [po_file2, ...] Options: -h, --help show this help message and exit -s, --show-strings show the offending string when an error is detected --pedantic be aggressive when validating -v, --verbose be informative --traceback print the traceback when an exception occurs Operational Mode: You must select one these modes to run in -g, --test-gettext create the test translation file(s) and exercise them -c, --create-test create the test translation file(s) -P, --validate-pot validate pot file(s) -p, --validate-po validate po file(s) Run Time Parameters: These may be used to modify the run time defaults --test-lang=TEST_LANG test po file uses this as it's basename (default=test) --lang=LANG lang used for locale, MUST be a valid lang (default=xh_ZA) --domain=DOMAIN translation domain used during test (default=ipa) --locale=LOCALE locale used during test (default=test_locale) --pot-file=POT_FILE default pot file, used when validating pot file or generating test po and mo files (default=ipa.pot) https://fedorahosted.org/freeipa/ticket/2044
2012-03-23 00:44:04 -05:00
install/po/test.po
install/po/test_locale/xh_ZA/LC_MESSAGES/ipa.mo
install/ui/release
install/ui/src/dojo
install/ui/src/build
Load updated Web UI files after server upgrade Issue: * There was no caching policy specified. * -> Browsers use their own default policy. * -> After upgrade, some Web UI files might have been actualized some not. * -> With schema change may result into weird bugs in Web UI Solution considerations: 1. Detect server version change and hard-reload at runtime Detection is easy. Problem is the reload. Obvious candidate 'window.location.reload(true)' works in Firefox but not in Chrome because expected behavior when parameter is used is not in standard and therefore Chromium/WebKit authors did not implement it. 2. Application Cache HTML 5 technology which lets web apps to run offline. Besides weird issues with event handlers which I encountered, this would be an ideal candidate. Simple change of manifest file would lead to reload of all files (requires reload of page to used the new files). Showstopper was usage with untrusted certificate. If user did not add exception for the cert or its CA and would visit the page for a second time, all AJAX calls would fail. 3. Set Expires to now() for everything Web UI rarely changes so this is an overkill. Setting it to different value is not a solution either. We can't predict when the upgrade will happen and when new Web UI will be needed. Solution: * Implemented a mini loader which loads basic resources. Dojo loader takes action after Dojo is loaded. * The loader adds a version parameter (?v=__NUM_VERSION__) to all requests. * Version is defined in the loader. It's set to current in `make version-update`. * All static pages use this loader to fetch their resources. * Version is also passed to dojo loader as cache-bust for the same effect. * Expire header was set to 'access time plus 1 year' for /ui folder. Exceptions are HTML files and loader (set to immediate expiration). Possible issues: * Images are cached but not requested with version param. * Images with version and without are considered different * -> We would have to attach version to all URIs - in CSS and in JS. But we should avoid changing jQuery UI CSS. * Proposed solution is to change image name when changing image. Image change is done rarely. * Version is set by build and therefore updated just on server update. It might cause trouble with different update schedule of plugins. * No action taken to address this issue yet. * We might leave it on plugin devs (own .conf in /etc/httpd/conf.d/) * or set expires to now for all plugins * running `make version-update` is required in order to use static version of UI for testing https://fedorahosted.org/freeipa/ticket/3798
2013-08-29 08:19:02 -05:00
install/ui/src/libs/loader.js
install/ui/src/plugins
2010-10-18 10:14:05 -05:00
ipa-client/COPYING
ipa-client/ChangeLog
ipa-client/INSTALL
ipa-client/aclocal.m4
ipa-client/autom4te.cache/
ipa-client/config.guess
ipa-client/config.log
ipa-client/config.status
ipa-client/config.sub
ipa-client/depcomp
ipa-client/install-sh
ipa-client/ipa-client.spec
ipa-client/ipa-getkeytab
ipa-client/ipa-join
ipa-client/ipa-rmkeytab
ipa-client/libtool
ipa-client/ltmain.sh
ipa-client/missing
ipa-client/py-compile
ipa-client/stamp-h1
ipa-client/version.m4
ipatests/test_xmlrpc/service.crt
ipatests/man/aclocal.m4
ipatests/man/autom4te.cache/
ipatests/man/config.status
ipatests/man/install-sh
ipatests/man/missing
freeipa.spec
2010-10-18 10:14:05 -05:00
ipapython/setup.py
ipapython/version.py
version.m4
2011-12-22 21:35:41 -06:00
ipapython/services.py
ipatests/setup.py