Added warning if running as root.

svn: r702
This commit is contained in:
Don Allingham 2002-01-17 14:59:47 +00:00
parent 9a0c34dfb5
commit 302745652c
3 changed files with 11 additions and 4 deletions

View File

@ -149,12 +149,12 @@ class SelectChild:
if dday.getYearValid(): if dday.getYearValid():
if pbday.getYearValid(): if pbday.getYearValid():
# reject if childs birth date > parents deathday + 3 # reject if childs birth date > parents deathday + 3
if pdday.getLowYear() > dday.getHighYear()+3: if pbday.getLowYear() > dday.getHighYear()+3:
continue continue
if pdday.getYearValid(): if pdday.getYearValid():
# reject if childs death date > parents deathday + 150 # reject if childs death date > parents deathday + 150
if pbday.getLowYear() > dday.getHighYear() + 150: if pdday.getLowYear() > dday.getHighYear() + 150:
continue continue
person_list.append(person) person_list.append(person)

View File

@ -6348,6 +6348,7 @@ Unknown
<widget> <widget>
<class>GtkButton</class> <class>GtkButton</class>
<name>button98</name> <name>button98</name>
<tooltip>Creates the new child and adds him or her as a child of the family</tooltip>
<can_default>True</can_default> <can_default>True</can_default>
<has_default>True</has_default> <has_default>True</has_default>
<can_focus>True</can_focus> <can_focus>True</can_focus>
@ -6363,6 +6364,7 @@ Unknown
<widget> <widget>
<class>GtkButton</class> <class>GtkButton</class>
<name>button99</name> <name>button99</name>
<tooltip>Adds the new person as a child of the family and displays the standard person dialog to allow for more data to be entered</tooltip>
<can_default>True</can_default> <can_default>True</can_default>
<can_focus>True</can_focus> <can_focus>True</can_focus>
<signal> <signal>
@ -6371,7 +6373,7 @@ Unknown
<object>addChild</object> <object>addChild</object>
<last_modification_time>Tue, 15 Jan 2002 14:31:28 GMT</last_modification_time> <last_modification_time>Tue, 15 Jan 2002 14:31:28 GMT</last_modification_time>
</signal> </signal>
<label>Edit</label> <label>Add Data</label>
<stock_pixmap>GNOME_STOCK_PIXMAP_PROPERTIES</stock_pixmap> <stock_pixmap>GNOME_STOCK_PIXMAP_PROPERTIES</stock_pixmap>
</widget> </widget>

View File

@ -1996,6 +1996,11 @@ def main(arg):
global sort_column, sort_direct global sort_column, sort_direct
gtk.rc_parse(const.gtkrcFile) gtk.rc_parse(const.gtkrcFile)
if os.getuid() == 0:
msg = _("You are running GRAMPS as the 'root' user.\nThis account is not meant for normal application use.")
gnome.ui.GnomeWarningDialog(msg)
database = RelDataBase() database = RelDataBase()
Plugins.load_plugins(const.pluginsDir) Plugins.load_plugins(const.pluginsDir)