Smutty

MVC Framework

SmuttyManager

Smutty provides a management interface which you can us for things like getting CRUD access to any models that you have in your application. To try it just visit the URL {MYAPP}/smutty (when this feature is enabled, see below).

You can view a demo here (login: demo/demo)

After logging in you'll see the home page...


(Click to enlarge)

If you follow the links you'll see that you can now perform all of the basic CRUD operations on your models! Without having to write any of the code yourself! This is similair to RoR scaffolding, but is actually more a copy of the django idea (which i think is much better).

Enabling Smutty Manager

Currently, this feature is disabled by default. But to allow access to it just use the following setting in your app.cfg file. When enabled, by default access is restricted to users who have logged in to the application.

manager = true

Permissions

If you want to restrict access to this interface to only certain users then you can do so by using the following config setting.

manager.users = foo, bar

The setting takes a commer seperated list of users who are allowed access. If this statement is not included in the config file then all users will be granted access.

Anonynous Access

At the moment by default Smutty requires a valid login to access models, but you can specify a parameter in your app.cfg to allow anonymous access if you like (this may be useful when first starting an application and no login system has been created yet).

manager.allowAnonymous = true

NOTE: This setting will override the models.users permissions.

Links: Post a comment

Useful Pages

Links