[glom] Small fixes to Film Manager example.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glom] Small fixes to Film Manager example.
- Date: Tue, 11 Oct 2011 15:27:24 +0000 (UTC)
commit 6b982fe51ed6789ed856898dfd76b262615e7db5
Author: Murray Cumming <murrayc murrayc com>
Date: Tue Oct 11 16:45:10 2011 +0200
Small fixes to Film Manager example.
* examples/example_film_manager.glom: Remove the unused (and hiddent)
Teams table.
Contacts: Remove the unnecessary groups around the related records
portals in the notebook.
ChangeLog | 9 +++++
examples/example_film_manager.glom | 71 ++++++++++--------------------------
2 files changed, 29 insertions(+), 51 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index ec276a4..6e5918d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,14 @@
2011-10-11 Murray Cumming <murrayc murrayc com>
+ Small fixes to Film Manager example.
+
+ * examples/example_film_manager.glom: Remove the unused (and hiddent)
+ Teams table.
+ Contacts: Remove the unnecessary groups around the related records
+ portals in the notebook.
+
+2011-10-11 Murray Cumming <murrayc murrayc com>
+
CanvasPrintLayout: Wipe empty rows when filling with data.
* glom/print_layout/canvas_print_layout.cc: fill_with_data_portal():
diff --git a/examples/example_film_manager.glom b/examples/example_film_manager.glom
index f9fdd98..6c21b24 100644
--- a/examples/example_film_manager.glom
+++ b/examples/example_film_manager.glom
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<glom_document xmlns="http://glom.org/glom_document" database_title="Openismus Film Manager" is_example="true" translation_original_locale="en_US" format_version="7">
- <connection server="localhost" user="" database="glom_film_production_manager" self_hosted="true" port="5434" try_other_ports="false" hosting_mode="postgres_self"/>
+ <connection server="localhost" user="" database="glom_film_production_manager" self_hosted="true" port="5433" try_other_ports="false" hosting_mode="postgres_self"/>
<table name="accommodation" title="Accommodation">
<example_rows/>
<trans_set>
@@ -1326,37 +1326,25 @@
</data_layout_group>
</data_layout_notebook>
<data_layout_notebook name="notebook_related">
- <data_layout_group name="crew" title="Crew">
- <trans_set>
- <trans loc="de_DE" val="Crew"/>
- <trans loc="en_GB" val="Crew"/>
- </trans_set>
- <data_layout_portal relationship="crew" portal_rows_count="6">
- <data_layout_item name="crew_id" editable="true" use_default_formatting="true">
- <formatting format_thousands_separator="true" format_decimal_places="2"/>
- </data_layout_item>
- <data_layout_item name="description" editable="true" use_default_formatting="true">
- <formatting/>
- </data_layout_item>
- </data_layout_portal>
- </data_layout_group>
- <data_layout_group name="cast" title="Cast">
- <trans_set>
- <trans loc="de_DE" val="Cast"/>
- <trans loc="en_GB" val="Cast"/>
- </trans_set>
- <data_layout_portal relationship="cast" portal_rows_count="6">
- <data_layout_item name="character_id" editable="true" use_default_formatting="true">
- <formatting format_thousands_separator="true" format_decimal_places="2"/>
- </data_layout_item>
- <data_layout_item name="character" editable="true" use_default_formatting="true">
- <formatting/>
- </data_layout_item>
- <data_layout_item name="mainpart" editable="true" use_default_formatting="true">
- <formatting/>
- </data_layout_item>
- </data_layout_portal>
- </data_layout_group>
+ <data_layout_portal relationship="crew" portal_rows_count="6">
+ <data_layout_item name="crew_id" editable="true" use_default_formatting="true">
+ <formatting format_thousands_separator="true" format_decimal_places="2"/>
+ </data_layout_item>
+ <data_layout_item name="description" editable="true" use_default_formatting="true">
+ <formatting/>
+ </data_layout_item>
+ </data_layout_portal>
+ <data_layout_portal relationship="cast" portal_rows_count="6">
+ <data_layout_item name="character_id" editable="true" use_default_formatting="true">
+ <formatting format_thousands_separator="true" format_decimal_places="2"/>
+ </data_layout_item>
+ <data_layout_item name="character" editable="true" use_default_formatting="true">
+ <formatting/>
+ </data_layout_item>
+ <data_layout_item name="mainpart" editable="true" use_default_formatting="true">
+ <formatting/>
+ </data_layout_item>
+ </data_layout_portal>
</data_layout_notebook>
<data_layout_item name="email" editable="true" use_default_formatting="true">
<formatting/>
@@ -3825,25 +3813,6 @@ else:
</reports>
<print_layouts/>
</table>
- <table name="teams" hidden="true" title="Teams">
- <example_rows/>
- <trans_set>
- <trans loc="de_DE" val="Teams"/>
- <trans loc="en_GB" val="Teams"/>
- </trans_set>
- <fields>
- <field name="teams_id" primary_key="true" unique="true" auto_increment="true" type="Number">
- <formatting format_thousands_separator="true" format_decimal_places="2"/>
- <trans_set>
- <trans loc="de_DE" val="Teams ID"/>
- </trans_set>
- </field>
- </fields>
- <relationships/>
- <data_layouts/>
- <reports/>
- <print_layouts/>
- </table>
<groups><!--These are only used when recreating a database from an example file. The actual access-control is on the server, of course.-->
<group name="accounts"/>
<group name="glom_developer" developer="true"/>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]