sitecorepy.git
13 years agoself.w -> self.s.w in prof/import.py
W. Trevor King [Tue, 29 Jun 2010 13:10:35 +0000 (09:10 -0400)]
self.w -> self.s.w in prof/import.py

13 years agoUse ProfessorAdder.__call__() in prof/import.py
W. Trevor King [Tue, 29 Jun 2010 12:50:29 +0000 (08:50 -0400)]
Use ProfessorAdder.__call__() in prof/import.py

13 years agoAllow a few tries for 'Home' to open in prof/import.py
W. Trevor King [Tue, 29 Jun 2010 12:46:21 +0000 (08:46 -0400)]
Allow a few tries for 'Home' to open in prof/import.py

13 years agoFirst attempt at professor copying code
W. Trevor King [Mon, 28 Jun 2010 13:29:23 +0000 (09:29 -0400)]
First attempt at professor copying code

13 years agoAdded Professor.degrees()
W. Trevor King [Sun, 27 Jun 2010 12:26:18 +0000 (08:26 -0400)]
Added Professor.degrees()

13 years agooptparse.OptionParser.parse_args wants argv[1:]
W. Trevor King [Sun, 27 Jun 2010 01:12:15 +0000 (21:12 -0400)]
optparse.OptionParser.parse_args wants argv[1:]

13 years agoyaml.dump(stream, data) -> yaml.dump(data, stream)
W. Trevor King [Sun, 27 Jun 2010 01:09:54 +0000 (21:09 -0400)]
yaml.dump(stream, data) -> yaml.dump(data, stream)

13 years agoFix YAML saving in export_mysql.
W. Trevor King [Sun, 27 Jun 2010 01:08:58 +0000 (21:08 -0400)]
Fix YAML saving in export_mysql.

13 years agoAllow for empty prof['degrees'] in export_mysql
W. Trevor King [Sun, 27 Jun 2010 01:07:27 +0000 (21:07 -0400)]
Allow for empty prof['degrees'] in export_mysql

13 years agoBetter Vallieres workaround: specify utf-8 charset ;)
W. Trevor King [Sat, 26 Jun 2010 22:35:07 +0000 (18:35 -0400)]
Better Vallieres workaround: specify utf-8 charset ;)

13 years agoWork around garbled utf-8 for Vallieres
W. Trevor King [Sat, 26 Jun 2010 22:33:23 +0000 (18:33 -0400)]
Work around garbled utf-8 for Vallieres

13 years agoForce UTF-8 encoding in sc.py
W. Trevor King [Sat, 26 Jun 2010 22:14:50 +0000 (18:14 -0400)]
Force UTF-8 encoding in sc.py

13 years agoAllow multi-word graduation fields
W. Trevor King [Sat, 26 Jun 2010 22:13:14 +0000 (18:13 -0400)]
Allow multi-word graduation fields

13 years agoDon't require either . or , to separate year from degree institution
W. Trevor King [Sat, 26 Jun 2010 22:12:23 +0000 (18:12 -0400)]
Don't require either . or , to separate year from degree institution

13 years agoAllow . as well as , to separate year from degree institution
W. Trevor King [Sat, 26 Jun 2010 22:11:25 +0000 (18:11 -0400)]
Allow . as well as , to separate year from degree institution

13 years agoMore fixups to Graduation parsing
W. Trevor King [Sat, 26 Jun 2010 22:10:16 +0000 (18:10 -0400)]
More fixups to Graduation parsing

13 years agoFixes to GRADUATION_REGEXP in export_mysql
W. Trevor King [Sat, 26 Jun 2010 22:00:25 +0000 (18:00 -0400)]
Fixes to GRADUATION_REGEXP in export_mysql

13 years agoFilled in Graduation parsing in export_mysql
W. Trevor King [Sat, 26 Jun 2010 21:54:22 +0000 (17:54 -0400)]
Filled in Graduation parsing in export_mysql

13 years agog.graduations -> p.graduations typo fix in export_mysql.main
W. Trevor King [Sat, 26 Jun 2010 21:43:27 +0000 (17:43 -0400)]
g.graduations -> p.graduations typo fix in export_mysql.main

13 years agoposition1 == Null if it's not set
W. Trevor King [Sat, 26 Jun 2010 21:42:24 +0000 (17:42 -0400)]
position1 == Null if it's not set

13 years agoposition1 -> position and position2 -> position1 (to match people table)
W. Trevor King [Sat, 26 Jun 2010 21:41:20 +0000 (17:41 -0400)]
position1 -> position and position2 -> position1 (to match people table)

13 years agoA first attempt at MySQL -> Professor() conversion
W. Trevor King [Sat, 26 Jun 2010 21:39:49 +0000 (17:39 -0400)]
A first attempt at MySQL -> Professor() conversion

13 years agoAdded list-handling to AttributeHolder.__unicode__
W. Trevor King [Sat, 26 Jun 2010 21:37:04 +0000 (17:37 -0400)]
Added list-handling to AttributeHolder.__unicode__

Also added some missing fields from the Drexel specs to the
AttributeHolder subclasses.

13 years agoAdded string output methods to AttributeHolder.
W. Trevor King [Sat, 26 Jun 2010 21:11:50 +0000 (17:11 -0400)]
Added string output methods to AttributeHolder.

13 years agoUse dict_ in export_mysql to avoid clobbering builtin dict
W. Trevor King [Sat, 26 Jun 2010 20:51:29 +0000 (16:51 -0400)]
Use dict_ in export_mysql to avoid clobbering builtin dict

13 years agoAdd leading space to where string
W. Trevor King [Sat, 26 Jun 2010 20:43:39 +0000 (16:43 -0400)]
Add leading space to where string

13 years agoAdded logging commands to export_mysql
W. Trevor King [Sat, 26 Jun 2010 20:38:20 +0000 (16:38 -0400)]
Added logging commands to export_mysql

13 years agoFix typo in export_mysql.SimpleDB.connect signature
W. Trevor King [Sat, 26 Jun 2010 20:31:45 +0000 (16:31 -0400)]
Fix typo in export_mysql.SimpleDB.connect signature

13 years agoFixup submod import in sc.py
W. Trevor King [Sat, 26 Jun 2010 20:21:17 +0000 (16:21 -0400)]
Fixup submod import in sc.py

13 years agoOops. ./sc -> ./sc.py in help texts.
W. Trevor King [Sat, 26 Jun 2010 20:17:10 +0000 (16:17 -0400)]
Oops.  ./sc -> ./sc.py in help texts.

13 years agoAdded a .gitignore file (currently ignores *.pyc)
W. Trevor King [Sat, 26 Jun 2010 20:11:06 +0000 (16:11 -0400)]
Added a .gitignore file (currently ignores *.pyc)

13 years agoAdded sc.py, a
W. Trevor King [Sat, 26 Jun 2010 20:08:04 +0000 (16:08 -0400)]
Added sc.py, a

Because relative imports don't work with
  $ ./sitecore/prof/export_mysql.py
etc.

Also a number of syntax fixups and unicode -> ascii translations.

13 years agoMoved prof_import/export down into sitecore/prof.
W. Trevor King [Sat, 26 Jun 2010 19:49:18 +0000 (15:49 -0400)]
Moved prof_import/export down into sitecore/prof.

Also moved doc/faculty.txt into the sitecore.prof doctring.

13 years agoAdded sitecore.prof_export (unfinished) for MySQL -> YAML
W. Trevor King [Sat, 26 Jun 2010 02:08:58 +0000 (22:08 -0400)]
Added sitecore.prof_export (unfinished) for MySQL -> YAML

13 years agoFix sitecore.prof_import.__doc__
W. Trevor King [Sat, 26 Jun 2010 02:08:20 +0000 (22:08 -0400)]
Fix sitecore.prof_import.__doc__

13 years agoBreak sitecore.setup_logger() out to sitecore.get_logger().
W. Trevor King [Sat, 26 Jun 2010 02:04:28 +0000 (22:04 -0400)]
Break sitecore.setup_logger() out to sitecore.get_logger().

This lets us use the same logger in other submodules.

Also: make selenium import optional in sitecore/__init__.py,
so we can run related but non-SiteCore submodules.

13 years agoRemove some old cruft from sitecore.alt_tags
W. Trevor King [Fri, 25 Jun 2010 20:04:29 +0000 (16:04 -0400)]
Remove some old cruft from sitecore.alt_tags

13 years agoAdded prof_import stub
W. Trevor King [Fri, 25 Jun 2010 19:29:22 +0000 (15:29 -0400)]
Added prof_import stub

13 years agoExcerpted other relevant blurbs from the faculty profile email.
W. Trevor King [Fri, 25 Jun 2010 19:28:16 +0000 (15:28 -0400)]
Excerpted other relevant blurbs from the faculty profile email.

13 years agoAdded doc/faculty.txt explaining Drexel faculty profile policy.
W. Trevor King [Fri, 25 Jun 2010 19:22:18 +0000 (15:22 -0400)]
Added doc/faculty.txt explaining Drexel faculty profile policy.

The field names don't always match up with Drexel's suggested content,
so it's good to keep track of what they want.

Translated from a PDF distributed via email:
  From: "Demi,Karissa" <...>
  Date: Mon, 24 May 2010 15:19:07 -0400
  Subject: Sitecore: Faculty Profiles

13 years agoMoved to submodule structure and split out alt_tags
W. Trevor King [Fri, 25 Jun 2010 19:08:33 +0000 (15:08 -0400)]
Moved to submodule structure and split out alt_tags

13 years agoDon't worry about sections that we can't lock
W. Trevor King [Thu, 24 Jun 2010 20:34:17 +0000 (16:34 -0400)]
Don't worry about sections that we can't lock

13 years agoBegan versioning
W. Trevor King [Thu, 24 Jun 2010 19:38:17 +0000 (15:38 -0400)]
Began versioning