For multiple files, only truncate filenames of schema objects. Fixes #61.

 * docs/dbtoyaml.rst: Point out only schema objects will be truncated.
 * pyrseas/dbobject/__init__.py (DbObject.extern_filename): Add
   truncate argument with default False.
   (DbSchemaObject.extern_filename): New method, which invokes super
   method with truncate=True.
 * tests/dbobject/test_extern_file.py: New test to cover change.
For yamltodb, create schemas ahead of extensions. Fixes #68.

 * pyrseas/dbobject/database.py (Database.diff_map): Process schemas
   before everything.
 * tests/dbobject/test_extension.py
   (ExtensionToSqlTestCase.test_create_extension_schema): Don't create
   the schema, but expect it first in the to_sql output.
Check for translation entry before raising Function Template not found 
error in CfgFunction.apply() - fixes #64
Merge pull request #70 from rhunwicks/issues/64

Check for translation entry before raising KeyError - fixes #64
Quote collation identifiers in columns. Fixes #71.

 * pyrseas/dbobject/column.py (Column.add): Quote the collation
   identifier.
 * tests/dbobject/test_collation.py: Change two tests accordingly.
 * tests/dbobject/test_column.py: Change column defaults test to cover
   this too.
Merge commit '674b178' into r0.7
Correct data_import so new tables are also imported.
Document limitation raised in issue 72. [ci skip]

  Also, remove adjust_name from cfgobjects.rst.
Drop (and reinstate) FK constraints for tables being truncated for import.

 * pyrseas/dbobject/table.py (Table.data_import): If table has a
   foreign key reference, drop the constraint before truncating and
   reinstate it afterwards.
 * tests/dbobject/test_static.py: New test to cover change.
Merge branch 'r0.7' of github.com:jmafc/Pyrseas into r0.7
Reinstate the FK constraint *after* the data is copied.
Allow yamltodb -u to process \copy statments.

 * pyrseas/dbobject/table.py (Table.data_import): Return the \copy
   statement as a five-element tuple so that it can be easily used by
   yamltodb.
 * pyrseas/lib/dbconn.py (DbConnection.copy_from): New method to wrap
   psycopg function.
 * pyrseas/testutils.py (DbMigrateTestCase.run_pg_dump): Add incldata
   argument to create a pg_dump with data.
 * pyrseas/yamltodb.py: If -u option, process \copy statements via
   copy_from.
 * tests/dbobject/test_static.py: Adjusts the StaticTableToSqlTestCase
   copy_stmt formats.
 * tests/functional/film-schema-0.3b.sql: Add INSERT to populate the
   genre table.
 * tests/functional/test_filmversions.py
   (FilmTestCase.test_film_version_03): Add a user and repo config
   file to export and then import the genre table.
Add support for boolean types in pyrseas.relation.attribute.
Process command-line config file earlier to obtain repo path. Fixes #74.

 * pyrseas/cmdargs.py (parse_args): Merge command-line config before
   establishing the repository paths, and only override the configured
   repo path if the command-line value is not the default (os.getcwd).
Support partial indexes. Fixes #76.

 * pyrseas/dbobject/index.py (Index.create): Process predicate if
   present.  (IndexDict.query): Retrieve indpred.
   (IndexDict._from_catalog): Split WHERE clause before USING.
   (IndexDict.from_map): Add predicate to attribute list.
 * tests/dbobject/test_index.py: Add two tests for new functionality.
Formatting and other fixes suggested by flake8.
Document configuration items. Fixes #75.
Remove need to use "set search_path" in various commands. Fixes #73.

 * docs/dbobject.rst: Remove DbSchemaObject.set_search_path.
 * pyrseas/dbobject/__init__.py (DbSchemaObject.qualname): Add objname
   argument to allow qualification of related objects.
   (DbSchemaObject.set_search_path): Delete.
 * pyrseas/dbobject/column.py (Column.set_sequence_default): Don't set
   search_path but qualify table name instead.
 * pyrseas/dbobject/index.py (Index.create): Don't set search_path but
   qualify table name instead.
 * pyrseas/dbobject/table.py (Sequence.add_owner): Don't set
   search_path but qualify sequence and owner table instead.
 * tests/dbobject/test_column.py: Modify
   test_create_table_with_defaults to use a non-public schema and to
   verify ALTER SEQUENCE OWNED BY.
 * tests/dbobject/test_index.py: Add new test to verify index creation
   in a non-public schema.
Correct column-level COLLATE clauses.

  The collation is an identifier and needs double-quotes around it,
  rather than single quotes.
Merge branch 'r0.7'