-
Notifications
You must be signed in to change notification settings - Fork 0
/
jbrout.kpf
128 lines (109 loc) · 6.09 KB
/
jbrout.kpf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
<?xml version="1.0" encoding="UTF-8"?>
<!-- Komodo Project File - DO NOT EDIT -->
<project id="476791dc-18d0-4a49-8021-f04a7f9f22ea" kpf_version="4" name="jbrout.kpf">
<macro async="0" icon="chrome://famfamfamsilk/skin/icons/control_play_blue.png" id="49260554-5257-4bcd-88d3-026850a8751d" idref="328dcabd-3f49-400e-93ca-0118c869dc4d" keyboard_shortcut="F9" language="JavaScript" name="run jbrout" rank="100" trigger="trigger_postopen" trigger_enabled="0">
// Macro recorded on Sun Apr 29 2007 14:27:28 GMT+0200 (CEST)
komodo.assertMacroVersion(2);
if (komodo.view) { komodo.view.setFocus() };
komodo.doCommand('cmd_save')
Run_RunEncodedCommand(window, 'python2.6 -u %p/jbrout/jbrout.py');
if (komodo.view) { komodo.view.setFocus() };</macro>
<command cwd="%p" doNotOpenOutputWindow="0" env="" icon="chrome://famfamfamsilk/skin/icons/application_tile_horizontal.png" id="86d020f9-6a34-4d7f-8107-512350368247" idref="328dcabd-3f49-400e-93ca-0118c869dc4d" insertOutput="0" keyboard_shortcut="" name="glade" operateOnSelection="0" parseOutput="0" parseRegex="" runIn="no-console" showParsedOutputList="0">
glade-3 jbrout/data/jbrout.glade</command>
<command cwd="%p" doNotOpenOutputWindow="0" env="" id="a4866a1a-9bad-4966-9de8-050f77b003b6" idref="328dcabd-3f49-400e-93ca-0118c869dc4d" insertOutput="0" keyboard_shortcut="" name="console" operateOnSelection="0" parseOutput="0" parseRegex="" runIn="no-console" showParsedOutputList="0">
gnome-terminal</command>
<toolbar id="328dcabd-3f49-400e-93ca-0118c869dc4d" idref="43d69841-ac9e-44ae-b7bc-45de863361e7" name="toolbar" priority="100">
</toolbar>
<folder id="c799512d-37cb-4c2a-b5db-1511831116b0" idref="43d69841-ac9e-44ae-b7bc-45de863361e7" name="templates">
</folder>
<folder id="43d69841-ac9e-44ae-b7bc-45de863361e7" idref="476791dc-18d0-4a49-8021-f04a7f9f22ea" name="actions">
</folder>
<livefolder id="476791dc-18d0-4a49-8021-f04a7f9f22ea/.jbrout" idref="476791dc-18d0-4a49-8021-f04a7f9f22ea" name=".jbrout" url="file:///home/manatlan/.jbrout">
</livefolder>
<folder id="ea55cad2-4f5c-4bc4-b09c-073757203ccc" idref="aac4b0e2-cb4b-4cca-a16d-c3ec08ac8a19" name="templates">
</folder>
<snippet id="4e261f9d-9a6c-4fab-9315-9b343bdce937" idref="c799512d-37cb-4c2a-b5db-1511831116b0" indent_relative="false" keyboard_shortcut="" name="gpl entete" set_selection="true">
# -*- coding: utf-8 -*-
##
## Copyright (C) 2007 manatlan manatlan[at]gmail(dot)com
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published
## by the Free Software Foundation; version 2 only.
##
## This program is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
## GNU General Public License for more details.
##
!@#_currentPos!@#_anchor
</snippet>
<snippet id="743d9f2e-b4a6-4353-a359-4b0bd5dc59e8" idref="c799512d-37cb-4c2a-b5db-1511831116b0" indent_relative="false" keyboard_shortcut="Meta+P" name="pdb" set_selection="false">
import pdb; pdb.set_trace()!@#_currentPos!@#_anchor</snippet>
<snippet id="b0d9f3c2-af62-4b77-8eed-6f4f8c78c0fa" idref="c799512d-37cb-4c2a-b5db-1511831116b0" indent_relative="false" keyboard_shortcut="" name="a gladeapp" set_selection="true">
import os
from libs.gladeapp import GladeApp
class Window(GladeApp):
glade=os.path.join(os.path.dirname(__file__), 'window.glade')
#window="window1"
def init(self!@#_currentPos!@#_anchor):
pass
def on_window1_delete_event(self, *args):
self.quit()
if __name__ == "__main__":
w=Window()
w.loop()</snippet>
<snippet id="d959280f-0ffb-4485-aeba-172dee9644c1" idref="c799512d-37cb-4c2a-b5db-1511831116b0" indent_relative="false" keyboard_shortcut="" name="jbrout plugin" set_selection="true">
# -*- coding: UTF-8 -*-
##
## Copyright (C) 2009 manatlan manatlan[at]gmail(dot)com
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published
## by the Free Software Foundation; version 2 only.
##
## This program is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
## GNU General Public License for more details.
##
""" PLUGIN DOC :
!@#_currentPos!@#_anchorself.id : the id of the plugin (folder name)
self.path : contain the path to the plugin
self.conf : (dict) configuration persistence
self.parent : the main window
def MessageBox(self,m,title=None):
def InputBox(self,t,m,title=None):
def InputQuestion(self,m,title=None):
def openURL(self,url):
def showProgress(self,c=None,m=None,msg=None):
def getGeneralConfItem(self,n):
use _() for translations strings
"""
from __main__ import JPlugin
class Plugin(JPlugin):
"""Plugin nouveau format """
__author__ = "manatlan"
__version__ = "0.1"
@JPlugin.Entry.AlbumProcess( _("Do nothing on album"),order=999999 )
@JPlugin.Entry.AlbumProcessDontAlter # this method is available in view only mode, because it doesn't alter db/photos
def justDoThis(self,folderNode):
print "this is the album", folderNode
return False # dont redraw anything (nothing has changed)
@JPlugin.Entry.PhotosProcess( _("Do nothing on photos"), order=999999 )
@JPlugin.Entry.PhotosProcessDontAlter
def justDoThat(self,photoNodes): # this method is available in view only mode, because it doesn't alter db/photos
print "this is the list of photos", photoNodes
return False # dont redraw anything (nothing has changed)
</snippet>
<preference-set idref="476791dc-18d0-4a49-8021-f04a7f9f22ea">
<boolean id="import_live">1</boolean>
</preference-set>
<preference-set idref="476791dc-18d0-4a49-8021-f04a7f9f22ea/jbrout/plugins/bulkTag">
<string id="import_exclude_matches">*.*~;*.bak;*.tmp;CVS;.#*;*.pyo;*.pyc;.svn;*%*;tmp*.html;.DS_Store</string>
<string id="import_include_matches"></string>
<boolean id="import_live">1</boolean>
<boolean id="import_recursive">1</boolean>
<string id="import_type">useFolders</string>
</preference-set>
</project>