Michael King
7f3a8870f0
I learned something I didn't know about Django:
...
Apparently, if you retrieve the same model instance with two different references,
they don't equate with is or ==, you need to compare the id's. I could be misreading the
symptoms, but this is what I had to do to get it to recognize that the home of the object in
question was its current (going away) location, and act appropriately.
2007-08-07 17:08:31 +00:00
Michael King
13b19b9a16
Removed DEFAULT_HOME reference from defines_global
2007-08-07 16:53:26 +00:00
Michael King
0c2648edaa
Removed DEFAULT_HOME from settings.py into a server configuration directive via the confg app.
...
Changed clear_objects to reflect default home changes.
2007-08-07 16:52:47 +00:00
Michael King
8b8099a9db
Added DEFAULT_HOME value of 2 to settings.py.dist
...
Added import of DEFAULT_HOME from settings into defines_global
Removed clear_players()
Removed clear_things()
Created a more general clear_objects():
* obj.clear_objects()
* Everything with obj as its location will be moved
to its home.
* If the home is the obj, then said objects will be
moved to DEFAULT_HOME, if it exists.
* If the said objects do not have a home, they will
also be moved to DEFAULT_HOME.
2007-08-07 16:28:22 +00:00
Michael King
5f962b69a0
Added clear_things, clear_players and clear_exits to Object class.
...
* obj.clear_things() relocates all things contained by obj
* obj.clear_players() relocates all players contained by obj
* obj.clear_exits() destroys all exits to and from obj
2007-08-06 20:00:41 +00:00
Michael King
d2136ec135
Adjusted startup.sh to use the BASE_PATH from settings.py
2007-08-06 18:53:06 +00:00
Michael King
c5208656f8
Fixed missing quote on line 158.
2007-08-06 18:14:37 +00:00
Greg Taylor
2e397df4d5
We now have user authentication via the web interface. @whee.
2007-08-02 19:37:16 +00:00
Greg Taylor
be4e0069a6
Adding comments.
2007-07-31 19:32:03 +00:00
Greg Taylor
edfae1349a
Eh, we don't really need a staff link on the codebase example. We'll leave that for each game to worry about, as their staff situation may differ.
2007-07-31 19:25:32 +00:00
Greg Taylor
65e1b85c6f
Some cosmetics. Also make searching news match against Title and Body for now. Will eventually have some checkboxes to with the option to do both or only one.
2007-07-31 18:39:48 +00:00
Greg Taylor
85d13fe16b
I forgot to add the flatpages templates directory, whoops. Also fix a pluralization cosmetic thing in the admin interface for News entries.
2007-07-31 18:28:42 +00:00
Greg Taylor
613edc774f
Yay, the news system is looking good now. We'll re-visit it later to add searching/sorting by news categories and stuff.
2007-07-31 18:25:24 +00:00
Greg Taylor
762e0f83bc
The news archives and searching news is now operational. Next up, flatpages.
2007-07-31 14:59:00 +00:00
Greg Taylor
aad1d3d0c4
More commentage.
2007-07-31 13:23:44 +00:00
Greg Taylor
daecf0b4a3
Elaborating on some settings with more comments.
2007-07-31 13:10:19 +00:00
Greg Taylor
648bee599e
Improvements on the news app. It's not nearly done yet, don't bother playing with it for a while unless you're really curious and want to see ugly, un-refined code :)
2007-07-30 20:30:16 +00:00
Greg Taylor
9db148f98c
Add a placeholder page, tbi.html, and a tbi view /tbi, that can be used to link to when a particular web feature isn't complete yet rather than leaving dead links.
2007-07-30 15:23:42 +00:00
Greg Taylor
6aab3a4145
Added a view for looking at an individual news entry. It's ugly, one of you artsy people should make it less so :)
2007-07-26 15:50:24 +00:00
Greg Taylor
1afcd6bf99
We've now got a sane template structure. webtemplates/base.html is the parent of all pages. index.html in that directory is the default page, and sub-directories from there will hold the templates for various applications. Notice how in index.html and the file in the news directory are put together. It's really simple, see the Template documentation on djangoproject.com for more in-depth details.
2007-07-26 13:52:46 +00:00
Greg Taylor
a3ac4ff17c
Word wrap is messing things up a bit. Disabling it for now until we have more time to check this out.
2007-07-26 12:48:44 +00:00
Greg Taylor
b9e543f6fd
Temporarily removing channel emits to avoid circular dependencies. Pfft.
2007-07-25 15:06:04 +00:00
Greg Taylor
be05772713
Script methods will now take a dictionary with keys rather than hard arguments. This will hopefully allow for a bit more flexibility.
2007-07-17 15:58:19 +00:00
Greg Taylor
fadf3933af
Move the presentation part of the 'look' command out to the new scripting system. You can now make different scripted objects appear vastly different by overriding basicobject's return_appearance (or any of its submethods). Also fixed word wrapping, and we are now wrapping descriptions to 78 characters by default. We'll see how gracefully it handles this, and we might eventually apply it to all output.
2007-07-17 14:39:10 +00:00
Greg Taylor
fa4cc4cab3
Make config values not case-sensitive.
2007-07-17 13:26:00 +00:00
Greg Taylor
6d8d280248
Cosmetics.
2007-07-16 19:12:38 +00:00
Greg Taylor
ad92c85067
Ok, I really should test this stuff before committing. send_cmessage() should now handle invalid channels.
2007-07-16 19:09:10 +00:00
Greg Taylor
26bec8a281
Third time's a charm?
2007-07-16 18:58:30 +00:00
Greg Taylor
4c6f7b9db8
Not a very good solution, but it'll do for now.
2007-07-16 18:55:20 +00:00
Greg Taylor
aed889b11c
Attempt #2
2007-07-16 18:52:55 +00:00
Greg Taylor
357ef3a250
Added two new channels: Errors and Info. These will now emit stuff that is sent via log_infomsg and log_errmsg.
2007-07-16 18:49:57 +00:00
Greg Taylor
debb34aae9
You may now specify a list of ports in settings.py to listen on instead of just a straight integer value. You'll need to copy GAMEPORTS from settings.py.dist if you have an existing game.
2007-07-15 01:16:02 +00:00
Greg Taylor
270f7e7128
Comment clarification.
2007-07-12 17:44:43 +00:00
Greg Taylor
94779a86a5
Added new SCRIPT_ROOT variable to settings.py, you'll need to copy this over from settings.py.dist if you're running a test game. We also now have rudimentary support for default, enter, and use locks per the basicobject.py file. Take a look at the example locks in there. A returned boolean value determines whether the player passes. Make sure you emit an error message within the lock if you're going to return false. We will have simple in-game attribute or dbref locks via an @lock command similar to MUX/MUSH that override scripted behaviors.
2007-07-12 13:45:23 +00:00
Greg Taylor
679ef8dc74
Whoops, fixed some comment stuff.
2007-07-10 15:34:36 +00:00
Greg Taylor
9c57e1cf7a
Adding some more script hooks.
2007-07-10 15:34:07 +00:00
Greg Taylor
ebb145654f
Some more work towards having a working news module. This isn't anywhere near ready yet!
2007-06-12 03:37:22 +00:00
Greg Taylor
115a420cee
The default front webpage now has some good examples on how to add in custom functionality. You'll obviously want to customize this for your game, but it'll be a good start.
2007-06-12 02:35:37 +00:00
Greg Taylor
dfc358ada8
WINDOWS USERS: (This applies to UNIX/Linux as well, but is probably more interesting to Windows users). You may now open up your settings.py file and add SERVE_MEDIA=True to serve media directly from Django. This is useful when you're running Django's built-in development server and want to be able to get to your CSS/Images, or if you have an apache server and don't want to configure a media location. Note that this is NOT something you want in a production environment, as it's slow, and may pose security risks. However, this will get you up and running very quickly for web work. The new setting, SERVE_MEDIA, is defaulted to False and is in the latest settings.py.dist file.
2007-06-12 01:12:26 +00:00
Greg Taylor
a1f46603d0
The svn:ignore property got blasted in trunk somehow. Re-adding the old values.
2007-06-11 17:20:59 +00:00
Michael King
adbc6ec2bb
Removed references to Attribute class from cmd_alias.
...
Removed Attribute import
2007-06-11 17:07:31 +00:00
Michael King
7052d313b6
Added feedback for @alias if the player does not have control over the
...
target.
Gave the success results for @alias some clarity.
2007-06-11 17:03:53 +00:00
Greg Taylor
836a2e6fc3
Updated some comments to make them a little more clear.
2007-06-11 16:01:21 +00:00
Michael King
0980408e1c
Aesthetics finalized for cmd_alias
...
Added RollbackImporter skeleton class to Evennia Server class
2007-06-11 15:49:05 +00:00
Greg Taylor
6015aca8db
Fix for issue 29, duplicate session removal no longer results in the loss of the CONNECTED flag.
2007-06-11 15:42:47 +00:00
Michael King
8991d4ecac
Merged in working changes to alias. Needs better error messages, but
...
it's in there.
2007-06-11 14:57:02 +00:00
Michael King
9648af6521
Added settings.py to svn:ignore
...
Merged in updates to branch
2007-06-11 14:48:57 +00:00
Michael King
1d14834a3b
Merged first version of alias-command from branch.
2007-06-11 12:50:42 +00:00
Greg Taylor
b1bb2b7927
Fixes to get 'inventory' working again. Whoops.
2007-06-11 02:36:34 +00:00
Greg Taylor
a4b6973c7a
Forgot to include some context stuff. You'll need to re-create your settings.py from the settings.py.dist file.
2007-06-10 16:01:35 +00:00