Skip to content

Commit

Permalink
* src/RelImage.py: replace system call with Utils.search_for
Browse files Browse the repository at this point in the history
* src/Utils.py: added search_for to look for an executable in the current
path

* FAQ: removed question 18 (how fast is GRAMPS)
* src/PeopleStore.py: set sort data for top level nodes. Allows the first
and last nodes to be sorted properly.


svn: r2374
  • Loading branch information
Don Allingham committed Nov 25, 2003
1 parent 028b19f commit c23723a
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 10 deletions.
13 changes: 4 additions & 9 deletions FAQ
Original file line number Diff line number Diff line change
Expand Up @@ -188,12 +188,7 @@ We have found that on a typical system, GRAMPS tends to bog down after around
15,000 users. Again, this is dependant on how much memory you have.


17. How fast is GRAMPS?

No idea.


18. My database is really big.
17. My database is really big.
Is there a way around loading all the data into memory?

Currently, there is no way around it. However, this is our biggest priority
Expand All @@ -202,7 +197,7 @@ in the next stable release (1.2) which will dramatically improve performance
in both speed and memory usage.


19. Can I create custom reports/filters/whatever?
18. Can I create custom reports/filters/whatever?

Yes. There are many levels of customization. One is creating or modifying
the templates used for the reports. This gives you some control over
Expand All @@ -216,7 +211,7 @@ reports, research tools, import/export filters, etc. This assumes some
knowledge of programming in Python.


20. Why is GRAMPS running so slowly?
19. Why is GRAMPS running so slowly?

If GRAMPS seems too slow to you, it is most likely that you have a large
database. Currently, GRAMPS loads all the database into memory, therefore
Expand All @@ -230,7 +225,7 @@ with the implementation of the real database backend, please don't hesitate
to email us at [email protected]


21. Why are non-latin characters displayed as garbage in PDF/PS reports?
20. Why are non-latin characters displayed as garbage in PDF/PS reports?

This is a known problem -- PS (and PDF) have builtin fonts which pretty much
reflect the latin-1 charset. Any font in principle could be used with PS/PDF
Expand Down
1 change: 1 addition & 0 deletions src/PeopleStore.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ def add(self,data,select=0):
self.tree_open[name] = 0
self.tree_list[name] = []
self.model.set_value(top,0,name)
self.model.set_value(top,5,name.upper())
self.model.set_value(top,_BCOL,pango.WEIGHT_BOLD)
self.tree_roots[name] = top

Expand Down
2 changes: 1 addition & 1 deletion src/RelImage.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,5 +204,5 @@ def is_pil():
#
#-------------------------------------------------------------------------
def is_cnv():
return not os.system('which convert>/dev/null')
return Utils.search_for('convert')

7 changes: 7 additions & 0 deletions src/Utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -586,6 +586,13 @@ def gformat(val):
decimal_point = locale.localeconv()['decimal_point']
return_val = "%.3f" % val
return return_val.replace(decimal_point,'.')

def search_for(name):
for i in os.environ['PATH'].split(':'):
fname = os.path.join(i,name)
if os.access(fname,os.X_OK):
return 1
return 0

#-------------------------------------------------------------------------
#
Expand Down
2 changes: 2 additions & 0 deletions src/gramps.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@

try:
locale.setlocale(locale.LC_ALL,'')
except locale.Error:
pass
except ValueError:
pass

Expand Down

0 comments on commit c23723a

Please sign in to comment.