Function | Shortcut |
---|---|
previous tab | ⌘ + left arrow |
next tab | ⌘ + right arrow |
go to tab | ⌘ + number |
go to window | ⌘ + Option + Number |
go to split pane by direction | ⌘ + Option + arrow |
go to split pane by order of use | ⌘ + ] , ⌘ + [ |
split window horizontally (same profile) | ⌘ + D |
split window vertically (same profile) | ⌘ + d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class LoginRequiredMixin(object): | |
""" | |
View mixin which requires that the user is authenticated. | |
""" | |
@method_decorator(login_required) | |
def dispatch(self, request, *args, **kwargs): | |
return super(LoginRequiredMixin, self).dispatch( | |
self, request, *args, **kwargs) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<browser:page | |
for="*" | |
name="getdocument_view" | |
class=".getdocument.GetDocument" | |
template="getdocument.pt" | |
allowed_interface=".getdocument.IGetDocument" | |
permission="zope.Public" | |
/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<layers> | |
<layer | |
name="search_viewlet" | |
interface="meu.namespace.browser.viewlet.ISearch" | |
/> | |
</layers> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env | |
#-*- coding: utf-8 -*- | |
from sys import argv | |
from math import floor, sqrt | |
def gera_numeros_primos(lista, maior_num_checado): | |
for n in lista: | |
if n > maior_num_checado: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#-*- coding: utf-8 -*- | |
from Products.CMFCore.utils import getToolByName | |
from Products.CMFCore.WorkflowCore import WorkflowException | |
def create_contents(context, contents): | |
for content in contents: | |
options = None | |
if 'options' in content.keys(): |
NewerOlder