mirror of
https://github.com/evennia/evennia.git
synced 2026-04-01 21:47:17 +02:00
Adding initial data via Django's syncdb facility. We will no longer distribute a SQLite DB in the near future in favor of this cross-platform alternative. Also in this commit is a crash fix for @dig with SQLite.
This commit is contained in:
parent
26a354204c
commit
3292405fcb
7 changed files with 38 additions and 1 deletions
|
|
@ -441,6 +441,7 @@ class Object(models.Model):
|
|||
try:
|
||||
return self.location
|
||||
except:
|
||||
functions_general.print_errmsg("Object '%s(#%d)' has invalid location: #%s" % (self.name,self.id,self.location_id))
|
||||
return False
|
||||
|
||||
def get_attribute_value(self, attrib, default=False):
|
||||
|
|
|
|||
2
apps/objects/sql/object.sql
Normal file
2
apps/objects/sql/object.sql
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
INSERT INTO "objects_object" VALUES(1,'Wizard','Wizard',1,0,2,1,'',2,'','CONNECTED','2007-04-25');
|
||||
INSERT INTO "objects_object" VALUES(2,'Limbo','Limbo',1,NULL,NULL,2,'Welcome to your new Evennia-based game. From here you are ready to begin development. If you should need help or would like to participate in community discussions, visit http://evennia.com.',NULL,'','','2007-04-25');
|
||||
Loading…
Add table
Add a link
Reference in a new issue