File tree 1 file changed +13
-1
lines changed
1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -212,6 +212,9 @@ TPyDelphiStrings = class (TPyDelphiPersistent)
212
212
function Set_Text ( AValue : PPyObject; AContext : Pointer) : integer; cdecl;
213
213
// Virtual Methods
214
214
function Assign (ASource : PPyObject) : PPyObject; override;
215
+ { $IFDEF EXTENDED_RTTI}
216
+ class function ExcludedExposedMembers (APythonType: TPythonType): TArray<string>; override;
217
+ { $ENDIF EXTENDED_RTTI}
215
218
public
216
219
function Repr : PPyObject; override;
217
220
// Mapping services
@@ -1520,6 +1523,15 @@ function TPyDelphiStrings.EndUpdate_Wrapper(args: PPyObject): PPyObject;
1520
1523
Result := nil ;
1521
1524
end ;
1522
1525
1526
+ { $IFDEF EXTENDED_RTTI}
1527
+ class function TPyDelphiStrings.ExcludedExposedMembers (APythonType: TPythonType): TArray<string>;
1528
+ begin
1529
+ Result := inherited ExcludedExposedMembers(APythonType);
1530
+ // so that TPyDelphiStrings.Assign is called from the inherited Assign
1531
+ Result := Result + [' Assign' ];
1532
+ end ;
1533
+ { $ENDIF EXTENDED_RTTI}
1534
+
1523
1535
class function TPyDelphiStrings.GetContainerAccessClass : TContainerAccessClass;
1524
1536
begin
1525
1537
Result := TStringsAccess;
@@ -1689,7 +1701,7 @@ procedure TPyDelphiStrings.SetDelphiObject(const Value: TStrings);
1689
1701
class procedure TPyDelphiStrings.SetupType (PythonType: TPythonType);
1690
1702
begin
1691
1703
inherited ;
1692
- PythonType.Services.Mapping := PythonType.Services.Mapping + [msLength, msSubscript];
1704
+ PythonType.Services.Mapping := { PythonType.Services.Mapping +} [msLength, msSubscript];
1693
1705
end ;
1694
1706
1695
1707
{ TPyDelphiBasicAction }
You can’t perform that action at this time.
0 commit comments