Bug 496598

Summary: Using a configuration file for pem allowing the user to change values
Product: [Fedora] Fedora Reporter: sankarshan <sankarshan.mukhopadhyay>
Component: pemAssignee: kushaldas@gmail.com <mail>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: 10CC: mail, pj.pandit
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-06-23 07:20:24 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description sankarshan 2009-04-20 09:35:00 UTC
Description of problem:

Currently pem uses the '-f' option to allow specifying a file to store expenses in. Is it possible to have a configuration file for pem that allows such values to be stored and controlled via the component file

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. Install pem
2. Try to locate a configuration file via man pem
3.
  
Actual results:

No configuration file.

Expected results:

A configuration file would be useful

Additional info:

Comment 1 pjp 2009-04-20 11:56:57 UTC
(In reply to comment #0)
> Currently pem uses the '-f' option to allow specifying a file to
> store expenses in. Is it possible to have a configuration file for
> pem that allows such values to be stored and controlled via the
> component file

 - Well actually, `-f <file-name>' is *not* the default storage for pem.
   The option is meant to facilitate the custom storage.

 - By default, pem stores the expense records in a CSV file named after
   the current month and located under $HOME/.pem/

    $HOME/.pem/<current-year>/<current-month>

 - This structure makes it scale through 100 years starting from 00 to 99.

 - Fixing this to a single file sounds kind of dicey to me, for it'll pose
   problems while generating different kinds of reports.

 - Yet, the idea of <different-profiles> for a *single* user is kind of inviting.
   For that way pem can be used for more than one kinds of expenses, like
   personal/domestic/business etc. No promises on that though.

Thank you.