万本电子书0元读

万本电子书0元读

顶部广告

Plone 3 Products Development Cookbook电子书

售       价:¥

0人正在读 | 0人评论 9.8

作       者:Juan Pablo Gimenez

出  版  社:Packt Publishing

出版时间:2010-05-10

字       数:238.8万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
The examples in this book follow a sample project creating a digital newspaper website to meet the requirements of a fictional customer who wants to place commercial advertisements all over the site. The whole book is a comprehensive collection of recipes that elaborate a series of well known use cases. You will find an organized step-by-step procedure to accomplish each task followed by detailed explanations to better understand how and why each topic was undertaken, and many links to online references and other related sections in the book that can supplement the subject in question. You can read the whole book or just pick the recipes that are relevant for you; where necessary, cross references will help you understand the recipes even if you do not read them in sequential order. This book is for programmers who have some knowledge of Python, Plone, and Zope. If you want to develop feature-rich add-on products in Plone, this book is for you. It is aimed at the development of backend features, so you need not have other web-related skills such as HTML, CSS, or JavaScript.
目录展开

Plone 3 Products Development Cookbook

Table of Contents

Plone 3 Products Development Cookbook

Credits

About the Authors

About the Reviewers

Preface

What this book covers

Our Plone development project

A short note about the course of the book

Customer requirements

What you need for this book

Who this book is for

Conventions

Reader feedback

Customer support

Errata

Piracy

Questions

1. Getting Started

Introduction

Installing Python on Linux

Getting ready

How to do it...

How it works…

See also

Installing Plone on Linux

Getting ready

How to do it…

How it works…

See also

Installing Plone on Windows

How to do it…

See also

Checking out code from a version controlsystem

How to do it…

How it works…

There’s more…

Creating a Plone site

How to do it…

How it works…

There’s more…

See also

2. Using Development Tools

Introduction

Changing debug mode parameter in configuration file

Running Zope instance in foreground mode

Accessing an IPython powered shell

How to do it…

How it works…

There's more…

See also

Taking advantage of an enhanced interactive Python debugger with ipdb

How to do it…

How it works…

Discovering Zope/Plone APIs and docstrings with DocFinderTab

How to do it…

How it works…

There's more…

Opening an online Python shell on Plone using Clouseau

How to do it…

There's more…

Debugging Zope exceptions with PDBDebug Mode

How to do it…

See also

Applying code changes on-the-fly using plone.reload

How to do it…

How it works…

There's more…

3. Creating Content Types with ArchGenXML

Introduction

Installing ArchGenXML

Getting ready

How to do it…

How it works…

See also

Configuring ArgoUML

Getting ready

How to do it…

How it works…

There's more…

Creating a model

Getting ready

How to do it…

How it works…

There's more…

See also

Generating code

How to do it…

There's more…

See also

Customizing generated code

Getting ready

How to do it…

How it works…

See also

Installing the product

How to do it…

How it works…

Automatically installing products in your Zope instance

How to do it…

How it works…

There's more…

See also

4. Prevent Bugs through Testing

Introduction

Glossary

Working with paster-generated test suites

Getting ready

How to do it...

How it works...

Unit test DocFileSuite

Running tests

Unit test DocTestSuite

Integration test ZopeDocFileSuite using PloneTestCase

Functional test

See also

Creating a test suite with ArchGenXML

Getting ready

How to do it...

How it works...

See also

Creating doctests with iPython

Getting ready

How to do it...

Zope functional testing

Getting ready

How to do it...

How it works...

Using Selenium functional tests

Getting ready

How to do it...

There's more...

Further reading

Installing Selenium RC and IDE

Organizing packages

Debugging tests

See also

5. Creating a Custom Content Type with Paster

Introduction

Creating an Archetypes product with paster

Getting ready

How to do it…

How it works…

There's more…

See also

Adding a content type into a product

Getting ready

How to do it…

How it works…

There's more…

See also

Changing the base class in paster content types

How to do it…

How it works…

There's more…

See also

Adding fields to a content type

Getting started

How to do it…

How it works…

There's more…

See also

Adding a custom validator to a content type

How to do it…

How it works…

There's more…

See also

Modifying the view of a content type with jQuery

Getting ready

How to do it…

How it works…

There's more…

See also

6. Creating Lightweight Content Types

Introduction

Creating a product package structure

Getting ready

How to do it...

How it works...

See also

Creating a folderish content type

Getting ready

How to do it...

How it works…

See also

Creating the user interface for Zope 3 content types

Getting ready

How to do it…

How it works…

There's more...

See also

Creating content types with Dexterity

How to do it…

How it works…

See also

7. Improving Product Performance

Introduction

Installing CacheFu with a policy product

Getting ready

How to do it…

How it works…

There's more…

See also

Improving performance by tweaking expensive code

Getting ready

How to do it…

How it works…

There's more…

See also

Testing server load and benchmarking our code

Getting ready

How to do it…

How it works…

There's more…

Bench configuration file

Running the bench

Further reading

See also

8. Internationalization

Introduction

Adding i18ndude support to ArchGenXML

How to do it…

How it works…

See also

Installing i18ndude standalone

How to do it…

See also

Using i18ndude

Getting started

How to do it...

There's more…

See also

Using Placeless Translation Services for i18n support

How to do it…

See also

Using zope.i18n approach

How to do it...

How it works…

There's more…

See also

Overriding others' translations

How to do it…

Using i18n with ArchGenXML

Getting ready

How to do it…

How it works…

There's more…

Modifying an existing field's label

See also

Using i18n with paster-created products

Getting ready

How to do it…

How it works…

There's more…

See also

Adding i18n support to any product

Getting ready

How to do it…

How it works…

There's more…

See also

Translating content

Getting started

How to do it…

How it works…

There's more…

See also

Setting language options

Getting ready

How to do it…

There's more…

See also

9. Adding Security to your Products

Introduction

Creating a new permission

Getting started

How to do it…

How it works…

There's more…

See also

Adding a new role

Getting ready

How to do it...

How it works…

There's more…

Automatic roles

Local roles

See also

Adding user groups

How to do it…

How it works…

See also

Testing security customizations

How to do it…

Protecting operations with permissions

How to do it…

How it works…

There's more…

Adding security restrictions to Dexterity content types

Testing restricted operations

Checking paster and ArchGenXML permissions

See also

Managing security with workflows

How to do it…

There's more…

See also

Adding configuration options in Plone control panel

Getting ready

How to do it…

How it works…

There's more…

See also

10. Improving User Interface with KSS

Introduction

Preparing a form to take full advantage of KSS

Getting started

How to do it…

How it works…

There's more…

See also

Changing end user pages with client-side KSS

How to do it…

How it works…

Manipulating DOM elements on document load

Dynamically adding user interactions

There's more…

See also

Submitting data via AJAX

How to do it…

How it works…

Replacing standard button's behavior

Server side KSS actions

There's more…

See also

11. Creating Portlets

Introduction

Creating a portlet package

Getting ready

How to do it…

How it works…

Portlet component configuration file

Portlet module

GenericSetup import step

See also

Customizing a new portlet according to our requirements

How to do it…

How it works…

See also

Testing portlets

How to do it…

How it works...

See also

Assigning portlets automatically

Getting ready

How to do it…

How it works…

There's more…

Assigning portlets programmatically

Portlet managers

See also

12. Extending Third-Party Products

Introduction

Using skin layers

Getting ready

How to do it...

How it works...

There's more…

See also

Overriding Zope 3 components

Getting ready

How to do it...

How it works...

There's more…

See also

Customizing Zope 3 browser templates and files

Getting ready

How to do it...

How it works...

There's more…

z3c.jbot and skin layers

Understanding browserlayer

See also

Subscribing to others' events

How to do it…

How it works…

See also

Using the ZCA to extend a third-party product: Collage

How to do it…

How it works…

There's more…

See also

13. Interacting with other Systems: XML-RPC

Introduction

Creating a configuration form

Getting ready

How to do it…

How it works…

There's more…

See also

Registering a local utility

How to do it…

How it works…

See also

Registering a global utility

Getting started

How to do it…

How it works…

There's more…

Changing the look of the form

Named utilities

Installing OpenX

Further reading

14. Getting our Products ready for Production

Introduction

Installing and configuring an egg repository

Getting ready

How to do it…

How it works…

There's more

See also

Submitting products to an egg repository

Getting ready

How to do it…

How it works…

There's more

Changing the package version number

An alternative method to submit your package

See also

Writing a production buildout

Getting ready

How to do it…

How it works…

There's more

Configuring a web server

Using or not using buildout.cfg

Production buildouts for Windows

See also

A. Creating a Policy Product

Creating a policy product

How to do it...

How it works...

There's more…

See also

Index

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部