Changeset 1211:13569ecadc75
- Timestamp:
- 07/24/08 00:53:16 (4 months ago)
- Author:
- Ronny Pfannschmidt <Ronny.Pfannschmidt@…>
- Children:
- 1212:7c90fe5ca475, 1216:5faff2f1277a
- Message:
-
removed some unused imports
- Location:
- pida/services
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r1202
|
r1211
|
|
| 32 | 32 | |
| 33 | 33 | from kiwi.ui.objectlist import Column, ObjectList |
| 34 | | from pida.core.environment import get_uidef_path |
| 35 | 34 | from pida.ui.views import PidaView |
| 36 | 35 | from pida.core.commands import CommandsConfig |
-
|
r1202
|
r1211
|
|
| 28 | 28 | # PIDA Imports |
| 29 | 29 | from pida.core.service import Service |
| 30 | | from pida.core.features import FeaturesConfig |
| 31 | | from pida.core.commands import CommandsConfig |
| 32 | 30 | from pida.core.events import EventsConfig |
| 33 | 31 | from pida.core.actions import ActionsConfig |
| 34 | | from pida.core.actions import TYPE_NORMAL, TYPE_MENUTOOL, TYPE_RADIO, TYPE_TOGGLE |
| | 32 | from pida.core.actions import TYPE_TOGGLE |
| 35 | 33 | |
| 36 | 34 | from pida.ui.views import PidaGladeView |
-
|
r1202
|
r1211
|
|
| 35 | 35 | from pida.core.events import EventsConfig |
| 36 | 36 | from pida.core.options import OptionsConfig |
| 37 | | from pida.core.actions import ActionsConfig, TYPE_NORMAL, TYPE_MENUTOOL, TYPE_TOGGLE |
| | 37 | from pida.core.actions import ActionsConfig, TYPE_TOGGLE |
| 38 | 38 | from pida.utils.gthreads import GeneratorTask, AsyncTask, gcall |
| 39 | 39 | from pida.core.servicemanager import ServiceLoader, ServiceLoadingError |
-
|
r368
|
r1211
|
|
| 26 | 26 | # PIDA Imports |
| 27 | 27 | from pida.core.service import Service |
| 28 | | from pida.core.features import FeaturesConfig |
| 29 | | from pida.core.commands import CommandsConfig |
| 30 | | from pida.core.events import EventsConfig |
| 31 | | from pida.core.actions import ActionsConfig |
| 32 | | from pida.core.actions import TYPE_NORMAL, TYPE_MENUTOOL, TYPE_RADIO, TYPE_TOGGLE |
| 33 | | |
| 34 | 28 | from pida.utils.grpc import LocalServerDispatcher |
| 35 | 29 | |
-
|
r1204
|
r1211
|
|
| 1 | 1 | # -*- coding: utf-8 -*- |
| | 2 | """ |
| | 3 | Sessions Service |
| | 4 | ~~~~~~~~~~~~~~~~ |
| 2 | 5 | |
| 3 | | # Copyright (c) 2007 The PIDA Project |
| | 6 | currently this saves the open files to a gconf list |
| 4 | 7 | |
| 5 | | #Permission is hereby granted, free of charge, to any person obtaining a copy |
| 6 | | #of this software and associated documentation files (the "Software"), to deal |
| 7 | | #in the Software without restriction, including without limitation the rights |
| 8 | | #to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
| 9 | | #copies of the Software, and to permit persons to whom the Software is |
| 10 | | #furnished to do so, subject to the following conditions: |
| | 8 | .. todo:: |
| | 9 | * window/sudebar/paned positions |
| 11 | 10 | |
| 12 | | #The above copyright notice and this permission notice shall be included in |
| 13 | | #all copies or substantial portions of the Software. |
| | 11 | :license: GPL2 or later |
| | 12 | :copyright: |
| | 13 | * 2007 Ali Afshar |
| | 14 | * 2008 Ronny Pfannschmidt |
| | 15 | """ |
| 14 | 16 | |
| 15 | | #THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 16 | | #IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 17 | | #FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 18 | | #AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 19 | | #LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| 20 | | #OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
| 21 | | #SOFTWARE. |
| 22 | | |
| 23 | | import os |
| 24 | 17 | import gobject |
| 25 | | |
| 26 | | from pida.utils.configobj import ConfigObj |
| 27 | | from tempfile import mkstemp |
| 28 | 18 | |
| 29 | 19 | # PIDA Imports |
| 30 | 20 | from pida.core.service import Service |
| 31 | | from pida.core.features import FeaturesConfig |
| 32 | | from pida.core.commands import CommandsConfig |
| 33 | 21 | from pida.core.events import EventsConfig |
| 34 | | from pida.core.actions import ActionsConfig |
| 35 | | from pida.core.actions import TYPE_NORMAL, TYPE_MENUTOOL, TYPE_RADIO, \ |
| 36 | | TYPE_TOGGLE |
| 37 | 22 | from pida.core.options import OptionsConfig |
| 38 | | |
| 39 | | from pida.core.environment import pida_home |
| 40 | | |
| 41 | | from pida.ui.views import PidaGladeView |
| 42 | 23 | |
| 43 | 24 | # locale |
| … |
… |
|
| 108 | 89 | else: |
| 109 | 90 | return |
| | 91 | #XXX: this way is not acceptable, |
| | 92 | # need find a way to tell editors to open at once |
| 110 | 93 | gobject.timeout_add(1000, self.load_buffers, files) |
| 111 | 94 | |
-
|
r1170
|
r1211
|
|
| 27 | 27 | # PIDA Imports |
| 28 | 28 | from pida.core.service import Service |
| 29 | | from pida.core.features import FeaturesConfig |
| 30 | | from pida.core.commands import CommandsConfig |
| 31 | | from pida.core.events import EventsConfig |
| 32 | 29 | from pida.core.actions import ActionsConfig |
| 33 | | from pida.core.actions import TYPE_NORMAL, TYPE_MENUTOOL, TYPE_RADIO, TYPE_TOGGLE |
| | 30 | from pida.core.actions import TYPE_TOGGLE |
| 34 | 31 | |
| 35 | 32 | from pida.ui.views import PidaView |
-
|
r1202
|
r1211
|
|
| 28 | 28 | # PIDA Imports |
| 29 | 29 | from pida.core.service import Service |
| 30 | | from pida.core.features import FeaturesConfig |
| 31 | | from pida.core.commands import CommandsConfig |
| 32 | 30 | from pida.core.events import EventsConfig |
| 33 | 31 | from pida.core.options import OptionsConfig |
| 34 | | from pida.core.actions import ActionsConfig |
| 35 | | from pida.core.actions import TYPE_NORMAL, TYPE_MENUTOOL, TYPE_RADIO, TYPE_TOGGLE |
| 36 | 32 | |
| 37 | 33 | # locale |
-
|
r1179
|
r1211
|
|
| 34 | 34 | from pida.core.events import EventsConfig |
| 35 | 35 | from pida.core.actions import ActionsConfig |
| 36 | | from pida.core.actions import TYPE_NORMAL, TYPE_MENUTOOL, TYPE_RADIO, TYPE_TOGGLE |
| | 36 | from pida.core.actions import TYPE_NORMAL, TYPE_TOGGLE |
| 37 | 37 | |
| 38 | 38 | from pida.ui.views import PidaView, PidaGladeView |
| 39 | 39 | |
| 40 | 40 | from pida.ui.htmltextview import HtmlTextView |
| 41 | | from pida.ui.buttons import create_mini_button |
| 42 | 41 | |
| 43 | 42 | from pida.utils.gthreads import AsyncTask, gcall |
-
|
r1157
|
r1211
|
|
| 35 | 35 | from pida.core.features import FeaturesConfig |
| 36 | 36 | from pida.core.commands import CommandsConfig |
| 37 | | from pida.core.events import EventsConfig |
| 38 | 37 | from pida.core.actions import ActionsConfig |
| 39 | | from pida.core.actions import TYPE_NORMAL, TYPE_MENUTOOL, TYPE_RADIO, TYPE_TOGGLE |
| | 38 | from pida.core.actions import TYPE_NORMAL |
| 40 | 39 | |
| 41 | 40 | from pida.utils.web import fetch_url |
-
|
r1202
|
r1211
|
|
| 25 | 25 | # PIDA Imports |
| 26 | 26 | from pida.core.service import Service |
| 27 | | from pida.core.features import FeaturesConfig |
| 28 | 27 | from pida.core.commands import CommandsConfig |
| 29 | 28 | from pida.core.events import EventsConfig |
| 30 | 29 | from pida.core.options import OptionsConfig |
| 31 | 30 | from pida.core.actions import ActionsConfig |
| 32 | | from pida.core.actions import TYPE_NORMAL, TYPE_MENUTOOL, TYPE_RADIO, TYPE_TOGGLE |
| | 31 | from pida.core.actions import TYPE_NORMAL, TYPE_TOGGLE |
| 33 | 32 | |
| 34 | 33 | # locale |