Learn Sphinx Documentation Documentation

Similar documents
Picasa web download photos. Picasa web download photos.zip

Prof. Edwar Saliba Júnior

First Exam/Second Test 19/6/2010

Campaigns. Salesforce, Winter

Rastreamento de objetos do vpc

src docs Release Author

Microsoft SharePont Server 2013 for the Site Owner/Power User (55035)

Super bluetooth phone hacker. Super bluetooth phone hacker.zip

Introdução às GPUs. Graphics Pipeline. Marcelo Walter UFPE. 3D Application or Game. 3D API: OpenGL or Direct 3D. Vertices

Pre-implementation activities for SAP Note

Remove wga para windows 7 professional. Remove wga para windows 7 professional.zip

What is an Algebra. Core Relational Algebra. What is Relational Algebra? Operação de Seleção. Álgebra Relacional: Resumo

SharePoint 2013 Site Collection and Site Administration (55033)

Arquivos script. Cálculo numérico con Matlab Arquivos script 1

Cdfs to mp3 converter. Cdfs to mp3 converter.zip

Introduction to Python Documentation

Meteor Module 2. INF1802 Profa. Melissa Lemos

Componentes de. Resumido e Adaptado dos apontamentos do Prof. José Tavares (Ambientes de Desenvolvimento Avaçados)

Kiki Documentation. Release 0.7a1. Stephen Burrows

Querying Microsoft SQL Server 2014 (20461)

Introdução e boas práticas em UX Design (Portuguese Edition)

Software repository suse linux. Software repository suse linux.zip

DM6. User Guide English ( 3 10 ) Guía del usuario Español ( ) Appendix English ( 13 ) DRUM MODULE

Acelerando a Manada. Parallel Queries no PostgreSQL

Organização e Recuperação da Informação

Microsoft net framework 2.0 windows 7 32 bit. Microsoft net framework 2.0 windows 7 32 bit.zip

UNIVERSIDADE DO ALGARVE Faculdade de Ciências e Tecnologia Departamento de Engenharia Electrónica e Informática

MANUAL CELULAR APPLE IPHONE

Crack real clone dvd 6. Crack real clone dvd 6.zip

Opti usb pci driver 82c861. Opti usb pci driver 82c861.zip

XSDs: exemplos soltos

OUTLIERS DETECTION BY RANSAC ALGORITHM IN THE TRANSFORMATION OF 2D COORDINATE FRAMES

django-antispam Documentation

NADABAS and its Environment

django-slim Documentation

Project standard 2003 crack. Project standard 2003 crack.zip

DIGITAL IMAGE CORRELATION ANALYSIS FOR DISPLACEMENT MEASUREMENTS IN CANTILEVER BEAMS

tolerance Documentation

Fundamentos de programação

django-permission Documentation

Configuração do laboratório de discagem de entrada de cliente (SÃO JOSÉ, USA)

Receipe Book Documentation

Windows sbs 2003 standard r2. Windows sbs 2003 standard r2.zip

UNIVERSIDADE DE LISBOA Faculdade de Ciências Departamento de Informática

How to on facebook emoticons for google chrome. How to on facebook emoticons for google chrome.zip

P A DE. Pade Documentation. Release 1.0

MCSD Azure Solutions Architect. Sobre o curso. Metodologia. Microsoft. Com certificação. Nível: Avançado Duração: 60h

MIT Global Startup Labs México 2013

Sony mp3 player driver software. Sony mp3 player driver software.zip

kvkit Documentation Release 0.1 Shuhao Wu

django-conduit Documentation

django-intercom Documentation

Internet explorer (embedded - windows 8.1) - activex

Django-CSP Documentation

Bluestacks app for windows phone. Bluestacks app for windows phone.zip

Bricks Documentation. Release 1.0. Germano Guerrini

Prof. Tiago G. S. Carneiro DECOM - UFOP. Threads em Qt. Prof. Tiago Garcia de Senna Carneiro

O futuro chegou: Programação concorrente com futures LEONARDO BORGES SENIOR CLOJURE

django-oauth2-provider Documentation

Django-Select2 Documentation. Nirupam Biswas

USING WAVELETS ON DENOISING INFRARED MEDICAL IMAGES DATA BASE

micawber Documentation

Partition magic 10 portable. Partition magic 10 portable.zip

THREADS. Laboratório - Java

Django Groups Manager Documentation

ROVABIO PREDICTOR 2012

Modelo linear no. Valeska Andreozzi

Youtube videos realplayer sp mac. Youtube videos realplayer sp mac.zip

Extension of the IsaViz Software for the Representation of Metabolic and Regulatory Networks

Manual Do Adobe Photoshop Cs5 Em Portugues Pdf

Priority Queues. Problem. Let S={(s1,p1), (s2,p2),,(sn,pn)} where s(i) is a key and p(i) is the priority of s(i).

django-precise-bbcode Documentation

MANUAL APARELHO NOKIA 200 EBOOK

VingCard Allure Fechadura Eletrônica

Python Finite State Machine. Release 0.1.5

CERTIFICACION SAGE Enterprise Management (X3)

Hotmail.com login login

Model-based Transformations for Software Architectures: a pervasive application case study Paula Alexandra Fernandes Monteiro

maya-cmds-help Documentation

Android 4 1 jelly bean custom rom for galaxy y. Android 4 1 jelly bean custom rom for galaxy y.zip

CSS. CSS - cascading style sheets CSS - permite separar num documento HTML o conteúdo do estilo. DAW css 1/1

Confire Documentation

Dvd photo slideshow professional software downloads. Dvd photo slideshow professional software downloads.zip

django-selenium Documentation

Microsoft word 2004 free for windows 8. Microsoft word 2004 free for windows 8.zip

Deploying and Managing Windows 10 Using Enterprise Services ( )

Connexion Documentation

Dogeon Documentation. Release Lin Ju

django-app-metrics Documentation

Django Data Importer Documentation

Django QR Code Documentation

photoscape tutorial 788ECC22DA702954D1F DF8191 Photoscape Tutorial 1 / 6

Django Groups Manager Documentation

Layout File MT101 Format

django-sticky-uploads Documentation

Django Service Objects Documentation

A FINGERPRINT MATCHING ALGORITHM BASED ON MINUTIAE AND LOCAL RIDGE ORIENTATION

django-cron Documentation

Enabling and Managing Office 365 (20347)

django-embed-video Documentation

Transcription:

Learn Sphinx Documentation Documentation Release 0.0.1 Lucas Simon Rodrigues Magalhaes January 31, 2014

Contents 1 Negrito e italico 1 2 Listas 3 3 Titulos 5 4 H1 Titulo 7 4.1 H2 Sub-Titulo............................................. 7 5 Tabelas 9 6 Links 11 7 Imagens 13 8 Substituições 15 9 Includes 17 10 Outros markups 19 11 Códigos 21 11.1 Arquivo models do modulo core..................................... 21 11.2 Arquivo views do modulo core...................................... 25 11.3 Licença.................................................. 25 12 Indices and tables 27 Python Module Index 29 i

ii

CHAPTER 1 Negrito e italico Código usado **negrito** ou *italico* Texto em negrito e em italico 1

Learn Sphinx Documentation Documentation, Release 0.0.1 2 Chapter 1. Negrito e italico

CHAPTER 2 Listas Código usado * Item 1 * Item 2 ou 1. Item 1 2. Item 2 3. Item 3 ou - Item 1 - Item 2 - Item 3 Saída: ou ou Item 1 Item 2 1. Item 1 2. Item 2 3. Item 3 Item 1 Item 2 Item 3 3

Learn Sphinx Documentation Documentation, Release 0.0.1 4 Chapter 2. Listas

CHAPTER 3 Titulos Código usado H1 -- Titulo ============ Paragrafo qualquer H2 -- Sub-Titulo **************** Paragrafo do subtitulo H3 -- Sub-seção --------------- Paragrafo da subseção H4 -- 4 nível da subseção +++++++++++++++++++++++++ Nivel 4 Saída: 5

Learn Sphinx Documentation Documentation, Release 0.0.1 6 Chapter 3. Titulos

CHAPTER 4 H1 Titulo Paragrafo qualquer 4.1 H2 Sub-Titulo Paragrafo do subtitulo 4.1.1 H3 Sub-seção Paragrafo da subseção H4 4 nível da subseção Nivel 4 7

Learn Sphinx Documentation Documentation, Release 0.0.1 8 Chapter 4. H1 Titulo

CHAPTER 5 Tabelas Código usado Tabela Simples: ===== ===== ====== Entrada Saida ------------ ------ A B A or B ===== ===== ====== False False False True False True False True True True True True ===== ===== ====== Saída: Tabela Simples: Entrada Saida A B A or B False False False True False True False True True True True True 9

Learn Sphinx Documentation Documentation, Release 0.0.1 10 Chapter 5. Tabelas

CHAPTER 6 Links Urls são automaticamente linkadas http://packages.python.org/an_example_pypi_project/ Para outros links, usa-se o operador _ Django <https://docs.djangoproject.com/en/1.6/> _ Para adicionar um texto com um link, use esse formato: Clique no link para acessar a documentação do Django 11

Learn Sphinx Documentation Documentation, Release 0.0.1 12 Chapter 6. Links

CHAPTER 7 Imagens Código usado.. figure::../images/cleo-pires-troll-face.jpg :width: 900px :align: center :alt: Troll Saída: Trollagem gratuita 13

Learn Sphinx Documentation Documentation, Release 0.0.1 Figure 7.1: Trollagem gratuita 14 Chapter 7. Imagens

CHAPTER 8 Substituições Código usado.. django image::../images/django-icon-256.png O icone do django esta muitooooooo grande O icone do esta muitooooooo grande 15

Learn Sphinx Documentation Documentation, Release 0.0.1 16 Chapter 8. Substituições

CHAPTER 9 Includes Código usado.. include myfile.rst O arquivo será incluido a partir desse momento. Util para separar arquivos de changelog.md ou contribuitors.md. E depois somente inclui-los ao texto principal 17

Learn Sphinx Documentation Documentation, Release 0.0.1 18 Chapter 9. Includes

CHAPTER 10 Outros markups Código usado.. note:: Verique se os parametros passados estão corretos!.. warning:: Nunca use esse código!.. versionadded:: 0.0.1.. versionchanged:: 0.0.2.. seealso:: Algum outro módulo Saída: Note: Verique se os parametros passados estão corretos! Warning: Nunca use esse código! New in version 0.0.1. Changed in version 0.0.2. See also: Algum outro módulo 19

Learn Sphinx Documentation Documentation, Release 0.0.1 20 Chapter 10. Outros markups

CHAPTER 11 Códigos Para blocos de códigos utilize :: Código usado def my_fn(foo, bar=true): """A really useful function. Returns None """ Code Para códigos simples utilize apenas if name == main : Arquivo qualquer *.py pode conter if name == main : Contents: 11.1 Arquivo models do modulo core class core.models.media(*args, **kwargs) Bases: core.models.timestampedmodel Classe model para cadastrar as medias com os as apps de palestras/talks, screencasts, tutoriais/artigos, class Meta abstract = False Media.clean() Hook for doing any extra model-wide validation after clean() has been called on every field by self.clean_fields. Any ValidationError raised by this method will not be associated with a particular field; it will have a special-case association with the field defined by NON_FIELD_ERRORS. Media.clean_fields(exclude=None) Cleans all fields and raises a ValidationError containing message_dict of all validation errors if any occur. Media.date_error_message(lookup_type, field, unique_for) Media.delete(using=None) 21

Learn Sphinx Documentation Documentation, Release 0.0.1 Media.full_clean(exclude=None) Calls clean_fields, clean, and validate_unique, on the model, and raises a ValidationError for any errors that occured. Media.get_next_by_created(*moreargs, **morekwargs) Media.get_next_by_modified(*moreargs, **morekwargs) Media.get_previous_by_created(*moreargs, **morekwargs) Media.get_previous_by_modified(*moreargs, **morekwargs) Media.get_type_display(*moreargs, **morekwargs) Media.pk Media.prepare_database_save(unused) Media.save(force_insert=False, force_update=false, using=none) Saves the current instance. Override this in a subclass if you want to control the saving process. The force_insert and force_update parameters can be used to insist that the save must be an SQL insert or update (or equivalent for non-sql backends), respectively. Normally, they should not be set. Media.save_base(raw=False, cls=none, origin=none, force_insert=false, force_update=false, using=none) Does the heavy-lifting involved in saving. Subclasses shouldn t need to override this method. It s separate from save() in order to hide the need for overrides of save() to pass around internal-only parameters ( raw, cls, and origin ). Media.serializable_value(field_name) Returns the value of the field name for this instance. If the field is a foreign key, returns the id value, instead of the object. If there s no Field object with this name on the model, the model attribute s value is returned directly. Used to serialize a field s value (in the serializer, or form output, for example). Normally, you would just access the attribute directly and not use this method. Media.unique_error_message(model_class, unique_check) Media.validate_unique(exclude=None) Checks unique constraints on the model and raises ValidationError if any failed. class core.models.standarditemstuffmodel(*args, **kwargs) Bases: django.db.models.base.model Classe abstrata para comportar campos em comum com os as apps de palestras/talks, screencasts, tutoriais/artigos, class Meta abstract = False StandardItemStuffModel.clean() Hook for doing any extra model-wide validation after clean() has been called on every field by self.clean_fields. Any ValidationError raised by this method will not be associated with a particular field; it will have a special-case association with the field defined by NON_FIELD_ERRORS. StandardItemStuffModel.clean_fields(exclude=None) Cleans all fields and raises a ValidationError containing message_dict of all validation errors if any occur. StandardItemStuffModel.date_error_message(lookup_type, field, unique_for) StandardItemStuffModel.delete(using=None) 22 Chapter 11. Códigos

Learn Sphinx Documentation Documentation, Release 0.0.1 StandardItemStuffModel.full_clean(exclude=None) Calls clean_fields, clean, and validate_unique, on the model, and raises a ValidationError for any errors that occured. StandardItemStuffModel.pk StandardItemStuffModel.prepare_database_save(unused) StandardItemStuffModel.save(force_insert=False, force_update=false, using=none) Saves the current instance. Override this in a subclass if you want to control the saving process. The force_insert and force_update parameters can be used to insist that the save must be an SQL insert or update (or equivalent for non-sql backends), respectively. Normally, they should not be set. StandardItemStuffModel.save_base(raw=False, cls=none, origin=none, force_insert=false, force_update=false, using=none) Does the heavy-lifting involved in saving. Subclasses shouldn t need to override this method. It s separate from save() in order to hide the need for overrides of save() to pass around internal-only parameters ( raw, cls, and origin ). StandardItemStuffModel.serializable_value(field_name) Returns the value of the field name for this instance. If the field is a foreign key, returns the id value, instead of the object. If there s no Field object with this name on the model, the model attribute s value is returned directly. Used to serialize a field s value (in the serializer, or form output, for example). Normally, you would just access the attribute directly and not use this method. StandardItemStuffModel.speaker StandardItemStuffModel.unique_error_message(model_class, unique_check) StandardItemStuffModel.validate_unique(exclude=None) Checks unique constraints on the model and raises ValidationError if any failed. class core.models.timestampedmodel(*args, **kwargs) Bases: django.db.models.base.model An abstract base class model that provides self-updating created and modified fields. Note: An example of intersphinx is this: you cannot use pickle on this class. class Meta Definicoes da classe abstract = False Define a class como abstrata TimeStampedModel.clean() Hook for doing any extra model-wide validation after clean() has been called on every field by self.clean_fields. Any ValidationError raised by this method will not be associated with a particular field; it will have a special-case association with the field defined by NON_FIELD_ERRORS. TimeStampedModel.clean_fields(exclude=None) Cleans all fields and raises a ValidationError containing message_dict of all validation errors if any occur. TimeStampedModel.created = None Variavel para setar um campo no banco de dados do tipo DateTimeField quando o registro for criado Parameters auto_now_add (Boolean) Seta o valor True ou False TimeStampedModel.date_error_message(lookup_type, field, unique_for) 11.1. Arquivo models do modulo core 23

Learn Sphinx Documentation Documentation, Release 0.0.1 TimeStampedModel.delete(using=None) TimeStampedModel.full_clean(exclude=None) Calls clean_fields, clean, and validate_unique, on the model, and raises a ValidationError for any errors that occured. TimeStampedModel.get_next_by_created(*moreargs, **morekwargs) TimeStampedModel.get_next_by_modified(*moreargs, **morekwargs) TimeStampedModel.get_previous_by_created(*moreargs, **morekwargs) TimeStampedModel.get_previous_by_modified(*moreargs, **morekwargs) TimeStampedModel.modified = None Variavel para setar um campo no banco de dados do tipo DateTimeField. O valor é alterado toda vez que se faz update no registro da tabela Parameters auto_now (Boolean) Seta o valor True ou False TimeStampedModel.pk TimeStampedModel.prepare_database_save(unused) TimeStampedModel.save(force_insert=False, force_update=false, using=none) Saves the current instance. Override this in a subclass if you want to control the saving process. The force_insert and force_update parameters can be used to insist that the save must be an SQL insert or update (or equivalent for non-sql backends), respectively. Normally, they should not be set. TimeStampedModel.save_base(raw=False, cls=none, origin=none, force_insert=false, force_update=false, using=none) Does the heavy-lifting involved in saving. Subclasses shouldn t need to override this method. It s separate from save() in order to hide the need for overrides of save() to pass around internal-only parameters ( raw, cls, and origin ). TimeStampedModel.serializable_value(field_name) Returns the value of the field name for this instance. If the field is a foreign key, returns the id value, instead of the object. If there s no Field object with this name on the model, the model attribute s value is returned directly. Used to serialize a field s value (in the serializer, or form output, for example). Normally, you would just access the attribute directly and not use this method. TimeStampedModel.unique_error_message(model_class, unique_check) TimeStampedModel.validate_unique(exclude=None) Checks unique constraints on the model and raises ValidationError if any failed. 11.1.1 Classe model TimeStampedModel Classe model do tipo abstrata. Seu objetivo é que ela possa ser herdada por outras classes models incluindo os campos created e modified ao seu model. Veja os detalhes logo abaixo: Created TimeStampedModel.created = None Variavel para setar um campo no banco de dados do tipo DateTimeField quando o registro for criado 24 Chapter 11. Códigos

Learn Sphinx Documentation Documentation, Release 0.0.1 Parameters auto_now_add (Boolean) Seta o valor True ou False Modified TimeStampedModel.modified = None Variavel para setar um campo no banco de dados do tipo DateTimeField. O valor é alterado toda vez que se faz update no registro da tabela Parameters auto_now (Boolean) Seta o valor True ou False 11.2 Arquivo views do modulo core core.views.foo(bar=none) Metodo para exemplificar como o sphinx renderiza as docstring. Parameters bar (Integer or None) Recebe um valor inteiro Returns list or strings Retona uma lista vazia ou uma string Return type list of strings asdsadsad Raises AttributeError, KeyError >>> print foo() [] >>> print foo( texto ) texto 11.3 Licença Distribuido sobre a licença BSD. 11.2. Arquivo views do modulo core 25

Learn Sphinx Documentation Documentation, Release 0.0.1 26 Chapter 11. Códigos

CHAPTER 12 Indices and tables genindex modindex search 27

Learn Sphinx Documentation Documentation, Release 0.0.1 28 Chapter 12. Indices and tables

Python Module Index c core.models, 21 core.views, 25 29