Conflicting LastChangeReport options

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Conflicting LastChangeReport options

Ron Johnson

What's up with this?

$ gramps -O Johnson-Gilbert -a report -p "name=LastChangeReport,show=all"
/usr/lib/python3/dist-packages/gramps/gui/utils.py:45: PyGIWarning: PangoCairo was imported without specifying a version first. Use gi.require_version('PangoCairo', '1.0') before import to ensure that the right version gets loaded.
  from gi.repository import PangoCairo
Opened successfully!
Performing action: report.
Using options string: name=LastChangeReport,show=all
   Available options:
      css        CSS filename to use, html format only (=css filename)
      linechars        The number of characters per line ()
      of        Output file name. MANDATORY (=filename)
      off        Output file format. (=format)
      papermb        Bottom paper margin (=number)
      paperml        Left paper margin (=number)
      papermr        Right paper margin (=number)
      papermt        Top paper margin (=number)
      papero        Paper orientation number. (=number)
      papers        Paper size name. (=name)
      style        Style name. (=name)
      what_types     ()
   Use 'show=option' to see description and acceptable values
Cleaning up.
Exiting.

$ gramps -O Johnson-Gilbert -a report -p "name=LastChangeReport,show=option"
/usr/lib/python3/dist-packages/gramps/gui/utils.py:45: PyGIWarning: PangoCairo was imported without specifying a version first. Use gi.require_version('PangoCairo', '1.0') before import to ensure that the right version gets loaded.
  from gi.repository import PangoCairo
Opened successfully!
Performing action: report.
Using options string: name=LastChangeReport,show=option
option 'option' not valid. Use 'show=all' to see all valid options.
Cleaning up.
Exiting.



-- 
World Peace Through Nuclear Pacification

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Gramps-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-users
https://gramps-project.org
Reply | Threaded
Open this post in threaded view
|

Re: Conflicting LastChangeReport options

Ross Gammon
Hi Ron,

On 11/17/2017 10:26 PM, Ron Johnson wrote:

>
> What's up with this?
>
> $ gramps -O Johnson-Gilbert -a report -p "name=LastChangeReport,show=all"
> /usr/lib/python3/dist-packages/gramps/gui/utils.py:45: PyGIWarning:
> PangoCairo was imported without specifying a version first. Use
> gi.require_version('PangoCairo', '1.0') before import to ensure that the
> right version gets loaded.
>   from gi.repository import PangoCairo
> Opened successfully!
> Performing action: report.
> Using options string: name=LastChangeReport,show=all
>    Available options:
>       css        CSS filename to use, html format only (=css filename)
>       linechars        The number of characters per line ()
>       of        Output file name. MANDATORY (=filename)
>       off        Output file format. (=format)
>       papermb        Bottom paper margin (=number)
>       paperml        Left paper margin (=number)
>       papermr        Right paper margin (=number)
>       papermt        Top paper margin (=number)
>       papero        Paper orientation number. (=number)
>       papers        Paper size name. (=name)
>       style        Style name. (=name)
>       what_types     ()
>    *Use 'show=option' to see description and acceptable values*
> Cleaning up.
> Exiting.
>
> $ gramps -O Johnson-Gilbert -a report -p "name=LastChangeReport,show=option"
> /usr/lib/python3/dist-packages/gramps/gui/utils.py:45: PyGIWarning:
> PangoCairo was imported without specifying a version first. Use
> gi.require_version('PangoCairo', '1.0') before import to ensure that the
> right version gets loaded.
>   from gi.repository import PangoCairo
> Opened successfully!
> Performing action: report.
> Using options string: name=LastChangeReport,show=option
> *option 'option' not valid. Use 'show=all' to see all valid options.*
> Cleaning up.
> Exiting.
I don't have the LastChangeReport available here, but I think "option"
should be replaced with the option you want more information about.

Try: $ gramps -O Johnson-Gilbert -a report -p
"name=LastChangeReport,show=papers" ?

Ross


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Gramps-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-users
https://gramps-project.org

signature.asc (817 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Conflicting LastChangeReport options

Ron Johnson
In reply to this post by Ron Johnson
On 11/18/2017 04:47 AM, Ross Gammon wrote:
Hi Ron,

On 11/17/2017 10:26 PM, Ron Johnson wrote:
What's up with this?

$ gramps -O Johnson-Gilbert -a report -p "name=LastChangeReport,show=all"
/usr/lib/python3/dist-packages/gramps/gui/utils.py:45: PyGIWarning:
PangoCairo was imported without specifying a version first. Use
gi.require_version('PangoCairo', '1.0') before import to ensure that the
right version gets loaded.
  from gi.repository import PangoCairo
Opened successfully!
Performing action: report.
Using options string: name=LastChangeReport,show=all
   Available options:
      css        CSS filename to use, html format only (=css filename)
      linechars        The number of characters per line ()
      of        Output file name. MANDATORY (=filename)
      off        Output file format. (=format)
      papermb        Bottom paper margin (=number)
      paperml        Left paper margin (=number)
      papermr        Right paper margin (=number)
      papermt        Top paper margin (=number)
      papero        Paper orientation number. (=number)
      papers        Paper size name. (=name)
      style        Style name. (=name)
      what_types     ()
   Use 'show=option' to see description and acceptable values
Cleaning up.
Exiting.

$ gramps -O Johnson-Gilbert -a report -p "name=LastChangeReport,show=option"
/usr/lib/python3/dist-packages/gramps/gui/utils.py:45: PyGIWarning:
PangoCairo was imported without specifying a version first. Use
gi.require_version('PangoCairo', '1.0') before import to ensure that the
right version gets loaded.
  from gi.repository import PangoCairo
Opened successfully!
Performing action: report.
Using options string: name=LastChangeReport,show=option
option 'option' not valid. Use 'show=all' to see all valid options.
Cleaning up.
Exiting.
I don't have the LastChangeReport available here, but I think "option"
should be replaced with the option you want more information about.

Try: $ gramps -O Johnson-Gilbert -a report -p
"name=LastChangeReport,show=papers" ?

That pointed me in the right direction.  But when I ran the command, I got:

$ gramps -O Johnson-Gilbert -a report -p "name=LastChangeReport,show=what_types"
/usr/lib/python3/dist-packages/gramps/gui/utils.py:45: PyGIWarning: PangoCairo was imported without specifying a version first. Use gi.require_version('PangoCairo', '1.0') before import to ensure that the right version gets loaded.
  from gi.repository import PangoCairo
Opened successfully!
Performing action: report.
Using options string: name=LastChangeReport,show=what_types
   Available values are:
      what_types     ()
     
Cleaning up.
Exiting.


That wasn't very useful.  So, I tried not using any options except "of=" and that worked like a charm.

$ gramps -O Johnson-Gilbert -a report -p "name=LastChangeReport,of=last.txt"
/usr/lib/python3/dist-packages/gramps/gui/utils.py:45: PyGIWarning: PangoCairo was imported without specifying a version first. Use gi.require_version('PangoCairo', '1.0') before import to ensure that the right version gets loaded.
  from gi.repository import PangoCairo
Opened successfully!
Performing action: report.
Using options string: name=LastChangeReport,of=last.txt
Cleaning up.
Exiting.

$ dir last.txt
-rw-rw-r-- 1 ron ron 9164 2017-11-18 08:47:12 last.txt


-- 
World Peace Through Nuclear Pacification

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Gramps-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-users
https://gramps-project.org
Reply | Threaded
Open this post in threaded view
|

Re: Conflicting LastChangeReport options

prculley
After following the code through the parsing process, I discovered that the command to create the report is

gramps -O Johnson-Gilbert -a report -p name=LastChangeReport,of=c:\last.txt,off=txt,what_types='True,True,True,False,True,True,True,True'

The 'what_types' part was not intuitive at all...  The list of 8 True/False choices is for the eight categories (People, Families, Places, Events, Media, Sources, Notes, Citations), and tells the report to include the category.  Note that this is for the recently updated version, the previous version only had 6 categories.

I've updated the wiki for that report with an example string.

Paul C.

On Sat, Nov 18, 2017 at 8:52 AM, Ron Johnson <[hidden email]> wrote:
On 11/18/2017 04:47 AM, Ross Gammon wrote:
Hi Ron,

On 11/17/2017 10:26 PM, Ron Johnson wrote:
What's up with this?

$ gramps -O Johnson-Gilbert -a report -p "name=LastChangeReport,show=all"
/usr/lib/python3/dist-packages/gramps/gui/utils.py:45: PyGIWarning:
PangoCairo was imported without specifying a version first. Use
gi.require_version('PangoCairo', '1.0') before import to ensure that the
right version gets loaded.
  from gi.repository import PangoCairo
Opened successfully!
Performing action: report.
Using options string: name=LastChangeReport,show=all
   Available options:
      css        CSS filename to use, html format only (=css filename)
      linechars        The number of characters per line ()
      of        Output file name. MANDATORY (=filename)
      off        Output file format. (=format)
      papermb        Bottom paper margin (=number)
      paperml        Left paper margin (=number)
      papermr        Right paper margin (=number)
      papermt        Top paper margin (=number)
      papero        Paper orientation number. (=number)
      papers        Paper size name. (=name)
      style        Style name. (=name)
      what_types     ()
   Use 'show=option' to see description and acceptable values
Cleaning up.
Exiting.

$ gramps -O Johnson-Gilbert -a report -p "name=LastChangeReport,show=option"
/usr/lib/python3/dist-packages/gramps/gui/utils.py:45: PyGIWarning:
PangoCairo was imported without specifying a version first. Use
gi.require_version('PangoCairo', '1.0') before import to ensure that the
right version gets loaded.
  from gi.repository import PangoCairo
Opened successfully!
Performing action: report.
Using options string: name=LastChangeReport,show=option
option 'option' not valid. Use 'show=all' to see all valid options.
Cleaning up.
Exiting.
I don't have the LastChangeReport available here, but I think "option"
should be replaced with the option you want more information about.

Try: $ gramps -O Johnson-Gilbert -a report -p
"name=LastChangeReport,show=papers" ?

That pointed me in the right direction.  But when I ran the command, I got:

$ gramps -O Johnson-Gilbert -a report -p "name=LastChangeReport,show=what_types"
/usr/lib/python3/dist-packages/gramps/gui/utils.py:45: PyGIWarning: PangoCairo was imported without specifying a version first. Use gi.require_version('PangoCairo', '1.0') before import to ensure that the right version gets loaded.
  from gi.repository import PangoCairo
Opened successfully!
Performing action: report.
Using options string: name=LastChangeReport,show=what_types
   Available values are:
      what_types     ()
     
Cleaning up.
Exiting.


That wasn't very useful.  So, I tried not using any options except "of=" and that worked like a charm.

$ gramps -O Johnson-Gilbert -a report -p "name=LastChangeReport,of=last.txt"
/usr/lib/python3/dist-packages/gramps/gui/utils.py:45: PyGIWarning: PangoCairo was imported without specifying a version first. Use gi.require_version('PangoCairo', '1.0') before import to ensure that the right version gets loaded.
  from gi.repository import PangoCairo
Opened successfully!
Performing action: report.
Using options string: name=LastChangeReport,of=last.txt
Cleaning up.
Exiting.

$ dir last.txt
-rw-rw-r-- 1 ron ron 9164 2017-11-18 08:47:12 last.txt


-- 
World Peace Through Nuclear Pacification

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Gramps-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-users
https://gramps-project.org


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Gramps-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-users
https://gramps-project.org
Reply | Threaded
Open this post in threaded view
|

Re: Conflicting LastChangeReport options

Ron Johnson
In reply to this post by Ron Johnson
On 11/19/2017 03:10 PM, Paul Culley wrote:
> After following the code through the parsing process, I discovered that
> the command to create the report is
>
> gramps -O Johnson-Gilbert -a report -p
> name=LastChangeReport,of=c:\last.txt,off=txt,what_types='True,True,True,False,True,True,True,True'
>
> The 'what_types' part was not intuitive at all...

LOL, Mr. Understatement...  :)
> The list of 8 True/False choices is for the eight categories (People,
> Families, Places, Events, Media, Sources, Notes, Citations), and tells the
> report to include the category.  Note that this is for the recently
> updated version, the previous version only had 6 categories.

--
World Peace Through Nuclear Pacification


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Gramps-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-users
https://gramps-project.org