Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
7f4cb275
Kaydet (Commit)
7f4cb275
authored
Ara 12, 2011
tarafından
Lionel Elie Mamane
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fix loading of python-uno module by package.module name
üst
84a3f11c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
pythonloader.py
pyuno/source/loader/pythonloader.py
+6
-5
FaxWizardDialogImpl.py
wizards/com/sun/star/wizards/fax/FaxWizardDialogImpl.py
+0
-1
No files found.
pyuno/source/loader/pythonloader.py
Dosyayı görüntüle @
7f4cb275
...
@@ -111,16 +111,18 @@ class Loader( XImplementationLoader, XServiceInfo, unohelper.Base ):
...
@@ -111,16 +111,18 @@ class Loader( XImplementationLoader, XServiceInfo, unohelper.Base ):
g_loadedComponents
[
url
]
=
mod
g_loadedComponents
[
url
]
=
mod
return
mod
return
mod
elif
"vnd.openoffice.pymodule"
==
protocol
:
elif
"vnd.openoffice.pymodule"
==
protocol
:
# the failure is on symbol lookup later in the parent ...
print
(
"Warning: Python module loading is almost certainly pre-broken"
)
nSlash
=
dependent
.
rfind
(
'/'
)
nSlash
=
dependent
.
rfind
(
'/'
)
if
-
1
!=
nSlash
:
if
-
1
!=
nSlash
:
path
=
unohelper
.
fileUrlToSystemPath
(
dependent
[
0
:
nSlash
]
)
path
=
unohelper
.
fileUrlToSystemPath
(
dependent
[
0
:
nSlash
]
)
dependent
=
dependent
[
nSlash
+
1
:
len
(
dependent
)]
dependent
=
dependent
[
nSlash
+
1
:
len
(
dependent
)]
if
not
path
in
sys
.
path
:
if
not
path
in
sys
.
path
:
sys
.
path
.
append
(
path
)
sys
.
path
.
append
(
path
)
var
=
__import__
(
dependent
)
mod
=
__import__
(
dependent
)
return
var
path_component
,
dot
,
rest
=
dependent
.
partition
(
'.'
)
while
dot
==
'.'
:
path_component
,
dot
,
rest
=
rest
.
partition
(
'.'
)
mod
=
getattr
(
mod
,
path_component
)
return
mod
else
:
else
:
if
DEBUG
:
if
DEBUG
:
print
(
"Unknown protocol '"
+
protocol
+
"'"
);
print
(
"Unknown protocol '"
+
protocol
+
"'"
);
...
@@ -140,7 +142,6 @@ class Loader( XImplementationLoader, XServiceInfo, unohelper.Base ):
...
@@ -140,7 +142,6 @@ class Loader( XImplementationLoader, XServiceInfo, unohelper.Base ):
mod
=
self
.
getModuleFromUrl
(
locationUrl
)
mod
=
self
.
getModuleFromUrl
(
locationUrl
)
implHelper
=
mod
.
__dict__
.
get
(
"g_ImplementationHelper"
,
None
)
implHelper
=
mod
.
__dict__
.
get
(
"g_ImplementationHelper"
,
None
)
if
DEBUG
:
if
DEBUG
:
print
(
"dump stuff"
)
print
(
"Fetched ImplHelper as "
+
str
(
implHelper
))
print
(
"Fetched ImplHelper as "
+
str
(
implHelper
))
if
implHelper
==
None
:
if
implHelper
==
None
:
return
mod
.
getComponentFactory
(
implementationName
,
self
.
ctx
.
ServiceManager
,
regKey
)
return
mod
.
getComponentFactory
(
implementationName
,
self
.
ctx
.
ServiceManager
,
regKey
)
...
...
wizards/com/sun/star/wizards/fax/FaxWizardDialogImpl.py
Dosyayı görüntüle @
7f4cb275
...
@@ -59,7 +59,6 @@ class FaxWizardDialogImpl(FaxWizardDialog):
...
@@ -59,7 +59,6 @@ class FaxWizardDialogImpl(FaxWizardDialog):
def
startWizard
(
self
,
xMSF
):
def
startWizard
(
self
,
xMSF
):
self
.
running
=
True
self
.
running
=
True
try
:
try
:
print
"entra"
#Number of steps on WizardDialog
#Number of steps on WizardDialog
self
.
nMaxStep
=
5
self
.
nMaxStep
=
5
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment