The Glashammer User Manual

Sitting in front of the computer for many hours takes it’s tоll. The lack of physical activity may result many aches. That’s why you should check which is going to be the best gaming desk for you. Also note to read the user manual before setting it.

Getting Started Guide
The getting started guide.
Introduction
A verbose introduction into Glashammer and the general principles it adheres to.
Setting up an application
Describes the details of using Glashammer’s core features to create a WSGI application.
gh-admin utility
Information about the gh-admin administration script.
Rules, endpoints and views
Set up how URLs are served in your application.
Templating
How to use and add templates to a Glashammer applciation.
Events
Learn how to use builtin Glashammer events, and how to create and use your own.
Configuration Variables
Glashammer applications are configurable by default, and this chapter will show you how to add and use your own configuration variables.
Serving static files
This chapter will describe how to serve static files through WSGI, and then how to override that with real web server serving.
Testing Glashammer Applications
This chapter describes the utilities provided by Glashammer to ease unit testing.
Bundles
Glashammer is extended by the way of “bundles”. This chapter describes the ready-made bundles available with Glashammer, and explains how to create your own reusable compoents.
Form handling and validation
Using the form framework with Glashammer.
Database Support
Using databases with SQLAlchemy, Storm, or others.
Sessions
Use Glashammer sessions to store session data.
Internationalization
Using Glashammer’s internationalization framework to translate your applications.
HTML Helpers
Helpers for generating html on the fly.
The Glashammer API
The complete Glashammer API.
Links to external documentation
Contains quick links to references for the libraries used in Glashammer.

Full table of contents

  • Getting Started Guide
    • Downloading
    • Requirements
    • Your First Application
  • Introduction
    • Ready Components
    • Application Phases
      • Application Setup Phase
      • Request Phase
    • Code Structure
    • Bundles
  • Setting up an application
  • gh-admin utility
    • Running Glashammer applications
    • Checking Glashammer dependencies are installed
    • Checking Glashammer is the latest available version
    • Generating a static file Alias map
    • Showing the Glashammer version
  • Rules, endpoints and views
    • Rules and Endpoints
    • Reverse lookup of URLs
    • Adding a complete map
    • Views
    • Adding related views as a controller
  • Templating
    • Adding a directory of templates
    • Using a template from a view
    • Template Globals
    • Template filters
  • Events
    • Basic Events
    • Event Arguments
    • Event handler return functions
    • Template events
    • Built in events
    • Additional notes
  • Configuration Variables
    • Adding a configuration value
    • Reading configuration variables
    • Setting a configuration variable
    • Other backends
  • Serving static files
    • Real life deployment
  • Database Support
    • SQLAlchemy Integration
      • Using declarative database definitions
      • Getting the database session
      • Getting the database engine
      • Creating database tables
      • Database initialization
      • Bundle cheat-sheet
      • Full API
        • glashammer.bundles.sqlalchdb
    • Old SQLAlchemy Integration (deprecated)
      • Getting the database engine
      • Creating database tables
      • Database initialization
      • The generated db module
      • Bundle cheat-sheet
      • Full API
    • Storm Integration
      • Adding Storm support to your application
      • Accessing Stores
      • Creating database tables
      • Bundle cheat sheet
      • Complete API
    • CouchDB Integration
      • Using CouchDB
      • Using the server instance
      • Bundle cheat-sheet
  • Bundles
    • Form handling and validation
      • Forms, Fields, and Validators
      • Creating a form
      • Loading a form with request form data
      • Using the form instance
      • Rendering form data in a template
        • Rendering each field
        • Rendering each field label
        • Dict-like form access
        • Complete form example
      • Built in field types
      • Built in validators
      • Complete API
    • Sessions
      • Available API
      • Bundle cheat-sheet
    • Repoze.who integration for authentication
      • Bundle cheat-sheet
    • Authentication
      • How to use
      • Available API
      • Password Checking
      • View Decorators
      • Bundle cheat-sheet
    • Internationalization
      • Formatting Dates in Templates
      • Bundle cheat-sheet
      • Full API
        • glashammer.bundles.i18n
    • SQLAlchemy Integration
      • Using declarative database definitions
      • Getting the database session
      • Getting the database engine
      • Creating database tables
      • Database initialization
      • Bundle cheat-sheet
      • Full API
        • glashammer.bundles.sqlalchdb
    • Old SQLAlchemy Integration (deprecated)
      • Getting the database engine
      • Creating database tables
      • Database initialization
      • The generated db module
      • Bundle cheat-sheet
      • Full API
    • Storm Integration
      • Adding Storm support to your application
      • Accessing Stores
      • Creating database tables
      • Bundle cheat sheet
      • Complete API
    • HTML Helpers
      • Bundle cheat-sheet
      • Full API
        • glashammer.bundles.htmlhelpers
    • Google Appengine Helpers
      • How to use
      • Available API
  • Utilities
  • The Glashammer API
    • Application API
      • glashammer.application
    • Utility API
      • Config Utility API
        • glashammer.config
      • Crypto Utility API
        • glashammer.crypto
      • Events Utility API
        • glashammer.utils.events
      • File Utility API
        • glashammer.utils.fileutils
      • JSON Utility API
        • glashammer.utils.json
      • Threadlocal Utility API
      • System Utility API
        • glashammer.utils.system
      • Testing API
        • glashammer.utils.testing
      • Web Utility API
        • glashammer.utils.webbish
      • Wrapper Utility API
        • glashammer.utils.wrappers