diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /net-misc/googlecl/files | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'net-misc/googlecl/files')
-rw-r--r-- | net-misc/googlecl/files/googlecl-0.9.12-calendar_dates.patch | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/net-misc/googlecl/files/googlecl-0.9.12-calendar_dates.patch b/net-misc/googlecl/files/googlecl-0.9.12-calendar_dates.patch new file mode 100644 index 000000000000..83897bb69550 --- /dev/null +++ b/net-misc/googlecl/files/googlecl-0.9.12-calendar_dates.patch @@ -0,0 +1,64 @@ +fix "when" field in calendar not showing dates + +http://bugs.gentoo.org/show_bug.cgi?id=355913 +http://code.google.com/p/googlecl/issues/detail?id=358 + +Index: googlecl/base.py +=================================================================== +--- src/googlecl/base.py (revision 527) ++++ src/googlecl/base.py (working copy) +@@ -673,10 +673,12 @@ + except ValueError, err: + LOG.debug(err.args[0] + ' (Did not add value for field ' + attr + ')') + except AttributeError, err: ++ LOG.debug(err.args[0] + ' (value for field ' + attr + ')') + try: + # Last ditch effort to blindly grab the attribute + val = getattr(wrapped_entry.entry, attr).text or missing_field_value + except AttributeError: ++ LOG.debug(err.args[0] + ' (value for field ' + attr + ')') + val = missing_field_value + # Apparently, atom(?) doesn't always return a Unicode type when there are + # non-latin characters, so force everything to Unicode. +Index: googlecl/calendar/__init__.py +=================================================================== +--- src/googlecl/calendar/__init__.py (revision 527) ++++ src/googlecl/calendar/__init__.py (working copy) +@@ -235,12 +235,22 @@ + + + class CalendarEntryToStringWrapper(googlecl.base.BaseEntryToStringWrapper): ++ def __init__(self, entry, config): ++ """Initialize a CalendarEntry wrapper. ++ ++ Args: ++ entry: CalendarEntry to interpret to strings. ++ config: Configuration parser. Needed for some values. ++ """ ++ googlecl.base.BaseEntryToStringWrapper.__init__(self, entry) ++ self.config_parser = config ++ + @property + def when(self): + """When event takes place.""" + start_date, end_date, freq = get_datetimes(self.entry) +- print_format = googlecl.CONFIG.lazy_get(SECTION_HEADER, +- 'date_print_format') ++ print_format = self.config_parser.lazy_get(SECTION_HEADER, ++ 'date_print_format') + start_text = time.strftime(print_format, start_date) + end_text = time.strftime(print_format, end_date) + value = start_text + ' - ' + end_text +@@ -277,9 +287,9 @@ + + for entry in single_events: + print googlecl.base.compile_entry_string( +- CalendarEntryToStringWrapper(entry), +- options.fields.split(','), +- delimiter=options.delimiter) ++ CalendarEntryToStringWrapper(entry, client.config), ++ options.fields.split(','), ++ delimiter=options.delimiter) + + + #=============================================================================== |