debian/0000755000000000000000000000000012226546014007170 5ustar debian/copyright0000644000000000000000000000207712226546014011131 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: HTML-FormHandler-Model-DBIC Upstream-Contact: Gerda Shank Source: https://metacpan.org/release/HTML-FormHandler-Model-DBIC/ Files: * Copyright: 2012-2013, Gerda Shank License: Artistic or GPL-1+ Files: debian/* Copyright: 2012-2013, Dominique Dumont License: Artistic or GPL-1+ License: Artistic This program is free software; you can redistribute it and/or modify it under the terms of the Artistic License, which comes with Perl. . On Debian systems, the complete text of the Artistic License can be found in `/usr/share/common-licenses/Artistic'. License: GPL-1+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version. . On Debian systems, the complete text of version 1 of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-1'. debian/libhtml-formhandler-model-dbic-perl.docs0000644000000000000000000000000512226546014016724 0ustar TODO debian/watch0000644000000000000000000000022412226546014010217 0ustar version=3 https://metacpan.org/release/HTML-FormHandler-Model-DBIC/ .*/HTML-FormHandler-Model-DBIC-v?(\d[\d.-]+)\.(?:tar(?:\.gz|\.bz2)?|tgz|zip)$ debian/changelog0000644000000000000000000000172012226546014011042 0ustar libhtml-formhandler-model-dbic-perl (0.28-1) unstable; urgency=low [ Salvatore Bonaccorso ] * Change Vcs-Git to canonical URI (git://anonscm.debian.org) * Change search.cpan.org based URIs to metacpan.org based URIs [ Dominique Dumont ] * Imported Upstream version 0.28 * bumped compat to 9 * control: * added version dep on libdbix-class-perl * bump std-version to 3.9.4 + build-dep in libtest-exception-perl * copyright: updated years -- Dominique Dumont Sun, 13 Oct 2013 18:35:48 +0200 libhtml-formhandler-model-dbic-perl (0.23-1) unstable; urgency=low * new upstream release * control: bumped Depends libhtml-formhandler-perl to >= 0.40016 as done by upstream -- Dominique Dumont Wed, 17 Oct 2012 13:41:10 +0200 libhtml-formhandler-model-dbic-perl (0.21-1) unstable; urgency=low * Initial Release. (Closes: #584899) -- Dominique Dumont Sun, 02 Sep 2012 09:48:03 +0200 debian/compat0000644000000000000000000000000212226546014010366 0ustar 9 debian/patches/0000755000000000000000000000000012226546014010617 5ustar debian/patches/series0000644000000000000000000000003312226546014012030 0ustar rename-script fix_man_page debian/patches/rename-script0000644000000000000000000000271112226546014013314 0ustar Description: rename form_generator.pl script upstream script name is too generic. This patch reneams the file (and its manpage) at installation time. Doc refenence to this script are also modified Author: dod --- a/lib/HTML/FormHandler/Generator/DBIC.pm +++ b/lib/HTML/FormHandler/Generator/DBIC.pm @@ -111,7 +111,7 @@ my $form_template = <<'END'; # Generated automatically with HTML::FormHandler::Generator::DBIC # Using following commandline: -# form_generator.pl --rs_name=[% rs_name %][% IF label==1 %] --label[% END %][% IF label_column==1 %] --label_column[% END %] --schema_name=[% schema_name %][% IF class_prefix != '' %] --class_prefix=[% class_prefix %][% END %] --db_dsn=[% db_dsn %] +# dbic_form_generator --rs_name=[% rs_name %][% IF label==1 %] --label[% END %][% IF label_column==1 %] --label_column[% END %] --schema_name=[% schema_name %][% IF class_prefix != '' %] --class_prefix=[% class_prefix %][% END %] --db_dsn=[% db_dsn %] { package [% config.class %]Form; use HTML::FormHandler::Moose; @@ -371,7 +371,7 @@ =head1 SYNOPSIS - form_generator.pl --rs_name=Book --schema_name=BookDB::Schema::DB + dbci_form_generator --rs_name=Book --schema_name=BookDB::Schema::DB --db_dsn=dbi:SQLite:t/db/book.db > BookForm.pm =head1 DESCRIPTION --- a/script/form_generator.pl +++ b/script/form_generator.pl @@ -17,7 +17,7 @@ =head1 NAME -form_generator - form generator +dbic_form_generator - form generator =head1 VERSION debian/patches/fix_man_page0000644000000000000000000000251612226546014013163 0ustar Description: Add more info to script man page Most of this path was taken from lib/HTML/FormHandler/Generator/DBIC.pm Author: dod --- a/script/form_generator.pl +++ b/script/form_generator.pl @@ -13,11 +13,35 @@ __END__ + =pod =head1 NAME -dbic_form_generator - form generator +dbic_form_generator - Generate HTML form from DB schema with DBIC + +=head1 DESCRIPTION + +Using the database passed in the command option, dbic_form_generator +will query the DB for a schema and generate a HTML form to update the +content of the DB. + +Options: + + rs_name -- Resultset Name + schema_name -- Schema Name + db_dsn -- dsn connect info + class_prefix -- [OPTIONAL] Prefix for generated classes (Default: '') + label -- [OPTIONAL] Flag to toggle generation of form labels (Default: 0) + label_column -- [OPTIONAL] Flag to toggle generation of dummy form labels_columns for type: 'select' (Default: 0) + +This package should be considered still experimental since the output, +of the generated classes will be changed from time to time. This should +not impact the main usage for this module that we had in mind, that is +generating the initial version of a FormHandler form class, copying +it to the project and modifying it. + +This script is installed into the system with the rest of FormHandler. =head1 VERSION debian/source/0000755000000000000000000000000012226546014010470 5ustar debian/source/format0000644000000000000000000000001412226546014011676 0ustar 3.0 (quilt) debian/control0000644000000000000000000000333612226546014010600 0ustar Source: libhtml-formhandler-model-dbic-perl Maintainer: Debian Perl Group Uploaders: Dominique Dumont Section: perl Priority: optional Build-Depends: debhelper (>= 9) Build-Depends-Indep: libdatetime-format-mysql-perl, libdatetime-format-sqlite-perl, libdatetime-format-w3cdtf-perl, libdbd-sqlite3-perl, libdbix-class-perl (>= 0.08250), libdbix-class-resultset-recursiveupdate-perl, libhtml-formhandler-perl (>= 0.40016), libmoose-perl (>= 2.0007), libnamespace-autoclean-perl, libtest-exception-perl Standards-Version: 3.9.4 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-perl/packages/libhtml-formhandler-model-dbic-perl.git Vcs-Git: git://anonscm.debian.org/pkg-perl/packages/libhtml-formhandler-model-dbic-perl.git Homepage: https://metacpan.org/release/HTML-FormHandler-Model-DBIC/ Package: libhtml-formhandler-model-dbic-perl Architecture: all Depends: ${misc:Depends}, ${perl:Depends}, libdbix-class-perl (>= 0.08250), libdbix-class-resultset-recursiveupdate-perl, libhtml-formhandler-perl (>= 0.40016), libmoose-perl (>= 2.0007), libnamespace-autoclean-perl Provides: libhtml-formhandler-traitfor-model-dbic-perl Description: base class that holds DBIC model role HTML::FormHandler::Model::DBIC and HTML::FormHandler::TraitFor::Model::DBIC provide an interface between HTML::FormHandler and DBIx::Class. . This interface is available as a regular class or as a Moose role. It will save form fields automatically to the database. debian/rules0000755000000000000000000000061312226546014010250 0ustar #!/usr/bin/make -f # see http://pkg-perl.alioth.debian.org/debhelper.html#occasionally_useful PACKAGE = $(shell dh_listpackages) TMP = $(CURDIR)/debian/$(PACKAGE) %: dh $@ override_dh_auto_install: dh_auto_install mv $(TMP)/usr/bin/form_generator.pl $(TMP)/usr/bin/dbic_form_generator mv $(TMP)/usr/share/man/man1/form_generator.pl.1p $(TMP)/usr/share/man/man1/dbic_form_generator.1p