Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
Cover
Grok 1.0 Web Development
Grok 1.0 Web Development
Credits
Foreword
About the Author
Acknowledgement
About the Reviewers
Preface
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
1. Getting to Know Grok
Distinguishing Grok concepts
Other Grok features
How Grok compares to other web frameworks
Summary
2. Getting Started with Grok
Installing Python
EasyInstall and the Python Package Index (PyPI)
Grok and the Python environment
Virtualenv
What's inside a Grok project?
The Grok admin UI
Summary
3. Views
Zope Page Templates (ZPT)
The to-do list application
Handling form data
Adding static resources
Putting in some JavaScript flourish
Summary
4. Models
Storing model data
Display logic and application logic
Using containers and multiple models
The Grok introspector
Summary
5. Forms
Interfaces
Schemas
Form fields and widgets
Form components
Filtering fields
Using grok.EditForm
Modifying individual form fields
Form validation
Customizing the form template
Summary
6. The Catalog: An Object-Oriented Search Engine
Adding a simple search function to the application
A brief diversion: Structuring our application for search
Back to search: Using multiple indexes
Indexing different kinds of objects
The catalog admin UI
Types of indexes
Summary
7. Security
Principals, permissions, and roles
Security policies
Setting up a custom security policy
Adding authentication
Summary
8. Application Presentation and Page Layout
Understanding how the pieces fit together
To-do list manager layout
Layers and skins
Adding themes to our application
Summary
9. Grok and the ZODB
Using the ZODB
Adding Blob support to our application
Taking advantage of transactions
ZODB maintenance
Summary
10. Grok and Relational Databases
Using a relational database for authentication
Handling database transactions securely
Creating database-backed models and containers
When to use the ZODB versus a relational database
Summary
11. Key Concepts Behind Grok
Extending a Grok application from the outside
Summary
12. Grokkers, Martian, and Agile Configuration
The Martian library
Understanding grokkers
Creating our own grokker for zope.sendmail configuration
Summary
13. Testing and Debugging
Testing in Grok
Debugging
Summary
14. Deployment
Running the paster server in the background
Running Grok behind the Apache web server
More scalability: Adding caching and load balancing
Summary
← Prev
Back
Next →
← Prev
Back
Next →