Commit graph

488 commits

Author SHA1 Message Date
Greg Taylor
e89a30f511 Woohoo, got rid of some delayed imports due to the circular import cases no longer existing. 2008-06-15 20:34:09 +00:00
Greg Taylor
a954069776 Finished moving stuff around, things should be in mostly working order now. 2008-06-15 20:31:25 +00:00
Greg Taylor
fd264667b8 Whoops. Broken for a few minutes. 2008-06-15 20:19:08 +00:00
Greg Taylor
ff98ede98f Moving the logging system to src/ 2008-06-15 20:15:12 +00:00
Greg Taylor
5064d0cacc Moved defines_globals to src/ 2008-06-15 20:04:06 +00:00
Greg Taylor
e6e84c2ee5 Quick PEP 8 related change. 2008-06-15 19:55:38 +00:00
Greg Taylor
811016867b Comsys moved to src/ 2008-06-15 19:41:27 +00:00
Greg Taylor
4bb00013ae Even more death and destruction. A lot more stuff moved to src/. A lot more bugs probably introduced. 2008-06-15 19:38:39 +00:00
Greg Taylor
d3808c1ea2 Committin a 'working' checkpoint before I break more stuff. 2008-06-15 19:06:31 +00:00
Greg Taylor
ccf078b5c8 Getting rid of functions_help in favor of the new manager. Removed an un-needed import from commands/general. 2008-06-15 17:30:42 +00:00
Greg Taylor
d620f3b1f0 The first of many re-arrangements. Eliminated gameconf in favor of using the manager on ConfigValue. Moved some commands while I was at it. There are going to be crash bugs that need to be found and worked out. 2008-06-15 17:21:02 +00:00
Greg Taylor
8a1204ce76 One more prop setting. 2008-06-15 05:31:35 +00:00
Greg Taylor
a525bf4134 Whoops, forgot one. 2008-06-15 04:42:54 +00:00
Greg Taylor
ed1510c4a7 Splitting web stuff off into a separate apps directory. This stuff will end up being replaced/re-written, it's ancient and really badly done. 2008-06-15 04:40:14 +00:00
Greg Taylor
75b39ada13 Adding a coding style document. A lot of the code doesn't follow this right now, we'll need to fix that! :) 2008-06-15 03:14:56 +00:00
Greg Taylor
652c7d57a5 whoops, forgot one, plus updating props. 2008-06-15 03:03:30 +00:00
Greg Taylor
43f0ae6af6 Outlining managers. I know some of these managers sub-modules only have one file in them, but let's keep the convention for consistency. 2008-06-15 03:01:58 +00:00
Greg Taylor
8ba1a93eeb Fix the interactive mode line in here to actually be interactive. We'll need a cross-platform startup script soon, or at least one that takes an argument for interactive mode. 2008-06-15 02:51:56 +00:00
Greg Taylor
7f895133ec This still mentioned asynchat, updated now that we're using Twisted. 2008-06-15 02:48:21 +00:00
Greg Taylor
3ad6a78281 Show current revision on the 'version' command. Once we go to releases, this will be different, but for now it's informative for developers and early adopters. Assumes they have Subversion installed, otherwise the version is Unknown. 2008-06-14 04:37:33 +00:00
Greg Taylor
82f35f3b84 As is in Penn (I think), we'll use two underscores to denote a hidden server attribute. Finished up moving the two hidden attributes that I know need to be hidden and read-only over to the double underscore names as per Issue 27. 2008-06-14 04:24:53 +00:00
Greg Taylor
131f6410d4 Fix some formatting affected by the space conversion. IMPORTANT: Channel list attributes are now stored via Django's bundled version of simplejson instead of cPickle/pickle. Pickle isn't unicode-capable in 2.5 and lower, plus JSON is going to be a lot more accessible for web-stuff. 2008-06-14 04:18:20 +00:00
Greg Taylor
ffe9a563e0 Removing mixins.py, as it's not in use. We now have a separate ConnectScreen model under the config app to store connect screens. ConfigValue's value fields are now CharFields instead of TextFields for the sake of efficiency and sanity. It is strongly recommended that you reset your config app and syncdb to load the fixture. 2008-06-14 03:15:41 +00:00
Greg Taylor
f1760e6521 I guess it helps if I actually add the file. 2008-06-14 02:26:40 +00:00
Greg Taylor
813c50652e Splitting some of the stuff out of settings.py into settings_common.py (new file) to hold directives that need to be versioned. It sucks having to tell people to re-build their settings.py file from settings.py.dist when changes are made. 2008-06-14 02:26:14 +00:00
loki77
3fe644ef17 Indentation change 3-4 spaces.
Possible files that need to be cleanedup;
commands/info.py:cmd_list
commands/general.py:cmd_who
commands/comsys.py:cmd_who

cmdtable.py
ansi.py
2008-06-13 19:52:29 +00:00
loki77
740d715c72 Modified for 4 space indentation. 2008-06-13 19:41:23 +00:00
loki77
ad009e20ab basicobject.py
---------------
  - Checks for NULL description on objects- if Null, it doesn't print the extra line any more.
  - Made the checks for contents a little less ambiguous

cmdhandler.py
--------------
  - Added new method 'parse_command' which takes a command string and tries to break it up based on common command parsing rules.  Mostly complete, but could use some work on the edge cases.  Check out the docstring on the function- I tried to make it fairly well documented.
  - Changed the check for 'non-standard characters' to just return, rather than throw an Exception.  Not sure if this causes any issues, but I noticed that when you hit enter without entering a command it would trigger this code.  Now it just fails silently.
  - The handle function now calls the parse_command function now and stores the results in parsed_input['parsed_command'].  This then gets put into cdat['uinput'] at the end of handle() like before.  The old data in parsed_input is still there, this is just a new field.
  - Added cdat['raw_input'] to pass the full, untouched command string on.  This is also stored in parsed_input['parsed_command']['raw_command'] so not sure fi this is necessary any longer, probably not.

cmdtable.py
------------
  - Just cleaned it up a bit and straightened out the columns after changing 3-4 space indentation.

apps/objects/models.py
-----------------------
  - set_description now sets the description attribute to 'None' (or Null in the db) when given a blank description.  This is used for the change mentioned above in basicobject.py
  - get_description now returns None if self.description is None
  - used defines_global in the comparison methods like is_player

functions_db.py
----------------
  - Changed import defines_global as defines_global to just 'import defines_global'- wasn't sure why this was this way, if I broke something (I didn't seem to) let me know.
  - renamed player_search to player_name_search.  Removed the use of local_and_global_search inside of it.  local_and_global_search now calls it when it receives a search_string that starts with *.
  - alias_search now only looks at attributes with attr_name == ALIAS.  It used to just look at attr_value, which could match anything, it seemed.
  - added 'dbref_search'
  - local_and_global_search changes:
    - Now uses dbref_search & player_search if the string starts with "#" or "*" respectively
    - Changed when it uses dbref_search to whenever the search_string is a dbref.  It used to check that it was a dbref, and that search_contents & search_location were set, but I *believe* in most MU*'s when you supply a dbref it never fails to find the object.

commands/unloggedin.py
-----------------------
  - removed hardcoded object type #'s and started using defines_global instead
  - when creating a new account, made sure that no object with an alias matching the player name requested exists.  This is behavior from TinyMUSH, and I think most MUSHs follow this, but if not this is easy enough to change back.

commands/general.py
--------------------
  - Rewrote cmd_page:
    - New Features
      - Page by dbref
      - Page multiple people
      - pose (:) and no space pose (;) pages
      - When someone hits page without a target or data, it now will tell the player who they last paged, or say they haven't paged anyone if they don't have a LASTPAGED
    - uses parse_command, made it a lot easier to work through the extra functionality added above
    - When there are multiple words in a page target, it first tries to find a player that matches the entire string.  If that fails, then it goes through each word, assuming each is a separate target, and works out paging them.

commands/objmanip.py
---------------------
  - I started to muck with cmd_name & cmd_page, but decided to hold off for now.  Largely, if everyone is cool with the idea that names & aliases should be totally unique, then we need to go ahead and re-write these.  I'll do that if everyone is cool with it.
2008-06-13 18:15:54 +00:00
Greg Taylor
87fb121427 Make Evennia start correctly on the latest version of Twisted. There is a logging snafu that exists with the latest Twisted, and it was only dumb luck that the server started on previous versions of the framework. The ticket detailing this problem is at: http://twistedmatrix.com/trac/ticket/3289
Let me know if this breaks your setup!
2008-06-10 20:46:17 +00:00
Greg Taylor
38f8225a37 Moving application initial data over to JSON and fixtures. This is much better than using those raw SQL files that might not work with all RDBMs. The Objects app needs to be converted to use fixtures as well, but I've got something bad data in there that's causing some issues (which I'm working on hunting down). 2008-02-09 02:49:03 +00:00
Greg Taylor
ea88ace9fa Updating some models to use max_length instead of the deprecated maxlength. 2008-02-09 02:35:28 +00:00
Greg Taylor
57d7a8f41a Trying to see if this will ignore changes to startup.sh so I don't keep accidentally committing new ones. 2007-10-27 03:26:51 +00:00
Greg Taylor
20e4c29747 Whoops, accidentally committed a change to startup.sh 2007-10-27 03:26:03 +00:00
Greg Taylor
4d94132c54 Moved the connect screen to the connect_screen config directive. Made the conf_value field on the configvalue model a TextField so we're not getting truncated at 255 as with a CharField. This means you'll need to delete your config tables and re-sync. 2007-10-27 03:25:42 +00:00
Michael King
f3b4422990 Re-tabbed managers.py under reload (was set to 4 spaces) 2007-09-14 17:17:19 +00:00
Greg Taylor
3ae3bd6884 Bad logic for object recycling. Boo me. Adjusted create_object() and @nextfree. 2007-09-14 16:32:38 +00:00
Michael King
74a3a01429 Moved object and exit clearing to the destroy method instead of
the delete method.  This may change later, but for simplicity's sake,
this is how we're doing it for now.
2007-09-14 14:09:25 +00:00
Michael King
26beacb419 Added handling of django's unicode insistance. 2007-09-14 13:59:04 +00:00
Greg Taylor
9c3ba7f025 Updated some broken urls in the settings.py.dist file. Thanks to marcos for reporting. 2007-09-14 03:33:15 +00:00
Michael King
02ffa832f6 Did some work on the reload manager, as well as removed
the rollback importer from server.py
2007-09-06 14:58:18 +00:00
Michael King
5ecbff32f6 Renamed callback to a more sensible name. 2007-09-06 13:24:09 +00:00
Michael King
94b449466a Added mixins for reload development 2007-09-05 16:52:09 +00:00
Michael King
4ab9258bbc Ignoring git repository for local branching 2007-09-05 14:22:56 +00:00
Michael King
7e7f164c71 Moved @boot to a more sensible place. 2007-08-09 13:12:49 +00:00
Michael King
684ae521b7 Added @boot.
Currently, @boot will boot the first username match it comes across, if connected.

It will not boot non-player objects, and it will not allow staff to boot other staff.
2007-08-07 19:19:31 +00:00
Michael King
3fe64c1f34 Cleaned up the revision information for aesthetics. 2007-08-07 17:30:35 +00:00
Michael King
6a172edb03 Finalized EVENNIA_VERSION to include svn revision 2007-08-07 17:24:25 +00:00
Michael King
02b19ee4b0 Ooops. Forgot the trailing $ in the SVN keyword. 2007-08-07 17:22:28 +00:00
Michael King
2abc0adff9 Moved Revision outside of VERSION global for clean up 2007-08-07 17:20:54 +00:00
Michael King
c88a89bce1 Added Revision keyword to defines_global, and set svn:keywords property on defines_global.py 2007-08-07 17:18:45 +00:00